/* 飞飞公测组队活动 */

html {
    min-height: 100%;
    height: auto;
    background-color: #e8e4dc;
}

body.team-body {
    margin: 0;
    height: auto;
    min-height: 100vh;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    font-size: 0.22rem;
    line-height: 1.45;
    color: #693105;
    -webkit-font-smoothing: antialiased;
    background: transparent;
}

.top-bg {
    width: 100vw;
    height: 56vw;
    min-height: 52vh;
    background: url("../images/bg-top.png") no-repeat center bottom;
    background-size: cover;
    position: relative;
}

.bottom-bg {
    width: 100%;
    min-height: 48vh;
    background: url("../images/bg-bottom.png") repeat-y center top;
    background-size: 100% auto;
    position: relative;
}

.team-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0.24rem 0.4rem 0.1rem;
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

.team-logo {
    display: block;
    /* width: 2.1rem; */
    height: auto;
    max-height: 1.4rem;
    object-fit: contain;
    margin-top: -0.2rem;
}

.team-btn-site {
    display: inline-block;
    line-height: 0;
    flex-shrink: 0;
    text-decoration: none;
}

.team-btn-site__img {
    width: auto;
    height: 0.44rem;
    max-width: min(100%, 3rem);
}

.team-btn-site__img--default {
    display: block;
}

.team-btn-site__img--hover {
    display: none;
}

.team-btn-site:hover .team-btn-site__img--default,
.team-btn-site:focus-visible .team-btn-site__img--default {
    display: none;
}

.team-btn-site:hover .team-btn-site__img--hover,
.team-btn-site:focus-visible .team-btn-site__img--hover {
    display: block;
}

.team-header-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.16rem;
    flex-shrink: 0;
}

.team-header-actions__extra {
    display: flex;
    align-items: center;
    gap: 0.16rem;
}

.team-header-btn {
    display: block;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    line-height: 0;
}

.team-header-btn img {
    display: block;
    width: auto;
    height: 0.52rem;
    max-width: 0.52rem;
    object-fit: contain;
}

.team-hero-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 5;
}

.team-auth {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.12rem;
}

.team-auth .btn-login-account[hidden] {
    display: none !important;
}

.team-user-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.2rem;
    margin: 0.12rem 0 0;
    max-width: 92vw;
}

.team-user-row[hidden] {
    display: none !important;
}

.team-user-line {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.2rem;
    margin: 0;
    font-size: 0.24rem;
    line-height: 1.4;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    text-align: center;
}

.team-user-line[hidden] {
    display: none !important;
}

.team-user-line .team-welcome {
    /* font-weight: 600; */
}

.team-user-line .team-bound-role {
    opacity: 0.92;
}

.team-logout-link {
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: #000;
    font-size: 0.24rem;
    font-family: inherit;
    line-height: 1.4;
    text-decoration: underline;
    text-underline-offset: 0.08em;
    cursor: pointer;
    white-space: nowrap;
}

.team-logout-link:hover {
    opacity: 0.88;
}

.team-actions .team-action-btn[hidden],
.team-apply-link[hidden],
.team-bind-link[hidden] {
    display: none !important;
}

.team-img-btn {
    display: inline-block;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    line-height: 0;
    position: relative;
}

.team-img-btn__normal {
    display: block;
    height: 0.56rem;
    width: auto;
    max-width: 3.2rem;
}

.team-img-btn__hover {
    display: none;
    height: 0.56rem;
    width: auto;
    max-width: 3.2rem;
}

.team-img-btn:hover .team-img-btn__normal,
.team-img-btn:focus-visible .team-img-btn__normal {
    display: none;
}

.team-img-btn:hover .team-img-btn__hover,
.team-img-btn:focus-visible .team-img-btn__hover {
    display: block;
}

.team-page {
    max-width: 10.8rem;
    margin: 0 auto;
    padding: 0.2rem clamp(12px, 3vw, 24px) 1rem;
    box-sizing: border-box;
}

.team-greeting {
    text-align: center;
    font-size: 0.2rem;
    line-height: 1.65;
    margin: 0 0 0.28rem;
    min-height: 0.66rem;
}

.team-times {
    text-align: center;
    font-size: 0.18rem;
    line-height: 1.7;
    margin-bottom: 0.36rem;
}

.team-times p {
    margin: 0.04rem 0;
}

.team-section-title {
    display: block;
    max-width: 3.6rem;
    height: auto;
    margin: 0 auto 0.2rem;
}

.team-progress-section {
    margin-bottom: 0.48rem;
}

.team-progress-wrap {
    position: relative;
    max-width: 6.5rem;
    margin: 0 auto;
    padding: 0 0.12rem;
    box-sizing: border-box;
}

/* 上方：状态文案 + 礼包图 */
.team-progress-gifts {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 0.08rem;
    padding: 0 0.04rem;
}

.team-progress-gift {
    /* flex: 1; */
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.team-progress-gift__status {
    font-size: 0.16rem;
    line-height: 1.3;
    margin-bottom: 0.06rem;
    white-space: nowrap;
    color: #693105;
}

.team-progress-gift__status.is-ready {
    color: #c45a00;
    font-weight: 600;
}

.team-progress-gift__status.is-done {
    color: #888;
}

.team-progress-gift__box {
    width: 0.88rem;
    height: 0.88rem;
    line-height: 0;
    cursor: default;
}

.team-progress-gift__box.is-clickable {
    cursor: pointer;
}

.team-progress-gift__box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* 中间：轨道 + 达成圆点 */
.team-progress-bar {
    position: relative;
    width: 100%;
    line-height: 0;
    margin-bottom: 0.1rem;
}

.team-progress-bg,
.team-progress-fill {
    display: block;
    width: 100%;
    height: auto;
}

.team-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    transition: clip-path 0.35s ease;
    pointer-events: none;
}

.team-progress-markers {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 0;
    pointer-events: none;
}

.team-progress-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 0.36rem;
    height: 0.36rem;
    line-height: 0;
}

.team-progress-marker img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* 下方：2人 / 4人 / 6人 */
.team-progress-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0.04rem;
}

.team-progress-label {
    /* flex: 1; */
    text-align: center;
    line-height: 0;
    padding: 0 0.2rem;
    box-sizing: border-box;
}

.team-progress-label img {
    height: 0.28rem;
    width: auto;
    object-fit: contain;
    display: inline-block;
}

.team-slots-section {
    margin-bottom: 0.4rem;
}

.team-bind-link {
    display: block;
    margin: 0 auto 0.24rem;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 0.18rem;
    color: #693105;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 0.08em;
}

.team-bind-link:hover {
    color: #c45a00;
}

.team-slots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.28rem 0.2rem;
    max-width: 7.2rem;
    margin: 0 auto;
}

.team-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.team-slot__avatar-wrap {
    position: relative;
    width: 1.1rem;
    height: 1.1rem;
    margin-bottom: 0.1rem;
}

.team-slot__avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.team-slot__avatar-wrap .team-slot__avatar--empty {
    background: #2a2a2a url("../images/未加入框.png") center / cover no-repeat;
}

.team-slot--filled .team-slot__line2 {
    font-size: 0.14rem;
    color: #693105;
    margin-top: 0.06rem;
    word-break: break-all;
    max-width: 100%;
    text-align: center;
}

.team-slot__info {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.06rem;
    margin-top: 0.08rem;
    max-width: 100%;
}

.team-slot__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.06rem;
    max-width: 100%;
}

.team-slot__level {
    font-size: 0.14rem;
    color: #693105;
    font-weight: 600;
    white-space: nowrap;
}

.team-slot__badge {
    display: inline-block;
    padding: 0.04rem 0.16rem;
    border-radius: 999px;
    background: #1a1a1a;
    color: #fff;
    font-size: 0.14rem;
}

.team-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.32rem;
    margin: 0.36rem 0 0.2rem;
}

.team-action-btn .team-img-btn__normal,
.team-action-btn .team-img-btn__hover {
    height: 0.62rem;
    max-width: 3.4rem;
}

.team-gold-btn {
    min-width: 2.4rem;
    padding: 0.14rem 0.48rem;
    border: 2px solid #b8860b;
    border-radius: 0.08rem;
    background: linear-gradient(180deg, #fff8e8 0%, #f0dfa8 100%);
    color: #693105;
    font-size: 0.24rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(105, 49, 5, 0.15);
}

.team-gold-btn:hover {
    filter: brightness(1.03);
}

.team-apply-link {
    display: block;
    width: 100%;
    margin: 0.16rem auto 0;
    padding: 0;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 0.18rem;
    color: #693105;
    text-decoration: underline;
    cursor: pointer;
}

/* 组队弹窗 */
.team-modal.mod-dialog .mod-dialog-mask {
    background: url("../images/弹窗黑色遮罩.png") center / cover no-repeat;
    opacity: 1;
}

.team-modal.mod-dialog .mod-dialog-main {
    width: min(7.2rem, 94vw);
    height: auto;
    min-height: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.team-modal.mod-dialog .mod-dialog-main::before,
.team-modal.mod-dialog .mod-dialog-main::after {
    display: none;
}

.team-modal.mod-dialog .mod-dialog-content {
    position: relative;
    padding: 0;
}

.team-modal .mod-dialog-close1 {
    position: absolute !important;
    top: -0.28rem !important;
    right: -0.28rem !important;
    margin: 0 !important;
    width: 0.44rem !important;
    height: 0.44rem !important;
    z-index: 12;
    background: transparent !important;
    cursor: pointer !important;
    transition: transform 0.3s;
}

.team-modal .mod-dialog-close1:hover {
    transform: rotate(360deg) !important;
}

.team-modal .mod-dialog-close1 img {
    width: 100% !important;
    height: 100% !important;
    opacity: 1 !important;
    display: block;
    pointer-events: none;
}

.team-modal .mod-dialog-content {
    padding: 0;
}

.team-modal-panel {
    background: #fff;
    border: 3px solid #e8c547;
    border-radius: 0.16rem;
    padding: 0.36rem 0.32rem 0.32rem;
    box-sizing: border-box;
    max-height: 70vh;
    overflow-y: auto;
}

.team-modal-title {
    margin: 0 0 0.12rem;
    text-align: center;
    font-size: 0.28rem;
    font-weight: 700;
    color: #222;
}

.team-modal-sub {
    margin: 0 0 0.24rem;
    text-align: center;
    font-size: 0.16rem;
    color: #888;
}

.team-apply-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.team-apply-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.12rem;
    padding: 0.16rem 0;
    border-bottom: 1px solid #eee;
    font-size: 0.18rem;
}

.team-apply-main {
    display: flex;
    flex-direction: column;
    gap: 0.04rem;
    min-width: 0;
}

.team-apply-time {
    font-size: 0.14rem;
    color: #888;
}

.team-apply-status {
    font-size: 0.16rem;
    color: #888;
    white-space: nowrap;
}

.team-apply-item:last-child {
    border-bottom: none;
}

.team-apply-actions {
    display: flex;
    gap: 0.16rem;
}

.team-apply-actions button {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.18rem;
    padding: 0.04rem 0.08rem;
}

.team-apply-actions .btn-accept {
    color: #2a9d4a;
}

.team-apply-actions .btn-reject {
    color: #c0392b;
}

.team-task-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.16rem;
}

.team-task-table th,
.team-task-table td {
    padding: 0.14rem 0.08rem;
    vertical-align: middle;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.team-task-table th {
    font-weight: 600;
    color: #333;
}

.team-task-table .task-name {
    text-align: left;
    white-space: nowrap;
}

.team-task-prizes {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0.14rem;
    flex-wrap: nowrap;
}

.team-task-prize {
    flex: 0 0 auto;
    width: 0.72rem;
    text-align: center;
}

.team-task-prize__img {
    width: 0.56rem;
    height: 0.56rem;
    margin: 0 auto 0.06rem;
    line-height: 0;
}

.team-task-prize__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.team-task-prize__name {
    font-size: 0.11rem;
    color: #666;
    line-height: 1.25;
    word-break: break-all;
}

.team-task-btn {
    display: inline-block;
    min-width: 1.1rem;
    padding: 0.08rem 0.16rem;
    border: none;
    border-radius: 999px;
    font-size: 0.15rem;
    cursor: pointer;
    color: #fff;
}

.team-task-btn--claim {
    background: linear-gradient(180deg, #ffd54f, #f5a623);
    color: #333;
}

.team-task-btn--done {
    background: #aaa;
    cursor: default;
}

.team-task-btn--lock {
    background: #5c4a3a;
    cursor: default;
}

.team-captcha-form .form-row {
    margin-bottom: 0.2rem;
}

.team-join-form .form-row {
    margin-bottom: 0.2rem;
}

.team-join-form label {
    display: block;
    margin-bottom: 0.08rem;
    font-size: 0.17rem;
}

.team-join-form input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.1rem 0.12rem;
    border: 1px solid #ddd;
    border-radius: 0.06rem;
    font-size: 0.18rem;
}

.team-captcha-form label {
    display: block;
    margin-bottom: 0.08rem;
    font-size: 0.17rem;
}

.team-captcha-form input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.1rem 0.12rem;
    border: 1px solid #ddd;
    border-radius: 0.06rem;
    font-size: 0.18rem;
}

.team-captcha-form .captcha-row {
    display: flex;
    gap: 0.12rem;
    align-items: center;
}

.team-captcha-form .captcha-row input {
    flex: 1;
}

.team-recruit-link {
    word-break: break-all;
    font-size: 0.16rem;
    padding: 0.12rem;
    background: #f7f7f7;
    border-radius: 0.08rem;
    margin: 0.16rem 0;
}

.team-recruit-qr {
    display: flex;
    justify-content: center;
    margin: 0.16rem 0;
}

.team-gold-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    filter: grayscale(0.15);
}

.team-apply-empty {
    text-align: center;
    padding: 0.3rem 0;
    margin: 0;
}

.team-apply-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.16rem;
    margin-top: 0.24rem;
}

.team-apply-pager-info {
    font-size: 0.16rem;
    color: #666;
    min-width: 1.6rem;
    text-align: center;
}

.team-apply-pager .team-gold-btn {
    min-width: 1.2rem;
    padding: 0.1rem 0.24rem;
    font-size: 0.18rem;
}

.team-modal-footer {
    display: flex;
    justify-content: center;
    gap: 0.2rem;
    margin-top: 0.24rem;
}

.team-rules-popup h3 {
    margin: 0 0 0.16rem;
    text-align: center;
    color: #ffd66b;
}

.team-rules-content {
    font-size: 0.18rem;
    line-height: 1.7;
    max-height: 50vh;
    overflow-y: auto;
    white-space: pre-line;
}

.team-records-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.17rem;
}

.team-records-table th,
.team-records-table td {
    padding: 0.12rem 0.1rem;
    border: 1px solid #eee;
    text-align: center;
}

.team-records-table th {
    background: #faf6ee;
    color: #693105;
}

.team-rules-body {
    font-size: 0.185rem;
    line-height: 1.7;
    color: #333;
    word-break: break-word;
    white-space: pre-line;
}

.team-rules-body p {
    margin: 0 0 0.12rem;
}

.team-apply-account {
    margin-right: 40px;
}

@media screen and (max-width: 768px) {
    body.team-body {
        font-size: 0.26rem;
    }

    .team-header {
        padding: 0.16rem 0.2rem;
    }

    .team-logo {
        width: min(2rem, 23vw);
    }

    .team-btn-site__img {
        height: 0.34rem;
    }

    .team-header-actions {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.08rem;
    }

    .team-header-actions__extra {
        gap: 0.12rem;
    }

    .team-header-btn img {
        height: 0.42rem;
        max-width: 0.42rem;
    }

    .team-logout-link {
        font-size: 0.18rem;
    }

    .team-user-row {
        gap: 0.12rem;
    }

    .team-user-line {
        font-size: 0.18rem;
        gap: 0.1rem;
    }

    .top-bg {
        min-height: 46vh;
    }

    .team-hero-panel {
        bottom: 0.5rem;
    }

    #team-apply-dialog .team-apply-pager {
        flex-wrap: nowrap;
        gap: 0.1rem;
        margin-top: 0.2rem;
    }

    #team-apply-dialog .team-apply-pager .team-gold-btn {
        min-width: 0;
        flex: 0 0 auto;
        padding: 0.08rem 0.14rem;
        font-size: 0.15rem;
        white-space: nowrap;
    }

    #team-apply-dialog .team-apply-pager-info {
        flex: 1 1 auto;
        min-width: 0;
        font-size: 0.14rem;
        white-space: nowrap;
    }

    #team-apply-dialog .team-apply-item {
        flex-wrap: wrap;
        gap: 0.1rem;
    }

    #team-apply-dialog .team-apply-account {
        margin-right: 0;
    }

    .team-img-btn__normal,
    .team-img-btn__hover {
        height: 0.48rem;
    }

    .team-progress-gift__box {
        width: 0.72rem;
        height: 0.72rem;
    }

    .team-progress-gift__status {
        font-size: 0.14rem;
    }

    .team-progress-marker {
        width: 0.3rem;
        height: 0.3rem;
    }

    .team-greeting {
        font-size: 0.22rem;
        padding: 0 0.08rem;
    }

    .team-times {
        font-size: 0.16rem;
    }

    .team-section-title {
        max-width: 50vw;
    }

    .team-progress-node__box {
        width: 0.58rem;
        height: 0.58rem;
    }

    .team-progress-node__status {
        font-size: 0.14rem;
    }

    .team-slots-grid {
        gap: 0.2rem 0.12rem;
        max-width: 100%;
    }

    .team-slot__avatar-wrap {
        width: 0.9rem;
        height: 0.9rem;
    }

    .team-action-btn img {
        height: 0.5rem;
    }

    .team-gold-btn {
        min-width: 2rem;
        font-size: 0.22rem;
        padding: 0.12rem 0.32rem;
    }

    #team-tasks-dialog .team-modal-panel {
        max-height: 78vh;
        padding: 0.36rem 0.2rem 0.24rem;
        -webkit-overflow-scrolling: touch;
    }

    #team-tasks-dialog .team-modal-title {
        font-size: 0.26rem;
        padding: 0 0.24rem;
    }

    #team-tasks-dialog .team-modal-sub {
        font-size: 0.14rem;
        line-height: 1.55;
        margin-bottom: 0.2rem;
        padding: 0 0.04rem;
    }

    .team-modal .mod-dialog-close1 {
        top: 0.06rem !important;
        right: 0.06rem !important;
        width: 0.3rem !important;
        height: 0.3rem !important;
        background: rgba(0, 0, 0, 0.35) !important;
        padding: 0.06rem;
        border-radius: 0.06rem;
        box-sizing: border-box;
    }

    #team-tasks-dialog .team-task-table {
        font-size: 0.15rem;
    }

    #team-tasks-dialog .team-task-table thead {
        display: none;
    }

    #team-tasks-dialog .team-task-table tbody tr {
        display: block;
        margin-bottom: 0.2rem;
        padding: 0.18rem 0.14rem;
        border: 1px solid #eee;
        border-radius: 0.1rem;
        background: #fafafa;
    }

    #team-tasks-dialog .team-task-table tbody tr:last-child {
        margin-bottom: 0;
    }

    #team-tasks-dialog .team-task-table td {
        display: block;
        border-bottom: none;
        padding: 0;
        text-align: center;
    }

    #team-tasks-dialog .team-task-table .task-name {
        max-width: none;
        font-size: 0.17rem;
        font-weight: 600;
        color: #333;
        line-height: 1.5;
        white-space: normal;
        text-align: center;
        margin-bottom: 0.14rem;
    }

    #team-tasks-dialog .team-task-table td:nth-child(2) {
        margin-bottom: 0.14rem;
    }

    #team-tasks-dialog .team-task-prizes {
        gap: 0.06rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    #team-tasks-dialog .team-task-prize {
        width: calc(33.333% - 0.06rem);
        flex: 0 0 calc(33.333% - 0.06rem);
        max-width: 1.1rem;
    }

    #team-tasks-dialog .team-task-prize__img {
        width: 0.62rem;
        height: 0.62rem;
    }

    #team-tasks-dialog .team-task-prize__name {
        font-size: 0.12rem;
        line-height: 1.35;
        min-height: 0.34rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        word-break: break-all;
    }

    #team-tasks-dialog .team-task-btn {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        padding: 0.1rem 0.12rem;
        font-size: 0.16rem;
    }

    .team-modal-panel {
        padding: 0.28rem 0.2rem;
    }

    .mod-dialog1 .btn-login1 {
        padding: 8px 12px !important;
        line-height: 1.3 !important;
        font-size: 14px !important;
        min-height: 0 !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
}
