.staff-detail-page {
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
    background: var(--bg-color);
}

.staff-detail-page .staff-profile {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 28px 15px 24px;
    background-color: #fff;
}

.staff-detail-page .staff-profile::before {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    /* 原型阶段使用临时封面，后续可替换为接口返回的店员背景图地址。 */
    background-image: url("https://images.unsplash.com/photo-1490750967868-88aa4486c946?auto=format&fit=crop&w=1200&q=80");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    filter: saturate(0.78) blur(0.3px);
    opacity: 0.58;
    content: "";
    z-index: 0;
}

.staff-detail-page .staff-profile::after {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.96) 22%, rgba(255, 255, 255, 0.58) 62%, rgba(255, 255, 255, 0.2) 100%),
        linear-gradient(0deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, 0.25) 100%);
    content: "";
    pointer-events: none;
    z-index: 0;
}

.staff-detail-page .staff-profile > * {
    position: relative;
    z-index: 1;
}

.staff-detail-page .staff-profile-main {
    display: flex;
    align-items: center;
}

.staff-detail-page .staff-avatar-wrap {
    position: relative;
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    margin: 0 14px 0 0;
}

.staff-detail-page .staff-profile .avatar {
    width: 76px;
    height: 76px;
    margin: 0;
}

.staff-detail-page .staff-audio-control {
    position: absolute;
    bottom: -2px;
    left: 50%;
    z-index: 2;
    display: flex;
    width: 68px;
    height: 21px;
    padding: 2px 5px 2px 3px;
    align-items: center;
    gap: 3px;
    transform: translateX(-50%);
    border-radius: 11px;
    background: linear-gradient(100deg, #f06bc7 0%, #ffbd7d 100%);
    box-shadow: 0 2px 6px rgba(239, 105, 188, 0.25);
}

.staff-detail-page .staff-audio-play-icon {
    display: flex;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: #ee6db8;
    font-size: 7px;
}

.staff-detail-page .staff-audio-bars {
    display: flex;
    height: 13px;
    flex: 1;
    align-items: center;
    justify-content: space-between;
}

.staff-detail-page .staff-audio-bars i {
    display: block;
    width: 2px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.95);
}

.staff-detail-page .staff-audio-bars i:nth-child(1) { height: 5px; }
.staff-detail-page .staff-audio-bars i:nth-child(2) { height: 9px; }
.staff-detail-page .staff-audio-bars i:nth-child(3) { height: 7px; }
.staff-detail-page .staff-audio-bars i:nth-child(4) { height: 12px; }
.staff-detail-page .staff-audio-bars i:nth-child(5) { height: 8px; }
.staff-detail-page .staff-audio-bars i:nth-child(6) { height: 11px; }
.staff-detail-page .staff-audio-bars i:nth-child(7) { height: 6px; }

.staff-detail-page .staff-audio-control.playing .staff-audio-play-icon {
    color: #f07abd;
}

.staff-detail-page .staff-audio-control.playing .staff-audio-bars i {
    animation: staff-audio-wave 0.8s ease-in-out infinite alternate;
}

.staff-detail-page .staff-audio-control.playing .staff-audio-bars i:nth-child(2n) {
    animation-delay: 0.15s;
}

.staff-detail-page .staff-audio-control.playing .staff-audio-bars i:nth-child(3n) {
    animation-delay: 0.3s;
}

.staff-detail-page .staff-audio-control.unavailable {
    cursor: not-allowed;
    opacity: 0.55;
}

.staff-detail-page .staff-audio-media {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

@keyframes staff-audio-wave {
    from { transform: scaleY(0.55); }
    to { transform: scaleY(1.15); }
}

.staff-detail-page .staff-profile-info {
    min-width: 0;
    flex: 1;
}

.staff-detail-page .staff-name-line {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 7px;
}

.staff-detail-page .staff-name-line h2 {
    overflow: hidden;
    font-size: 20px;
    font-weight: bold;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.staff-detail-page .verified-badge {
    flex: 0 0 auto;
    padding: 2px 5px;
    border-radius: 4px;
    background: #e8f7ef;
    color: #2f9e66;
    font-size: 10px;
}

.staff-detail-page .staff-status {
    display: inline-flex;
    margin-top: 8px;
    align-items: center;
    color: var(--text-sub);
    font-size: 12px;
}

.staff-detail-page .staff-status i {
    width: 7px;
    height: 7px;
    margin-right: 5px;
    border-radius: 50%;
    background: #bbb;
}

.staff-detail-page .staff-status.status-online i { background: #2f9e66; }
.staff-detail-page .staff-status.status-busy i { background: #e7a325; }
.staff-detail-page .staff-status.status-offline i { background: #aaa; }

.staff-detail-page .staff-meta {
    display: flex;
    margin-top: 16px;
    gap: 8px;
}

.staff-detail-page .staff-meta span {
    padding: 4px 9px;
    border-radius: 4px;
    background: #f2f3f5;
    color: #666;
    font-size: 11px;
}

.staff-detail-page .staff-tabs {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    min-height: 46px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-bottom: 1px solid var(--border-color);
    background: #fff;
}

.staff-detail-page .staff-tab {
    position: relative;
    min-height: 46px;
    color: #666;
    font-size: 13px;
}

.staff-detail-page .staff-tab.active {
    color: var(--primary-color);
    font-weight: bold;
}

.staff-detail-page .staff-tab.active::after {
    position: absolute;
    right: 30%;
    bottom: 0;
    left: 30%;
    height: 2px;
    border-radius: 2px;
    background: var(--primary-color);
    content: "";
}

.staff-detail-page .staff-tab-panel {
    min-height: 1px;
}

.staff-detail-page .staff-section {
    margin-top: 10px;
    padding: 15px;
    background: #fff;
}

.staff-detail-page .staff-section h2 {
    color: var(--text-main);
    font-size: 14px;
    font-weight: bold;
}

.staff-detail-page .staff-tags {
    margin-top: 10px;
}

.staff-detail-page .staff-tags .tag {
    margin-bottom: 4px;
    background: #fff0f4;
    color: var(--primary-color);
}

.staff-detail-page .sample-empty {
    display: flex;
    min-height: 70px;
    margin-top: 10px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px dashed #ddd;
    border-radius: 6px;
    color: var(--text-sub);
    font-size: 12px;
}

.staff-detail-page .sample-empty i {
    color: #bbb;
    font-size: 22px;
}

.staff-detail-page .section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.staff-detail-page .section-heading > span,
.staff-detail-page .section-heading > a {
    flex: 0 0 auto;
    color: var(--text-sub);
    font-size: 11px;
}

.staff-detail-page .section-heading > a i {
    margin-left: 3px;
    font-size: 9px;
}

.staff-detail-page .service-list {
    margin-top: 8px;
}

.staff-detail-page .service-option {
    display: flex;
    width: 100%;
    min-height: 68px;
    padding: 10px 0;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
    text-align: left;
}

.staff-detail-page .service-option:last-child {
    border-bottom: 0;
}

.staff-detail-page .service-option-info {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.staff-detail-page .service-option-info strong {
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.staff-detail-page .service-option-info small {
    margin-top: 4px;
    overflow: hidden;
    color: var(--text-sub);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.staff-detail-page .service-option-price {
    display: flex;
    flex: 0 0 auto;
    align-items: baseline;
    flex-direction: column;
    color: var(--primary-color);
    text-align: right;
}

.staff-detail-page .service-option-price b {
    font-size: 14px;
}

.staff-detail-page .service-option-price small {
    font-size: 10px;
}

.staff-detail-page .service-option-price em {
    margin-top: 3px;
    color: var(--text-sub);
    font-size: 9px;
    font-style: normal;
}

.staff-detail-page .service-option-check {
    visibility: hidden;
    width: 16px;
    flex: 0 0 16px;
    color: var(--primary-color);
    text-align: center;
}

.staff-detail-page .service-option.active .service-option-check {
    visibility: visible;
}

.staff-detail-page .service-option.active .service-option-info strong {
    color: var(--primary-color);
}

.staff-detail-page .service-option:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.staff-detail-page .service-error {
    margin-top: 8px;
    color: #d84b4b;
    font-size: 12px;
}

.staff-detail-page .intro-section p {
    margin-top: 10px;
    color: #666;
    font-size: 13px;
    line-height: 1.7;
}

.staff-detail-page .schedule-row {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-sub);
    font-size: 12px;
}

.staff-detail-page .schedule-row:last-child {
    border-bottom: 0;
}

.staff-detail-page .schedule-row strong {
    color: var(--text-main);
    font-weight: normal;
}

.staff-detail-page .metrics-section {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.staff-detail-page .metrics-section > div {
    display: flex;
    min-width: 0;
    flex: 1;
    align-items: center;
    flex-direction: column;
}

.staff-detail-page .metrics-section > div + div {
    border-left: 1px solid var(--border-color);
}

.staff-detail-page .metrics-section strong {
    color: var(--text-main);
    font-size: 17px;
}

.staff-detail-page .metrics-section span {
    margin-top: 4px;
    color: var(--text-sub);
    font-size: 10px;
}

.staff-detail-page .review-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.staff-detail-page .review-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.staff-detail-page .review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-main);
    font-size: 12px;
}

.staff-detail-page .review-header span {
    color: #e6a11c;
}

.staff-detail-page .review-item .review-tags {
    margin-top: 6px;
    color: var(--primary-color);
    font-size: 10px;
}

.staff-detail-page .review-item > p:not(.review-tags) {
    margin-top: 6px;
    color: #666;
    font-size: 12px;
    line-height: 1.5;
}

.staff-detail-page .review-item time,
.staff-detail-page .staff-post time {
    display: block;
    margin-top: 6px;
    color: #bbb;
    font-size: 10px;
}

.staff-detail-page .received-gifts {
    display: flex;
    margin-top: 12px;
    gap: 15px;
    overflow-x: auto;
    scrollbar-width: none;
}

.staff-detail-page .received-gifts::-webkit-scrollbar {
    display: none;
}

.staff-detail-page .received-gift {
    display: flex;
    min-width: 54px;
    align-items: center;
    flex-direction: column;
}

.staff-detail-page .received-gift > i {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 18px;
}

.staff-detail-page .gift-tone-pink { background: #ffe8ee; color: #e64980; }
.staff-detail-page .gift-tone-green { background: #e6f7ef; color: #268d62; }
.staff-detail-page .gift-tone-yellow { background: #fff4cc; color: #b98500; }
.staff-detail-page .gift-tone-blue { background: #e8f1ff; color: #3976c6; }
.staff-detail-page .gift-tone-purple { background: #f2eaff; color: #8056c9; }
.staff-detail-page .gift-tone-red { background: #ffe9e6; color: #cf5547; }

.staff-detail-page .received-gift b {
    max-width: 62px;
    margin-top: 5px;
    overflow: hidden;
    font-size: 10px;
    font-weight: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.staff-detail-page .received-gift small {
    margin-top: 2px;
    color: var(--text-sub);
    font-size: 9px;
}

.staff-detail-page .staff-post {
    padding-top: 10px;
}

.staff-detail-page .staff-post p {
    color: #666;
    font-size: 13px;
    line-height: 1.6;
}

.staff-detail-page .staff-actions {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 90;
    display: flex;
    width: 100%;
    max-width: 750px;
    min-height: calc(64px + env(safe-area-inset-bottom));
    margin: 0 auto;
    padding: 10px 15px calc(10px + env(safe-area-inset-bottom));
    align-items: center;
    gap: 8px;
    border-top: 1px solid var(--border-color);
    background: #fff;
}

.staff-detail-page .staff-favorite,
.staff-detail-page .staff-reward {
    display: flex;
    width: 50px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #666;
    font-size: 10px;
}

.staff-detail-page .staff-favorite i,
.staff-detail-page .staff-reward i {
    margin-bottom: 3px;
    font-size: 18px;
}

.staff-detail-page .staff-favorite.active,
.staff-detail-page .staff-reward {
    color: var(--primary-color);
}

.staff-detail-page .staff-order {
    min-height: 42px;
    flex: 1;
    border-radius: 21px;
    background: var(--primary-color);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}

.staff-detail-page .staff-layer {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: flex;
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
    align-items: flex-end;
}

.staff-detail-page .staff-layer-mask {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.42);
}

.staff-detail-page .staff-order-sheet {
    position: relative;
    z-index: 1;
    width: 100%;
    border-radius: 8px 8px 0 0;
    background: #fff;
}

.staff-detail-page .staff-sheet-header {
    display: flex;
    min-height: 52px;
    padding: 0 15px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.staff-detail-page .staff-sheet-header h2 {
    font-size: 16px;
    font-weight: bold;
}

.staff-detail-page .staff-sheet-close {
    width: 36px;
    height: 36px;
    color: var(--text-sub);
    font-size: 18px;
}

.staff-detail-page .order-summary,
.staff-detail-page .order-quantity-row,
.staff-detail-page .order-total-row {
    display: flex;
    min-height: 46px;
    padding: 0 15px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}

.staff-detail-page .order-summary > div {
    display: flex;
    width: 50%;
    justify-content: space-between;
    gap: 10px;
}

.staff-detail-page .order-summary > div + div {
    padding-left: 15px;
    border-left: 1px solid var(--border-color);
}

.staff-detail-page .order-summary span,
.staff-detail-page .order-quantity-row small,
.staff-detail-page .order-total-row span {
    color: var(--text-sub);
}

.staff-detail-page .order-summary strong {
    overflow: hidden;
    color: var(--text-main);
    font-weight: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.staff-detail-page .order-quantity-row {
    min-height: 64px;
}

.staff-detail-page .order-quantity-row > div:first-child {
    display: flex;
    flex-direction: column;
}

.staff-detail-page .order-quantity-row small {
    margin-top: 4px;
    font-size: 10px;
}

.staff-detail-page .order-quantity-picker {
    display: flex;
    min-width: 116px;
    min-height: 34px;
    align-items: center;
    justify-content: space-between;
    border-radius: 17px;
    background: #f5f5f5;
}

.staff-detail-page .order-quantity-picker button {
    display: flex;
    width: 36px;
    height: 34px;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 11px;
}

.staff-detail-page .order-quantity-picker button:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

.staff-detail-page .order-quantity-picker b {
    min-width: 30px;
    text-align: center;
}

.staff-detail-page .order-total-row strong {
    color: var(--primary-color);
    font-size: 17px;
}

.staff-detail-page .staff-sheet-actions {
    display: flex;
    gap: 10px;
    padding: 12px 15px calc(12px + env(safe-area-inset-bottom));
}

.staff-detail-page .staff-sheet-actions button {
    min-height: 40px;
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-main);
    font-size: 14px;
}

.staff-detail-page .staff-sheet-actions .staff-confirm-order {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #fff;
}

.staff-detail-page .staff-sheet-actions .staff-confirm-order:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.staff-detail-page .staff-success-sheet {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 32px 20px calc(24px + env(safe-area-inset-bottom));
    border-radius: 8px 8px 0 0;
    background: #fff;
    text-align: center;
}

.staff-detail-page .staff-success-sheet > i {
    color: #2f9e66;
    font-size: 48px;
}

.staff-detail-page .staff-success-sheet h2 {
    margin-top: 12px;
    font-size: 17px;
}

.staff-detail-page .staff-success-sheet p {
    margin-top: 8px;
    color: var(--text-sub);
    font-size: 12px;
}

.staff-detail-page .staff-success-sheet button,
.staff-detail-page .staff-unavailable a {
    display: inline-flex;
    min-width: 120px;
    min-height: 40px;
    margin-top: 22px;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: var(--primary-color);
    color: #fff;
    font-size: 14px;
}

.staff-detail-page.staff-layer-open {
    overflow-y: hidden;
}

.staff-detail-page .staff-unavailable {
    padding: 100px 20px 30px;
    color: var(--text-sub);
    text-align: center;
}

.staff-detail-page .staff-unavailable > i {
    color: #ccc;
    font-size: 46px;
}

.staff-detail-page .staff-unavailable h2 {
    margin-top: 14px;
    color: var(--text-main);
    font-size: 16px;
}

.staff-detail-page .staff-unavailable p {
    margin-top: 8px;
    font-size: 12px;
}

@media (max-width: 359px) {
    .staff-detail-page .staff-section,
    .staff-detail-page .staff-profile {
        padding-right: 12px;
        padding-left: 12px;
    }

    .staff-detail-page .staff-actions {
        padding-right: 12px;
        padding-left: 12px;
    }
}
