/**
 * 子比主题·赞助插件 前端样式
 * v1.3.0
 *
 * 作用域约定：页面 = .zsp-page    小工具 = .zsp-widget
 * 站点 html{font-size:10px}，所以本文件字号一律使用 px，不使用 rem。
 */

.zsp-page,
.zsp-widget {
    --zsp-gold: #f0a020;
    --zsp-green: #35b56a;
    --zsp-r: 16px;
    --zsp-r-sm: 11px;
    --zsp-ease: cubic-bezier(.4, 0, .2, 1);
    --zsp-dash: var(--main-border-color);
    color: var(--main-color);
    -webkit-tap-highlight-color: transparent;
}

.zsp-page {
    padding: 18px 18px 26px;
    position: relative;
}

.zsp-page button {
    font-family: inherit;
    line-height: 1.2;
}

/* ================= 首屏横幅 ================= */
.zsp-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: var(--zsp-r);
    padding: 26px 26px 24px;
    background: var(--theme-color);
    color: #fff;
}

.zsp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(135deg, rgba(0, 0, 0, .04) 0%, rgba(0, 0, 0, .18) 45%, rgba(0, 0, 0, .46) 100%);
}

.zsp-hero::after {
    content: '';
    position: absolute;
    z-index: -1;
    width: 380px;
    height: 380px;
    right: -140px;
    top: -180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 68%);
    pointer-events: none;
}

.zsp-hero-deco {
    position: absolute;
    pointer-events: none;
    z-index: -1;
}

.zsp-hero-deco.d1 {
    width: 220px;
    height: 220px;
    left: -90px;
    bottom: -130px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .22);
}

.zsp-hero-deco.d2 {
    width: 120px;
    height: 120px;
    left: 30px;
    bottom: -80px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .14);
}

.zsp-hero-deco.d3 {
    width: 46px;
    height: 46px;
    right: 84px;
    bottom: 26px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .2);
    transform: rotate(24deg);
}

.zsp-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .26);
    font-size: 12px;
    letter-spacing: .4px;
    color: #fff;
}

.zsp-hero-eyebrow i {
    font-size: 12px;
}

.zsp-hero-title {
    margin: 13px 0 9px;
    font-size: 25px;
    line-height: 1.3;
    font-weight: 700;
    color: #fff;
    letter-spacing: .5px;
}

.zsp-hero-desc {
    margin: 0;
    max-width: 620px;
    font-size: 13.5px;
    line-height: 1.8;
    color: rgba(255, 255, 255, .84);
}

.zsp-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}

.zsp-stat {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .16);
}

.zsp-stat b {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.zsp-stat span {
    font-size: 11.5px;
    color: rgba(255, 255, 255, .78);
}

/* ================= 标签页 ================= */
.zsp-tabs {
    position: relative;
    display: flex;
    gap: 4px;
    padding: 5px;
    margin: 18px 0;
    border-radius: 14px;
    background: var(--muted-bg-color);
    box-shadow: inset 0 0 0 1px var(--main-border-color);
}

.zsp-tab-ind {
    position: absolute;
    top: 5px;
    left: 0;
    width: 0;
    height: calc(100% - 10px);
    border-radius: 10px;
    background: var(--main-bg-color);
    box-shadow: 0 3px 12px var(--main-shadow);
    transition: transform .4s var(--zsp-ease), width .4s var(--zsp-ease);
    pointer-events: none;
    z-index: 0;
}

.zsp-tab {
    position: relative;
    z-index: 1;
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 9px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--muted-color);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: color .25s ease;
}

.zsp-tab:hover {
    color: var(--theme-color);
}

.zsp-tab.active {
    color: var(--theme-color);
}

.zsp-tab i {
    font-size: 14px;
    transition: transform .35s var(--zsp-ease);
}

.zsp-tab.active i {
    transform: scale(1.12);
}

.zsp-tab-num {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--muted-bg-color);
    color: var(--muted-2-color);
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    transition: background .25s ease, color .25s ease;
}

.zsp-tab.active .zsp-tab-num {
    background: var(--theme-color);
    color: #fff;
}

/* ================= 面板切换 ================= */
.zsp-panels {
    position: relative;
    transition: height .4s var(--zsp-ease);
}

.zsp-panel {
    display: none;
}

.zsp-panel.active {
    display: block;
    animation: zsp-panel-in .34s var(--zsp-ease);
}

@keyframes zsp-panel-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
}

/* ================= 表单栅格 ================= */
.zsp-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 336px;
    gap: 16px;
    align-items: start;
}

.zsp-form-main {
    min-width: 0;
}

.zsp-form-side {
    min-width: 0;
    align-self: stretch;
}

.zsp-card {
    padding: 17px 18px;
    border-radius: var(--zsp-r);
    background: var(--main-bg-color);
    box-shadow: inset 0 0 0 1px var(--main-border-color);
}

.zsp-card + .zsp-card {
    margin-top: 14px;
}

.zsp-card-head {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
}

.zsp-step {
    flex: 0 0 21px;
    width: 21px;
    height: 21px;
    border-radius: 7px;
    background: var(--theme-color);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 21px;
    text-align: center;
}

.zsp-card-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--main-color);
}

.zsp-card-hint {
    margin-left: auto;
    font-size: 11.5px;
    color: var(--muted-2-color);
}

/* ================= 金额卡片 ================= */
.zsp-amounts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 10px;
}

.zsp-amt {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 15px 8px 13px;
    border: 1.5px solid var(--main-border-color);
    border-radius: var(--zsp-r-sm);
    background: var(--muted-bg-2-color);
    cursor: pointer;
    overflow: hidden;
    transition: transform .28s var(--zsp-ease), border-color .25s ease, background .25s ease, box-shadow .28s ease;
}

.zsp-amt:hover {
    transform: translateY(-2px);
    border-color: var(--theme-color);
}

.zsp-amt.active {
    border-color: var(--theme-color);
    background: var(--main-bg-color);
    box-shadow: 0 6px 18px var(--focus-shadow-color);
}

.zsp-amt-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-2-color);
    font-size: 17px;
    transition: color .25s ease;
}

.zsp-amt-icon svg.icon {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.zsp-amt.active .zsp-amt-icon {
    color: var(--theme-color);
}

.zsp-amt-price {
    font-size: 21px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--main-color);
    font-variant-numeric: tabular-nums;
    letter-spacing: -.3px;
    white-space: nowrap;
}

.zsp-amt-price small {
    font-size: 12px;
    font-weight: 600;
    margin-right: 1px;
    opacity: .65;
}

.zsp-amt.active .zsp-amt-price {
    color: var(--theme-color);
}

.zsp-amt-name {
    font-size: 11px;
    line-height: 1.5;
    color: var(--muted-2-color);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zsp-amt-tag {
    display: block;
    max-width: 100%;
    margin-top: 2px;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(240, 160, 32, .13);
    color: var(--zsp-gold);
    font-size: 10px;
    font-weight: 600;
    line-height: 16px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.zsp-amt-tag i {
    margin-right: 2px;
}

.zsp-amt-dot {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--theme-color);
    color: #fff;
    font-size: 9px;
    line-height: 15px;
    text-align: center;
    opacity: 0;
    transform: scale(.4);
    transition: opacity .22s ease, transform .28s var(--zsp-ease);
}

.zsp-amt.active .zsp-amt-dot {
    opacity: 1;
    transform: scale(1);
}

.zsp-amt.is-custom {
    border-style: dashed;
    background: transparent;
}

.zsp-amt.is-custom .zsp-amt-price {
    font-size: 15px;
    font-weight: 700;
}

/* 自定义金额输入 */
.zsp-custom {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height .3s var(--zsp-ease), opacity .25s ease, margin .3s ease;
}

.zsp-custom.open {
    opacity: 1;
    margin-top: 11px;
}

.zsp-custom-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 3px 12px 3px 14px;
    border: 1.5px solid var(--main-border-color);
    border-radius: var(--zsp-r-sm);
    background: var(--muted-bg-2-color);
    transition: border-color .25s ease, background .25s ease;
}

.zsp-custom-inner:focus-within {
    border-color: var(--theme-color);
    background: var(--main-bg-color);
}

.zsp-custom-inner .cur {
    font-size: 15px;
    font-weight: 700;
    color: var(--muted-2-color);
}

.zsp-custom-input {
    flex: 1;
    min-width: 0;
    height: 40px;
    border: 0;
    background: none;
    color: var(--main-color);
    font-size: 16px;
    font-weight: 600;
    outline: 0;
    -moz-appearance: textfield;
    appearance: textfield;
}

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

.zsp-custom-input::placeholder {
    color: var(--muted-2-color);
    font-weight: 400;
    font-size: 13px;
}

.zsp-quick-pick {
    display: flex;
    gap: 6px;
    flex: 0 0 auto;
}

.zsp-quick-pick button {
    padding: 0 9px;
    height: 26px;
    border: 0;
    border-radius: 7px;
    background: var(--muted-bg-color);
    color: var(--muted-color);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.zsp-quick-pick button:hover {
    background: var(--theme-color);
    color: #fff;
}

/* ================= 支付方式 ================= */
.zsp-pays {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(186px, 1fr));
    gap: 10px;
}

.zsp-pay {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 13px;
    border: 1.5px solid var(--main-border-color);
    border-radius: var(--zsp-r-sm);
    background: var(--muted-bg-2-color);
    cursor: pointer;
    text-align: left;
    transition: transform .26s var(--zsp-ease), border-color .25s ease, background .25s ease, box-shadow .26s ease;
}

.zsp-pay:hover {
    transform: translateY(-2px);
    border-color: var(--theme-color);
}

.zsp-pay.active {
    border-color: var(--theme-color);
    background: var(--main-bg-color);
    box-shadow: 0 5px 16px var(--focus-shadow-color);
}

.zsp-pay-logo {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    background: var(--main-bg-color);
    box-shadow: inset 0 0 0 1px var(--main-border-color);
}

.zsp-pay-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
    border-radius: 8px;
}

.zsp-pay-logo svg {
    width: 18px;
    height: 18px;
    fill: var(--theme-color);
}

.zsp-pay-txt {
    flex: 1;
    min-width: 0;
}

.zsp-pay-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--main-color);
    line-height: 1.4;
}

.zsp-pay-badge {
    padding: 0 5px;
    border-radius: 4px;
    background: var(--theme-color);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 15px;
}

.zsp-pay-desc {
    margin-top: 1px;
    font-size: 11px;
    line-height: 1.5;
    color: var(--muted-2-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zsp-pay-radio {
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    border: 1.5px solid var(--muted-4-color);
    position: relative;
    transition: border-color .22s ease;
}

.zsp-pay.active .zsp-pay-radio {
    border-color: var(--theme-color);
}

.zsp-pay.active .zsp-pay-radio::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--theme-color);
    transform: scale(0);
    animation: zsp-pop .26s var(--zsp-ease) forwards;
}

@keyframes zsp-pop {
    to {
        transform: scale(1);
    }
}

.zsp-pay-empty {
    font-size: 12.5px;
    color: var(--muted-2-color);
    padding: 8px 0;
}

/* ================= 右侧结算卡 ================= */
.zsp-sum {
    position: sticky;
    top: 84px;
    border-radius: var(--zsp-r);
    background: var(--main-bg-color);
    box-shadow: inset 0 0 0 1px var(--main-border-color);
    overflow: hidden;
}

.zsp-sum-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 16px 13px;
    border-bottom: 1px dashed var(--main-border-color);
}

.zsp-sum-head h3 {
    margin: 0;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--main-color);
}

.zsp-sum-head span {
    margin-left: auto;
    font-size: 11px;
    color: var(--muted-2-color);
}

.zsp-sum-body {
    padding: 14px 16px 16px;
}

.zsp-field {
    margin-bottom: 11px;
}

.zsp-field label {
    display: block;
    margin-bottom: 5px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--muted-2-color);
}

.zsp-field label em {
    font-style: normal;
    color: var(--muted-3-color);
    font-weight: 400;
}

.zsp-input {
    display: block;
    width: 100%;
    height: 38px;
    padding: 0 11px;
    border: 1.5px solid var(--main-border-color);
    border-radius: 9px;
    background: var(--muted-bg-2-color);
    color: var(--main-color);
    font-size: 13px;
    outline: 0;
    transition: border-color .22s ease, background .22s ease;
}

.zsp-input::placeholder {
    color: var(--muted-3-color);
}

.zsp-input:focus {
    border-color: var(--theme-color);
    background: var(--main-bg-color);
}

.zsp-counter {
    float: right;
    font-size: 11px;
    font-weight: 400;
    color: var(--muted-3-color);
}

.zsp-rows {
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px dashed var(--main-border-color);
}

.zsp-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 5px 0;
    font-size: 12.5px;
}

.zsp-row .k {
    color: var(--muted-color);
    display: flex;
    align-items: center;
    gap: 4px;
}

.zsp-row .v {
    color: var(--main-color);
    font-weight: 600;
    text-align: right;
    max-width: 62%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zsp-row .v.muted {
    color: var(--muted-2-color);
    font-weight: 400;
}

.zsp-row.gift .v {
    color: var(--zsp-gold);
}

.zsp-total {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    padding-top: 11px;
    border-top: 1px dashed var(--main-border-color);
}

.zsp-total .k {
    font-size: 12.5px;
    color: var(--muted-color);
    padding-bottom: 4px;
}

.zsp-total .num {
    font-size: 27px;
    font-weight: 800;
    line-height: 1;
    color: var(--theme-color);
    font-variant-numeric: tabular-nums;
    letter-spacing: -.5px;
}

.zsp-total .num small {
    font-size: 14px;
    font-weight: 700;
    margin-right: 1px;
}

.zsp-gift-note {
    display: flex;
    gap: 8px;
    margin-top: 11px;
    padding: 9px 11px;
    border-radius: 9px;
    border: 1px dashed rgba(240, 160, 32, .5);
    background: rgba(240, 160, 32, .07);
    font-size: 11.5px;
    line-height: 1.6;
    color: var(--zsp-gold);
}

.zsp-gift-note i {
    margin-top: 2px;
    animation: zsp-gift-beat 1.8s ease-in-out infinite;
}

@keyframes zsp-gift-beat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.18);
    }
}

.zsp-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 46px;
    margin-top: 13px;
    border: 0;
    border-radius: 11px;
    background: var(--theme-color);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: box-shadow .25s ease, transform .25s var(--zsp-ease), opacity .2s ease;
    position: relative;
    overflow: hidden;
}

.zsp-submit::after {
    content: '';
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .3), rgba(255, 255, 255, 0));
    transform: skewX(-18deg);
    transition: left .55s var(--zsp-ease);
}

.zsp-submit:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px var(--focus-shadow-color);
}

.zsp-submit:not(:disabled):hover::after {
    left: 110%;
}

.zsp-submit:disabled {
    opacity: .5;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.zsp-tip {
    margin: 9px 0 0;
    font-size: 11px;
    line-height: 1.7;
    color: var(--muted-3-color);
    text-align: center;
}

/* ================= 榜单页 ================= */
.zsp-ranking {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
    gap: 14px;
    align-items: start;
}

.zsp-col {
    min-width: 0;
}

.zsp-col>.zsp-card+.zsp-card {
    margin-top: 14px;
}

.zsp-goals {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.zsp-goal {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 10px 12px;
    align-items: center;
    padding: 12px;
    border-radius: var(--zsp-r-sm);
    background: var(--muted-bg-2-color);
    box-shadow: inset 0 0 0 1px var(--main-border-color);
    transition: box-shadow .28s ease, transform .28s var(--zsp-ease);
}

.zsp-goal:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 0 0 1px var(--theme-color), 0 6px 16px var(--main-shadow);
}

.zsp-goal-img,
.zsp-goal-ph {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
}

.zsp-goal-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--theme-color);
    color: #fff;
    font-size: 18px;
}

.zsp-goal-txt {
    min-width: 0;
}

.zsp-goal-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--main-color);
    line-height: 1.5;
}

.zsp-goal-name>.zsp-goal-nm {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zsp-tag-done {
    flex: 0 0 auto;
    padding: 0 6px;
    border-radius: 4px;
    background: rgba(53, 181, 106, .14);
    color: var(--zsp-green);
    font-size: 10px;
    font-weight: 700;
    line-height: 17px;
}

.zsp-goal-meta {
    display: block;
    margin-top: 3px;
    font-size: 11.5px;
    color: var(--muted-2-color);
    font-variant-numeric: tabular-nums;
}

.zsp-goal-meta b {
    color: var(--theme-color);
    font-size: 13px;
}

.zsp-goal-pct {
    font-size: 18px;
    font-weight: 800;
    color: var(--theme-color);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.zsp-goal.goal-done .zsp-goal-pct,
.zsp-goal.goal-done .zsp-goal-meta b {
    color: var(--zsp-green);
}

.zsp-bar {
    grid-column: 1 / -1;
    height: 6px;
    border-radius: 999px;
    background: var(--muted-bg-color);
    overflow: hidden;
}

.zsp-bar-fill {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: var(--theme-color);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform .9s var(--zsp-ease);
}

.zsp-goal.goal-done .zsp-bar-fill {
    background: var(--zsp-green);
}

/* 排行榜条目 */
.zsp-list .zsp-rank {
    margin-bottom: 8px;
}

.zsp-list .zsp-rank:last-child {
    margin-bottom: 0;
}

.zsp-rank {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border-radius: var(--zsp-r-sm);
    background: var(--muted-bg-2-color);
    transition: background .25s ease, transform .25s var(--zsp-ease);
}

.zsp-rank:hover {
    background: var(--muted-bg-color);
    transform: translateX(2px);
}

.zsp-rank-no {
    flex: 0 0 20px;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
    color: var(--muted-3-color);
    font-variant-numeric: tabular-nums;
}

.zsp-rank.top1 .zsp-rank-no,
.zsp-rank.top2 .zsp-rank-no,
.zsp-rank.top3 .zsp-rank-no {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    line-height: 20px;
    color: #fff;
    font-size: 11px;
}

.zsp-rank.top1 .zsp-rank-no {
    background: linear-gradient(140deg, #f6b73c, #e08b1b);
}

.zsp-rank.top2 .zsp-rank-no {
    background: linear-gradient(140deg, #b9c3d0, #8f9aa9);
}

.zsp-rank.top3 .zsp-rank-no {
    background: linear-gradient(140deg, #d59b6d, #b0713f);
}

.zsp-avatar {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--muted-bg-color);
}

.zsp-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zsp-avatar .zsp-avatar-txt {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--theme-color);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.zsp-rank-info {
    flex: 1;
    min-width: 0;
}

.zsp-rank-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--main-color);
    line-height: 1.45;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zsp-rank-msg {
    display: block;
    font-size: 11.5px;
    color: var(--muted-2-color);
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zsp-rank-amt {
    flex: 0 0 auto;
    font-size: 13.5px;
    font-weight: 800;
    color: var(--theme-color);
    font-variant-numeric: tabular-nums;
}

/* 留言墙 */
.zsp-msgs {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.zsp-msg {
    position: relative;
    padding: 11px 12px;
    border-radius: var(--zsp-r-sm);
    background: var(--muted-bg-2-color);
    transition: background .25s ease;
}

.zsp-msg:hover {
    background: var(--muted-bg-color);
}

.zsp-msg-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
}

.zsp-msg-name {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--main-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zsp-msg-amt {
    margin-left: auto;
    flex: 0 0 auto;
    padding: 0 6px;
    border-radius: 5px;
    background: var(--theme-color);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 17px;
}

.zsp-msg-body {
    position: relative;
    padding-left: 13px;
    font-size: 12.5px;
    line-height: 1.75;
    color: var(--muted-color);
    word-break: break-word;
}

.zsp-msg-body::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 2px;
    border-radius: 2px;
    background: var(--muted-4-color);
}

.zsp-msg-date {
    margin-top: 6px;
    padding-left: 13px;
    font-size: 10.5px;
    color: var(--muted-3-color);
}

/* 空状态 */
.zsp-empty {
    text-align: center;
    padding: 26px 12px 22px;
    color: var(--muted-3-color);
}

.zsp-empty i {
    display: block;
    font-size: 30px;
    margin-bottom: 9px;
    opacity: .55;
}

.zsp-empty p {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.7;
}

.zsp-empty p:first-of-type {
    color: var(--muted-2-color);
    font-size: 13px;
}

/* 分页 */
.zsp-page .ajax-pag,
.zsp-page .ajax-next {
    margin-top: 10px;
}

.zsp-page .ajaxpager .ajax-pag.hide {
    display: none;
}

/* ================= 小工具 ================= */
.zsp-widget .zsp-w-body {
    padding: 0 15px 15px;
}

.zsp-widget .zsp-w-goal {
    margin-bottom: 12px;
}

.zsp-widget .zsp-goal {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    padding: 10px;
}

.zsp-widget .zsp-goal-img,
.zsp-widget .zsp-goal-ph {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    font-size: 16px;
}

.zsp-widget .zsp-goal-name {
    font-size: 12.5px;
}

.zsp-widget .zsp-goal-pct {
    font-size: 15px;
}

.zsp-widget .zsp-tabs {
    margin: 0 0 12px;
    padding: 4px;
    border-radius: 12px;
}

.zsp-widget .zsp-tab-ind {
    top: 4px;
    height: calc(100% - 8px);
    border-radius: 9px;
}

.zsp-widget .zsp-tab {
    min-height: 34px;
    padding: 7px 6px;
    font-size: 12.5px;
    gap: 5px;
    border-radius: 9px;
}

.zsp-widget .zsp-tab i {
    font-size: 12px;
}

.zsp-widget .zsp-card {
    padding: 12px;
    border-radius: 13px;
}

.zsp-widget .zsp-card + .zsp-card {
    margin-top: 10px;
}

.zsp-widget .zsp-card-head {
    margin-bottom: 10px;
    gap: 7px;
}

.zsp-widget .zsp-step {
    flex-basis: 18px;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    font-size: 11px;
    line-height: 18px;
}

.zsp-widget .zsp-card-title {
    font-size: 12.5px;
}

.zsp-widget .zsp-card-hint {
    font-size: 10.5px;
}

.zsp-widget .zsp-amounts {
    grid-template-columns: repeat(auto-fill, minmax(66px, 1fr));
    gap: 7px;
}

.zsp-widget .zsp-amt {
    padding: 10px 4px 9px;
    gap: 2px;
    border-width: 1.5px;
}

.zsp-widget .zsp-amt-icon {
    width: 18px;
    height: 18px;
    font-size: 14px;
}

.zsp-widget .zsp-amt-price {
    font-size: 16px;
}

.zsp-widget .zsp-amt-price small {
    font-size: 10px;
}

.zsp-widget .zsp-amt-name {
    font-size: 10px;
}

.zsp-widget .zsp-amt-tag {
    font-size: 9px;
    padding: 0 4px;
    line-height: 14px;
}

.zsp-widget .zsp-amt-tag i {
    display: none;
}

.zsp-widget .zsp-amt-dot {
    width: 13px;
    height: 13px;
    font-size: 8px;
    line-height: 13px;
    top: 5px;
    right: 5px;
}

.zsp-widget .zsp-pays {
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
    gap: 7px;
}

.zsp-widget .zsp-pay {
    padding: 8px 9px;
    gap: 7px;
}

.zsp-widget .zsp-pay-logo {
    flex-basis: 22px;
    width: 22px;
    height: 22px;
}

.zsp-widget .zsp-pay-logo img {
    padding: 2px;
}

.zsp-widget .zsp-pay-name {
    font-size: 12px;
    gap: 4px;
}

.zsp-widget .zsp-pay-desc {
    display: none;
}

.zsp-widget .zsp-pay-radio {
    flex-basis: 15px;
    width: 15px;
    height: 15px;
}

.zsp-widget .zsp-pay.active .zsp-pay-radio::after {
    inset: 2.5px;
}

.zsp-widget .zsp-submit {
    height: 40px;
    margin-top: 11px;
    font-size: 13.5px;
    border-radius: 10px;
}

.zsp-widget .zsp-tip {
    display: none;
}

.zsp-widget .zsp-rank {
    padding: 8px 9px;
    gap: 8px;
}

.zsp-widget .zsp-avatar {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
}

.zsp-widget .zsp-rank-name {
    font-size: 12px;
}

.zsp-widget .zsp-rank-amt {
    font-size: 12.5px;
}

.zsp-widget .zsp-more {
    display: block;
    margin-top: 9px;
    text-align: center;
    font-size: 12px;
    color: var(--muted-2-color);
}

.zsp-widget .zsp-more:hover {
    color: var(--theme-color);
}

.zsp-widget .zsp-empty {
    padding: 20px 10px 16px;
}

.zsp-widget .zsp-empty i {
    font-size: 24px;
}

/* ================= 响应式 ================= */
@media (max-width: 1180px) {
    .zsp-form {
        grid-template-columns: minmax(0, 1fr) 300px;
    }
}

@media (max-width: 1024px) {
    .zsp-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .zsp-sum {
        position: static;
        top: auto;
    }

    .zsp-ranking {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767px) {
    .zsp-page {
        padding: 12px 10px 20px;
    }

    .zsp-hero {
        padding: 20px 16px;
        border-radius: 14px;
    }

    .zsp-hero-title {
        font-size: 20px;
        margin: 10px 0 7px;
    }

    .zsp-hero-desc {
        font-size: 12.5px;
        line-height: 1.75;
    }

    .zsp-hero-stats {
        margin-top: 14px;
        gap: 7px;
    }

    .zsp-stat {
        flex: 1 1 auto;
        padding: 6px 9px;
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 1px;
    }

    .zsp-stat b {
        font-size: 15px;
    }

    .zsp-stat span {
        font-size: 10.5px;
    }

    .zsp-tabs {
        margin: 12px 0;
        padding: 4px;
    }

    .zsp-tab {
        min-height: 38px;
        font-size: 13px;
        padding: 8px 6px;
    }

    .zsp-card {
        padding: 13px 12px;
        border-radius: 13px;
    }

    .zsp-card + .zsp-card {
        margin-top: 10px;
    }

    .zsp-amounts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .zsp-amt {
        padding: 12px 5px 10px;
    }

    .zsp-amt-price {
        font-size: 18px;
    }

    .zsp-pays {
        grid-template-columns: minmax(0, 1fr);
    }

    .zsp-pay-desc {
        display: none;
    }

    .zsp-pay {
        padding: 10px 12px;
    }

    .zsp-goal {
        grid-template-columns: 38px minmax(0, 1fr) auto;
        padding: 10px;
    }

    .zsp-goal-img,
    .zsp-goal-ph {
        width: 38px;
        height: 38px;
        border-radius: 9px;
    }

    .zsp-goal-pct {
        font-size: 15px;
    }

    .zsp-total .num {
        font-size: 24px;
    }

    .zsp-sum-head,
    .zsp-sum-body {
        padding-left: 13px;
        padding-right: 13px;
    }

    .zsp-quick-pick {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {

    .zsp-page *,
    .zsp-widget * {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}
