@font-face {
    font-family: 'iconfont';
    src: url('../fonts/iconfont.woff2?t=1631608872177') format('woff2'),
    url('../fonts/iconfont.woff?t=1631608872177') format('woff'),
    url('../fonts/iconfont.ttf?t=1631608872177') format('truetype');
}
.ali-icon {
    font-family: "iconfont" !important;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.fl {
    float: left;
}
.fr {
    float: right;
}

body {
    color: #122033;
    background:
        radial-gradient(circle at top left, rgba(245, 196, 110, 0.28), transparent 30%),
        radial-gradient(circle at 85% 10%, rgba(69, 124, 235, 0.16), transparent 24%),
        linear-gradient(180deg, #fffdf8 0%, #f5f7fb 100%);
    min-height: 100vh;
}

a {
    text-decoration: none;
}

.page-wrapper {
    background-color: #fff;
}

.header-top {
    background-color: #f1f1f1;
    border-bottom: 1px solid #dadada;
    -webkit-box-shadow: 0 -1px 3px rgb(0 0 0 / 3%) inset;
    box-shadow: 0 -1px 3px rgb(0 0 0 / 3%) inset;
    font-size: 14px;
}

.header-top-right-btns {
    float: right;
    text-align: center;
    font-size: 0;
}

.header-top-right-btns .btn-group>button {
    padding: 8px 10px;
    margin: 0;
    text-align: center;
    color: #999;
    font-size: 14px;
    border-right: 1px solid #e3e3e3;
    border-left: 1px solid transparent;
}

.btn-group>button:hover {
    color: #e84c3d;
    background-color: #fafafa;
    border-right-color: #e3e3e3;
}

.header-top-right-btns .btn-group:last-child>button {
    border-right-color: transparent;
}

.header {
    padding: 14px 0;
    border-bottom: 1px solid rgba(18, 32, 51, 0.08);
    background: rgba(255, 252, 245, 0.82);
    backdrop-filter: blur(18px);
}

.app-navbar {
    gap: 20px;
    justify-content: space-between;
}

.brand-cluster {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: #122033;
    letter-spacing: 0.02em;
}

.brand-mark img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(18, 32, 51, 0.12);
}

.order-entry {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(15, 123, 255, 0.08);
    color: #0f63cc;
    font-size: 0.92rem;
    font-weight: 700;
    white-space: nowrap;
}

.order-entry:hover,
.order-entry--active {
    color: #fff;
    background: linear-gradient(135deg, #102030 0%, #0f7bff 100%);
}

.search-shell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: min(100%, 360px);
    padding: 8px 8px 8px 14px;
    border: 1px solid rgba(18, 32, 51, 0.08);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 30px rgba(18, 32, 51, 0.08);
    border-radius: 999px;
}

.search-shell__icon {
    color: #7d8ca0;
}

.search-shell__input {
    border: 0;
    box-shadow: none !important;
    background: transparent;
}

.search-shell__button {
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #0f7bff 0%, #2a9d8f 100%);
    color: #fff;
    font-weight: 600;
}

.footer {
    margin-top: 32px;
    color: #5f6f82;
    background-color: transparent;
}

.footer .author a {
    color: #0f7bff;
}

.mobile-dock {
    display: none;
}

.section-kicker {
    display: inline-block;
    margin-bottom: 12px;
    color: #0f7bff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.goods-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.goods-badge--auto {
    background: linear-gradient(135deg, #14b866 0%, #42cf84 100%);
}

.goods-badge--manual {
    background: linear-gradient(135deg, #f29f05 0%, #ffbc42 100%);
}

.purchase-ticker {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 14px;
    margin: 8px 0 28px;
    padding: 12px 16px;
    border: 1px solid rgba(18, 32, 51, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 16px 34px rgba(18, 32, 51, 0.08);
}

.purchase-ticker__label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #102030 0%, #0f7bff 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.purchase-ticker__viewport {
    overflow: hidden;
}

.purchase-ticker__track {
    display: flex;
    align-items: center;
    gap: 14px;
    width: max-content;
    animation: ticker-scroll 34s linear infinite;
}

.purchase-ticker__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(248, 250, 253, 0.98) 0%, rgba(240, 244, 250, 0.96) 100%);
    border: 1px solid rgba(18, 32, 51, 0.06);
    white-space: nowrap;
    color: #4f6073;
    font-size: 0.95rem;
}

.purchase-ticker__user,
.purchase-ticker__goods {
    font-weight: 700;
    color: #102030;
}

.purchase-ticker__goods {
    color: #0f63cc;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 991.98px) {
    .header {
        padding: 10px 0;
    }

    .purchase-ticker {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    body {
        padding-bottom: calc(84px + env(safe-area-inset-bottom));
    }

    .header {
        padding: 10px 0 2px;
        border-bottom: 0;
        background: transparent;
        backdrop-filter: none;
    }

    .app-navbar {
        padding: 10px 12px !important;
        border: 1px solid rgba(18, 32, 51, 0.08);
        border-radius: 20px;
        background: rgba(255, 252, 245, 0.92);
        box-shadow: 0 12px 28px rgba(18, 32, 51, 0.08);
    }

    .brand-cluster {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }

    .brand-mark {
        max-width: calc(100% - 110px);
        font-size: 15px;
        gap: 10px;
    }

    .brand-mark img {
        width: 36px;
        height: 36px;
    }

    .order-entry {
        padding: 7px 11px;
        font-size: 0.82rem;
    }

    .footer {
        padding-bottom: 10px !important;
    }

    .mobile-dock {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1040;
        padding: 0 0 calc(10px + env(safe-area-inset-bottom));
        pointer-events: none;
    }

    .mobile-dock .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .mobile-dock__shell {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px;
        border: 1px solid rgba(18, 32, 51, 0.08);
        border-radius: 22px;
        background: rgba(255, 252, 245, 0.96);
        box-shadow: 0 16px 38px rgba(18, 32, 51, 0.12);
        backdrop-filter: blur(14px);
        pointer-events: auto;
    }

    .mobile-dock__shell--buy {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 78px 116px;
        gap: 8px;
        padding: 7px;
        background: rgba(20, 20, 20, 0.92);
        border-color: rgba(255, 255, 255, 0.08);
        box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
    }

    .mobile-dock__item {
        flex: 0 0 auto;
        min-width: 66px;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 8px 10px;
        border-radius: 16px;
        color: #60758b;
        font-size: 0.7rem;
        font-weight: 700;
        line-height: 1;
    }

    .mobile-dock__item.is-active {
        background: rgba(15, 123, 255, 0.1);
        color: #0f63cc;
    }

    .mobile-dock__icon {
        font-size: 1rem;
        line-height: 1;
    }

    .mobile-dock__cta,
    .mobile-dock__status {
        flex: 1 1 auto;
        min-height: 48px;
        border-radius: 18px;
    }

    .mobile-dock__cta {
        border: 0;
        background: linear-gradient(135deg, #102030 0%, #0f7bff 100%);
        color: #fff;
        font-size: 0.95rem;
        font-weight: 800;
        box-shadow: 0 14px 28px rgba(15, 123, 255, 0.2);
    }

    .mobile-dock__cta--buy {
        flex: 0 0 124px;
        min-height: 48px;
        border-radius: 14px;
        background: linear-gradient(180deg, #ff6952 0%, #ef2f1f 100%);
        box-shadow: 0 14px 30px rgba(239, 47, 31, 0.28);
        font-size: 0.92rem;
    }

    .mobile-dock__status {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 246, 250, 0.96) 100%);
        border: 1px solid rgba(18, 32, 51, 0.06);
        color: #223247;
        font-size: 0.82rem;
        font-weight: 800;
    }

    .mobile-dock__status-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #28c76f;
        box-shadow: 0 0 0 6px rgba(40, 199, 111, 0.12);
    }

    .mobile-dock__buy-info {
        width: 100%;
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 0;
        padding: 0 2px;
    }

    .mobile-dock__avatars {
        display: flex;
        align-items: center;
        min-width: 50px;
    }

    .mobile-dock__avatar {
        width: 26px;
        height: 26px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        border: 2px solid rgba(20, 20, 20, 0.92);
        color: #fff;
        font-size: 0.68rem;
        font-weight: 800;
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.14);
    }

    .mobile-dock__avatar + .mobile-dock__avatar {
        margin-left: -8px;
    }

    .mobile-dock__avatar--one {
        background: linear-gradient(135deg, #8cd96a 0%, #6cb74d 100%);
    }

    .mobile-dock__avatar--two {
        background: linear-gradient(135deg, #ffd28b 0%, #f6a04d 100%);
    }

    .mobile-dock__buy-copy {
        width: 100%;
        min-width: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        line-height: 1.1;
    }

    .mobile-dock__buy-copy strong {
        color: #fff;
        font-size: 0.94rem;
        font-weight: 900;
        letter-spacing: 0.01em;
        white-space: nowrap;
    }

    .mobile-dock__qty {
        flex: 0 0 124px;
        min-height: 52px;
        display: grid;
        grid-template-columns: 38px 1fr 38px;
        align-items: center;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.08);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
        overflow: hidden;
    }

    .mobile-dock__qty--inline {
        flex: 0 0 auto;
        width: 102px;
        min-height: 28px;
        margin-top: 6px;
        grid-template-columns: 26px 1fr 26px;
        border-radius: 11px;
        background: rgba(255, 255, 255, 0.06);
    }

    .mobile-dock__qty-btn {
        height: 100%;
        border: 0;
        background: rgba(255, 255, 255, 0.12);
        color: #fff;
        font-size: 1.45rem;
        font-weight: 700;
        line-height: 1;
    }

    .mobile-dock__qty--inline .mobile-dock__qty-btn {
        font-size: 0.98rem;
    }

    .mobile-dock__qty-input {
        width: 100%;
        height: 100%;
        border: 0;
        background: transparent;
        color: #fff;
        text-align: center;
        font-size: 1rem;
        font-weight: 800;
        outline: none;
        -moz-appearance: textfield;
    }

    .mobile-dock__qty--inline .mobile-dock__qty-input {
        font-size: 0.82rem;
    }

    .mobile-dock__qty-input::-webkit-outer-spin-button,
    .mobile-dock__qty-input::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    .mobile-dock__pay-trigger {
        width: 78px;
        min-height: 48px;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        border: 0;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    }

    .mobile-dock__pay-label {
        font-size: 0.58rem;
        color: rgba(255, 255, 255, 0.68);
        font-weight: 700;
    }

    .mobile-dock__pay-trigger strong {
        font-size: 0.74rem;
        font-weight: 800;
        white-space: nowrap;
        max-width: 64px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    @media (max-width: 430px) {
        .mobile-dock__shell--buy {
            grid-template-columns: minmax(0, 1fr) 102px;
            grid-template-areas:
                "info cta"
                "pay  cta";
            align-items: stretch;
            column-gap: 10px;
            row-gap: 8px;
        }

        .mobile-dock__buy-info {
            grid-area: info;
        }

        .mobile-dock__buy-copy {
            display: grid;
            grid-template-columns: auto 1fr;
            align-items: center;
            column-gap: 10px;
            row-gap: 0;
        }

        .mobile-dock__buy-copy strong {
            font-size: 0.88rem;
            white-space: nowrap;
        }

        .mobile-dock__qty--inline {
            width: 100%;
            margin-top: 0;
            min-width: 0;
            grid-template-columns: 34px minmax(0, 1fr) 34px;
            height: 42px;
            border-radius: 12px;
            overflow: hidden;
        }

        .mobile-dock__qty--inline .mobile-dock__qty-btn {
            font-size: 0.92rem;
        }

        .mobile-dock__qty--inline .mobile-dock__qty-input {
            font-size: 0.8rem;
        }

        .mobile-dock__pay-trigger {
            grid-area: pay;
            width: 100%;
            min-height: 40px;
            flex-direction: row;
            gap: 6px;
            justify-content: center;
            padding: 8px 10px;
            border-radius: 12px;
        }

        .mobile-dock__pay-label {
            font-size: 0.56rem;
        }

        .mobile-dock__pay-trigger strong {
            max-width: none;
            font-size: 0.74rem;
        }

        .mobile-dock__cta--buy {
            grid-area: cta;
            width: 102px;
            min-height: 100%;
            border-radius: 18px;
            font-size: 0.98rem;
        }
    }
}
