/* VIP offers: preserve the original solid dialog and show details above labels. */
.layui-layer.tkshop-credit-recharge-form {
    width: min(500px, calc(100vw - 24px)) !important;
    max-height: calc(100vh - 24px);
    overflow: hidden;
    border: 1px solid #e8edf3 !important;
    border-radius: 12px !important;
    background: #fff !important;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: 0 20px 60px rgba(31, 45, 61, 0.22);
}

.layui-layer.tkshop-credit-recharge-form .layui-layer-title,
.layui-layer.tkshop-credit-recharge-form .layui-layer-content {
    background: #fff !important;
}

.layui-layer.tkshop-credit-recharge-form .layui-layer-title {
    height: 58px;
    padding: 0 22px;
    border-bottom: 1px solid #edf0f4 !important;
    color: #40516b;
    font-size: 18px;
    line-height: 58px;
}

.layui-layer.tkshop-credit-recharge-form .layui-layer-setwin {
    top: 18px;
    right: 18px;
}

.layui-layer.tkshop-credit-recharge-form .layui-layer-setwin a {
    opacity: 0.72;
}

.layui-layer.tkshop-credit-recharge-form .layui-layer-content {
    max-height: calc(100vh - 82px);
    padding: 0 !important;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(110, 132, 161, 0.42) transparent;
}

.layui-layer.tkshop-credit-recharge-form .tkshop-credit-recharge-content {
    background: #fff;
}

.layui-layer.tkshop-credit-recharge-form .tkshop-credit-recharge-number.vip > li,
.layui-layer.tkshop-credit-recharge-form .tkshop-credit-recharge-type li {
    background: #fff;
    border-color: #edf0f4;
    box-shadow: none;
}

.layui-layer.tkshop-credit-recharge-form .tkshop-credit-recharge-number.vip > li:hover,
.layui-layer.tkshop-credit-recharge-form .tkshop-credit-recharge-number.vip > li.on,
.layui-layer.tkshop-credit-recharge-form .tkshop-credit-recharge-type li.on {
    background: #fff;
    border-color: rgba(32, 184, 255, 0.72);
}

.layui-layer.tkshop-credit-recharge-form .tkshop-credit-recharge-number li .xianshi-pill {
    background: #ffebde;
    border: 0;
    box-shadow: none;
}

.layui-layer.tkshop-credit-recharge-form .order-b-button {
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin: 0 -20px -15px;
    padding: 15px 20px 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 42%);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.tkshop-credit-recharge-number.vip {
    display: block;
    clear: both;
}

.tkshop-credit-recharge-number.vip > li {
    display: block;
    float: left;
    width: 24%;
    min-width: 0;
    padding: 8px 10px;
    margin-right: 1.3333%;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.tkshop-credit-recharge-number.vip > li:hover,
.tkshop-credit-recharge-number.vip > li:focus-within {
    z-index: 10;
}

.tkshop-credit-recharge-number.vip > li:nth-child(4n) {
    margin-right: 0;
}

.tkshop-credit-recharge-number.vip > li .top {
    padding: 14px 0 16px;
}

.tkshop-credit-recharge-number.vip > li .bottom {
    margin-top: 0;
    padding-top: 8px;
}

.tkshop-credit-recharge-number li .xianshi {
    position: absolute;
    top: 52px;
    right: 10px;
    left: 10px;
    display: block;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: visible;
    white-space: nowrap;
    background: transparent;
    outline: 0;
    z-index: 2;
}

.tkshop-credit-recharge-number li .xianshi-pill {
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 26px;
    padding: 0 8px;
    border-radius: 10px 0;
    background: #ffebde;
}

.tkshop-credit-recharge-number li .xianshi-pill > i {
    flex: 0 0 auto;
    font-size: 16px;
}

.tkshop-credit-recharge-number li .xianshi-label {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: left;
}

.tkshop-credit-recharge-number li .xianshi-label > span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.tkshop-credit-recharge-number li .xianshi::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 9px);
    z-index: 30;
    box-sizing: border-box;
    width: max-content;
    min-width: 0;
    max-width: min(240px, calc(100vw - 40px));
    margin: 0;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.42);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    backdrop-filter: blur(14px) saturate(150%);
    box-shadow: 0 10px 28px rgba(31, 45, 61, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.42);
    color: #713a21;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.55;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 5px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.tkshop-credit-recharge-number li .xianshi::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(100% + 4px);
    z-index: 31;
    width: 10px;
    height: 10px;
    border-right: 1px solid rgba(255, 255, 255, 0.68);
    border-bottom: 1px solid rgba(255, 255, 255, 0.68);
    background: rgba(255, 255, 255, 0.42);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    backdrop-filter: blur(14px) saturate(150%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) rotate(45deg);
    transition: opacity 0.16s ease, visibility 0.16s ease;
}

.tkshop-credit-recharge-number.vip > li:nth-child(4n + 1) .xianshi::after {
    left: 0;
    transform: translateY(5px);
}

.tkshop-credit-recharge-number.vip > li:nth-child(4n) .xianshi::after {
    right: 0;
    left: auto;
    transform: translateY(5px);
}

.tkshop-credit-recharge-number li .xianshi:hover::after,
.tkshop-credit-recharge-number li .xianshi:focus::after {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.tkshop-credit-recharge-number li .xianshi:hover::before,
.tkshop-credit-recharge-number li .xianshi:focus::before {
    opacity: 1;
    visibility: visible;
}

.tkshop-credit-recharge-number.vip > li:nth-child(4n + 1) .xianshi:hover::after,
.tkshop-credit-recharge-number.vip > li:nth-child(4n + 1) .xianshi:focus::after,
.tkshop-credit-recharge-number.vip > li:nth-child(4n) .xianshi:hover::after,
.tkshop-credit-recharge-number.vip > li:nth-child(4n) .xianshi:focus::after {
    transform: translateY(0);
}

.tkshop-credit-recharge-number li .xianshi:focus-visible .xianshi-pill {
    outline: 2px solid #20a0ff;
    outline-offset: 2px;
}

.tkshop-mycredit-table {
    --wallet-item-column: minmax(0, 46%);
    --wallet-amount-column: minmax(124px, 1fr);
    --wallet-time-column: 76px;
}

.layui-layer.tkshop-mywallet-form {
    width: min(620px, calc(100vw - 20px)) !important;
    max-height: none !important;
    border-radius: 12px !important;
    overflow: visible !important;
}

.layui-layer.tkshop-mywallet-form .layui-layer-content {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

.layui-layer.tkshop-mywallet-form .tkshop-mycredit-form {
    overflow: visible;
}

.layui-layer.tkshop-mywallet-form .tkshop-mycredit-top {
    padding: 14px 20px 12px;
}

.layui-layer.tkshop-mywallet-form .tkshop-mycredit-bottom {
    padding: 0 20px 12px;
}

.layui-layer.tkshop-mywallet-form .tkshop-mycredit-bottom .layui-tab-title {
    height: 38px;
}

.layui-layer.tkshop-mywallet-form .tkshop-mycredit-bottom .layui-tab-title li {
    line-height: 38px;
}

.tkshop-mycredit-table > .title,
.tkshop-mycredit-table .content li {
    display: grid;
    grid-template-columns: var(--wallet-item-column) var(--wallet-amount-column) var(--wallet-time-column);
    align-items: center;
    column-gap: 12px;
    box-sizing: border-box;
}

.tkshop-mycredit-table > .title {
    min-height: 40px;
    padding: 0 16px;
    border-radius: 9px;
    background: linear-gradient(105deg, #209ff0, #20b8f5);
    box-shadow: 0 7px 18px rgba(32, 160, 255, 0.14);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.tkshop-mycredit-table .title span {
    min-width: 0;
    border-right: 0 !important;
}

.tkshop-mycredit-table .title span:nth-child(1) {
    text-align: center;
}

.tkshop-mycredit-table .title span:nth-child(2) {
    text-align: center;
}

.tkshop-mycredit-table .title span:nth-child(3) {
    text-align: center;
}

.tkshop-mycredit-table .content {
    position: relative;
    height: auto;
    min-height: 216px;
    overflow: visible;
    transition: opacity 0.16s ease;
}

.tkshop-mycredit-table .content.is-page-loading {
    opacity: 0.58;
    pointer-events: none;
}

.tkshop-mycredit-table .content.is-page-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    box-sizing: border-box;
    border: 2px solid rgba(32, 160, 255, 0.22);
    border-top-color: #20a0ff;
    border-radius: 50%;
    animation: tkshop-wallet-page-loading 0.7s linear infinite;
}

.tkshop-mycredit-table .content li {
    min-height: 36px;
    padding: 4px 16px;
    border-bottom: 1px solid #f0f3f7;
    color: #718198;
    text-align: left;
    cursor: default;
    transition: background-color 0.16s ease, color 0.16s ease;
}

.tkshop-mycredit-table .content li[onclick] {
    cursor: pointer;
}

.tkshop-mycredit-table .content li:hover {
    background: #f8fbfe;
    color: #52647b;
}

.tkshop-mycredit-table .content li span {
    min-width: 0;
    line-height: 1.45;
}

.tkshop-mycredit-table .content li span:nth-child(1) {
    max-width: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.tkshop-mycredit-table .content li span:nth-child(2) {
    justify-self: center;
    text-align: center;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

@keyframes tkshop-wallet-page-loading {
    to {
        transform: rotate(360deg);
    }
}

.tkshop-mycredit-table .content li span:nth-child(3) {
    justify-self: end;
    color: #9aa7b9;
    text-align: right;
    white-space: nowrap;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.tkshop-mycredit-table .content li .apply-add,
.tkshop-mycredit-table .content li .apply-cut {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    box-sizing: border-box;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 600;
    line-height: 1.35;
}

.tkshop-mycredit-page {
    min-height: 40px;
    overflow: visible;
    white-space: nowrap;
}

.tkshop-mycredit-page:empty {
    min-height: 0;
}

.tkshop-mycredit-page .layui-laypage {
    margin: 8px 0 0;
}

.tkshop-mycredit-page .layui-laypage a,
.tkshop-mycredit-page .layui-laypage span {
    height: 32px;
    padding: 0 11px;
    line-height: 32px;
}

.tkshop-mycredit-page .layui-laypage input {
    height: 30px;
    width: 40px;
}

.tkshop-mycredit-page .layui-laypage button {
    height: 32px;
    line-height: 30px;
}

.tkshop-mycredit-table .content li .apply-add {
    background: rgba(0, 177, 103, 0.09);
    color: #00a663;
}

.tkshop-mycredit-table .content li .apply-cut {
    background: rgba(255, 100, 100, 0.09);
    color: #ef6666;
}

body.night .tkshop-credit-recharge-number li .xianshi-pill {
    background: rgba(255, 103, 0, 0.15);
    color: #ffa467;
}

body.night .layui-layer.tkshop-credit-recharge-form,
body.night .layui-layer.tkshop-credit-recharge-form .layui-layer-title,
body.night .layui-layer.tkshop-credit-recharge-form .layui-layer-content,
body.night .layui-layer.tkshop-credit-recharge-form .tkshop-credit-recharge-content {
    background: #34425a !important;
}

body.night .layui-layer.tkshop-credit-recharge-form .tkshop-credit-recharge-number.vip > li,
body.night .layui-layer.tkshop-credit-recharge-form .tkshop-credit-recharge-type li {
    background: #34425a;
    border-color: rgba(153, 169, 191, 0.3);
}

body.night .layui-layer.tkshop-credit-recharge-form .order-b-button {
    background: linear-gradient(180deg, rgba(52, 66, 90, 0), #34425a 42%);
}

body.night .tkshop-credit-recharge-number li .xianshi::after {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(30, 42, 59, 0.56);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    color: #ffdfc6;
}

body.night .tkshop-credit-recharge-number li .xianshi::before {
    border-right-color: rgba(255, 255, 255, 0.2);
    border-bottom-color: rgba(255, 255, 255, 0.2);
    background: rgba(30, 42, 59, 0.56);
}

body.night .tkshop-mycredit-table .content li {
    border-bottom-color: rgba(255, 255, 255, 0.06);
    color: #aab5c5;
}

body.night .tkshop-mycredit-table .content li:hover {
    background: rgba(255, 255, 255, 0.035);
    color: #d8e0eb;
}

body.night .tkshop-mycredit-table .content li span:nth-child(3) {
    color: #7f8da1;
}

body.night .tkshop-mycredit-table .content li .apply-add {
    background: rgba(0, 177, 103, 0.13);
}

body.night .tkshop-mycredit-table .content li .apply-cut {
    background: rgba(255, 100, 100, 0.13);
}

@media (max-width: 640px) {
    .tkshop-mycredit-table {
        --wallet-amount-column: auto;
        --wallet-time-column: 64px;
    }

    .tkshop-mycredit-table > .title,
    .tkshop-mycredit-table .content li {
        column-gap: 9px;
    }

    .tkshop-mycredit-table > .title {
        min-height: 42px;
        padding: 0 11px;
        font-size: 13px;
    }

    .tkshop-mycredit-table .content li {
        padding: 5px 11px;
        font-size: 13px;
    }

    .tkshop-mycredit-table .content li span:nth-child(3) {
        font-size: 12px;
    }

    .tkshop-mycredit-table .content li .apply-add,
    .tkshop-mycredit-table .content li .apply-cut {
        min-width: 0;
        padding: 4px 8px;
    }

}

@media (prefers-reduced-motion: reduce) {
    .tkshop-mycredit-table .content,
    .tkshop-mycredit-table .content li {
        transition: none;
    }

    .tkshop-mycredit-table .content.is-page-loading::after {
        animation-duration: 1.4s;
    }
}

/* Sign-in center: resilient calendar and two-column page layout. */
.qiandao-page.dashboard-wrapper {
    align-items: stretch;
}

.qiandao-page .dashcontent_wrapper {
    width: 100%;
    min-width: 0;
}

.qiandao-page .tk-main-content.sign-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(270px, 300px);
    gap: 24px;
    width: 100%;
    min-width: 0;
}

.qiandao-page .tk-content-left,
.qiandao-page .tk-content-right {
    float: none;
    width: auto;
    min-width: 0;
    margin: 0;
}

.qiandao-page .tk-content-left {
    padding-bottom: 0;
}

.qiandao-page .tk-sign-page-box.rank {
    grid-column: 1 / -1;
    min-width: 0;
}

.qiandao-page .sign-calendar {
    overflow: hidden;
    isolation: isolate;
}

.qiandao-page .sign-calendar table {
    display: table !important;
    width: 100% !important;
    table-layout: fixed;
    border-collapse: collapse !important;
}

.qiandao-page .sign-calendar col {
    width: 14.285714%;
}

.qiandao-page .sign-calendar thead {
    display: table-header-group !important;
}

.qiandao-page .sign-calendar tbody {
    display: table-row-group !important;
}

.qiandao-page .sign-calendar tr {
    display: table-row !important;
}

.qiandao-page .sign-calendar th,
.qiandao-page .sign-calendar td {
    display: table-cell !important;
    box-sizing: border-box;
}

.qiandao-page .sign-calendar thead::after {
    display: none !important;
    content: none !important;
}

.qiandao-page .sign-calendar thead th {
    position: relative;
    width: 14.285714%;
    height: 48px;
    padding: 0;
    border: 0;
    color: #7f8da1;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}

.qiandao-page .sign-calendar thead th span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.qiandao-page .sign-calendar tbody td {
    width: 14.285714% !important;
    height: 84px;
    padding: 0 !important;
    overflow: hidden;
    vertical-align: top;
}

.qiandao-page .sign-calendar tbody td.is-empty {
    cursor: default;
}

.qiandao-page .sign-calendar tbody td.today {
    background: rgba(32, 160, 255, 0.055);
    box-shadow: inset 0 0 0 1px rgba(32, 160, 255, 0.3);
}

.qiandao-page .sign-calendar tbody td.in {
    cursor: default;
}

.qiandao-page .sign-calendar tbody td.in > span {
    opacity: 0.56;
}

.qiandao-page .sign-calendar .c-event {
    margin: 6px;
}

body.night .qiandao-page .sign-calendar thead th {
    color: #99a9bf;
}

body.night .qiandao-page .sign-calendar tbody td.today {
    background: rgba(32, 160, 255, 0.09);
    box-shadow: inset 0 0 0 1px rgba(77, 190, 245, 0.35);
}

@media (max-width: 1200px) {
    .qiandao-page .tk-main-content.sign-page {
        grid-template-columns: minmax(0, 1fr) minmax(250px, 280px);
        gap: 18px;
    }

    .qiandao-page .sign-calendar tbody td {
        height: 72px;
    }
}

@media (max-width: 991px) {
    .qiandao-page .tk-main-content.sign-page {
        grid-template-columns: minmax(0, 1fr);
    }

    .qiandao-page .tk-sign-page-box.rank {
        grid-column: auto;
    }

    .qiandao-page .tk-content-right {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .qiandao-page .tk-content-right > .tk-sign-page-box {
        min-width: 0;
    }

    .qiandao-page .tk-content-right > .tk-sign-page-box.sign-btn,
    .qiandao-page .tk-content-right > .tk-sign-page-box.custom {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .qiandao-page.dashboard-wrapper {
        padding: 18px 12px;
    }

    .qiandao-page .dashcontent_wrapper {
        padding-right: 0;
        padding-left: 0;
    }

    .qiandao-page .tk-main-content.sign-page {
        gap: 14px;
    }

    .qiandao-page .tk-sign-page-header {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
    }

    .qiandao-page .tk-sign-page-header .one,
    .qiandao-page .tk-sign-page-header .sign-col {
        width: 100%;
        box-sizing: border-box;
    }

    .qiandao-page .sign-calendar thead th {
        height: 40px;
        font-size: 12px;
    }

    .qiandao-page .sign-calendar tbody td {
        height: 54px;
    }

    .qiandao-page .sign-calendar tbody td > span {
        top: 5px;
        right: 5px;
        width: 1.65rem;
        height: 1.65rem;
        font-size: 12px;
    }

    .qiandao-page .sign-calendar .c-event {
        min-height: 18px;
        margin: 4px;
        padding: 2px 5px;
        font-size: 10px;
    }

    .qiandao-page .tk-content-right {
        grid-template-columns: minmax(0, 1fr);
    }

    .qiandao-page .tk-content-right > .tk-sign-page-box.sign-btn,
    .qiandao-page .tk-content-right > .tk-sign-page-box.custom {
        grid-column: auto;
    }

    .qiandao-page .tk-sign-page-box.rank .layui-tab-item li {
        width: 100%;
        margin-right: 0;
    }
}
