/* 分享赚钱 */
:root {
    --invite-blue: #1769f6;
    --invite-blue-deep: #1257d6;
    --invite-ink: #192e49;
    --invite-muted: #647993;
    --invite-line: #e6eef8;
    --invite-bg: #fff;
    --invite-card: #fff;
    --invite-earn: #e4583a;
    --invite-radius: 18px;
    --invite-shadow: 0 10px 30px rgba(23, 80, 160, 0.06);
    --invite-container: 1120px;
}

html.invite-page-root,
body.invite-page,
html.invite-usercenter,
html.invite-usercenter body,
body.invite-embed {
    background: var(--invite-bg);
    color: var(--invite-ink);
    font-family: "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
}

html.invite-usercenter,
html.invite-usercenter body,
body.invite-embed {
    min-height: 100%;
    margin: 0;
}

.invite-shell {
    min-height: 100vh;
    position: relative;
    width: 100%;
    overflow-x: hidden;
}

.invite-shell > .header-wrap {
    position: relative;
    z-index: 1100;
    height: auto;
    min-height: 0;
}

.invite-shell > .header-spacer {
    position: relative;
    z-index: 0;
    margin-bottom: 0;
}

.invite-shell > .invite-main,
.invite-shell > .site-footer,
.invite-shell > .lb-site-footer {
    position: relative;
    z-index: 1;
}

.invite-main {
    max-width: none;
    margin: 0;
    padding: 0 0 28px;
    box-sizing: border-box;
}

.invite-main--embed {
    padding: 0 0 24px;
}

.invite-main *,
.invite-main *::before,
.invite-main *::after {
    box-sizing: border-box;
}

.invite-main button,
.invite-main input {
    font-family: inherit;
}

/* ---------- Promo hero ---------- */
.promo-hero {
    background:
        radial-gradient(ellipse at 78% 42%, rgba(126, 186, 255, 0.55), transparent 48%),
        linear-gradient(180deg, #e8f3ff 0%, #f7fbff 70%, #fff 100%);
}

.promo-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.85fr);
    align-items: center;
    gap: 20px;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 42px 0 78px;
}

.promo-hero__copy h1 {
    margin: 0;
    color: #1b1f2a;
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.4px;
    line-height: 1.35;
}

.promo-hero__copy p {
    max-width: 560px;
    margin: 16px 0 0;
    color: #5c6b80;
    font-size: 15px;
    line-height: 1.8;
}

.promo-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    margin-top: 26px;
    padding: 0 28px;
    border: 0;
    border-radius: 22px;
    background: #2f7bff;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(47, 123, 255, 0.28);
}

.promo-cta:hover {
    color: #fff;
    background: #1f6af0;
    text-decoration: none;
}

.promo-cta--sm {
    height: 42px;
    margin-top: 0;
    padding: 0 18px;
    border-radius: 8px;
    box-shadow: none;
}

.promo-cta--line {
    border: 1px solid #c9daf6;
    background: #fff;
    color: #2f7bff;
    box-shadow: none;
}

.promo-cta--line:hover {
    background: #f5f9ff;
    color: #1f6af0;
}

.promo-hero__art svg {
    display: block;
    width: 100%;
    height: auto;
}

.promo-wrap {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding-bottom: 28px;
}

/* ---------- Steps ---------- */
.promo-steps {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: -46px 0 0;
    padding: 0;
    list-style: none;
}

.promo-steps li,
.promo-join,
.promo-rate,
.promo-notes article,
.promo-panel {
    border: 1px solid #e6eef8;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(32, 86, 160, 0.04);
}

.promo-steps li {
    padding: 22px 22px 20px;
}

.promo-step__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.promo-step__top b {
    color: #c5d2e4;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.promo-step__top i,
.promo-notes i {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 10px;
    background: #eef5ff;
    color: #2f7bff;
    font-size: 20px;
}

.promo-steps strong {
    display: block;
    color: #1d2433;
    font-size: 18px;
}

.promo-steps p,
.promo-join__main p,
.promo-rate li p,
.promo-notes p {
    margin: 8px 0 0;
    color: #7b8798;
    font-size: 13px;
    line-height: 1.7;
}

/* ---------- Link ---------- */
.promo-join {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 28px;
    padding: 22px 24px;
    scroll-margin-top: 92px;
}

.promo-join__main {
    flex: 1;
    min-width: 0;
}

.promo-join h2,
.promo-rate h3,
.promo-notes h3 {
    margin: 0;
    color: #1d2433;
    font-weight: 700;
}

.promo-join h2 {
    font-size: 18px;
}

.invite-link-panel {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.invite-link-field {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 8px;
    min-width: 0;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #e1eaf6;
    border-radius: 8px;
    background: #f7faff;
}

.invite-link-field:focus-within {
    border-color: #9ec2fb;
    background: #fff;
}

.invite-link-field > .bi {
    color: #2f7bff;
    font-size: 16px;
}

.invite-main .copyurl {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: #24384f;
    font-size: 13px;
    line-height: 40px;
}

.promo-join__actions {
    display: flex;
    flex: none;
    gap: 10px;
}

.invite-meters {
    display: flex;
    flex: none;
    margin: 0;
    padding: 0;
    list-style: none;
}

.invite-meters li {
    min-width: 108px;
    margin-left: 18px;
    padding-left: 18px;
    border-left: 1px solid #e8eef6;
}

.invite-meters li:first-child {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
}

.invite-meters span {
    display: block;
    color: #8b98aa;
    font-size: 12px;
}

.invite-meters strong {
    display: block;
    margin-top: 4px;
    color: #1d2433;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
}

.invite-meters small {
    margin-left: 2px;
    color: #8b98aa;
    font-size: 12px;
    font-weight: 600;
}

.invite-meters .is-earn strong {
    color: #e4583a;
}

button.invite-detail-link,
.invite-detail-link {
    margin-left: 6px;
    padding: 0;
    border: 0;
    background: none;
    color: #2f7bff;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.invite-detail-link:hover {
    text-decoration: underline;
}

/* ---------- Rates ---------- */
.promo-title {
    margin: 56px 0 22px;
    color: #1a1a1a;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
}

.promo-rates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.promo-rate {
    padding: 26px 26px 18px;
}

.promo-rate header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.promo-rate h3 {
    color: #2f7bff;
    font-size: 22px;
}

.promo-badge {
    flex: none;
    padding: 4px 10px;
    border-radius: 20px;
    background: #fff1f0;
    color: #f06a6a;
    font-size: 13px;
}

.promo-tags,
.promo-split-rate span {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 10px;
    border-radius: 4px;
    background: #f3f7ff;
    color: #3d7dff;
    font-size: 13px;
}

.promo-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eef3f8;
}

.promo-split-rate {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eef3f8;
}

.promo-split-rate > div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.promo-split-rate b {
    min-width: 42px;
    color: #2f7bff;
    font-size: 18px;
}

.promo-rate ol {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.promo-rate li b {
    display: block;
    color: #c5d2e4;
    font-size: 16px;
}

.promo-rate li strong {
    display: block;
    margin-top: 8px;
    color: #1d2433;
    font-size: 14px;
}

/* ---------- Notes ---------- */
.promo-notes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.promo-notes article {
    padding: 22px 20px 18px;
}

.promo-notes h3 {
    margin-top: 14px;
    font-size: 16px;
}

.promo-panel {
    padding: 8px 22px 16px;
}

.invite-records .promo-title,
.promo-panel + .promo-title {
    margin-top: 40px;
}

/* ---------- Records ---------- */
.invite-table .thead,
.invite-table .lines {
    display: flex;
    align-items: center;
}

.invite-table .thead {
    padding: 12px 0;
    border-bottom: 1px solid #e6edf6;
    color: #8b9cb2;
    font-size: 12px;
    font-weight: 700;
}

.invite-table .lines {
    padding: 14px 0;
    border-bottom: 1px solid #f2f5fa;
    color: #314863;
    font-size: 14px;
}

.invite-table .thead > div,
.invite-table .lines > div {
    flex: 1;
    text-align: center;
}

.invite-table .thead > div:first-child,
.invite-table .lines > div:first-child {
    flex: 1.4;
    text-align: left;
}

.invite-table .thead > div:last-child,
.invite-table .lines > div:last-child {
    text-align: right;
}

.invite-table .lines .amount {
    color: #e4583a;
    font-weight: 800;
}

.invite-table .page {
    padding: 14px 0 4px;
    text-align: center;
}

.invite-page .el-pagination,
.invite-embed .el-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #7b8da3;
    font-size: 13px;
}

.invite-page .el-pagination .btn-prev,
.invite-page .el-pagination .btn-next,
.invite-embed .el-pagination .btn-prev,
.invite-embed .el-pagination .btn-next,
.invite-page .el-pager li,
.invite-embed .el-pager li {
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border: 1px solid #d5e0ee;
    border-radius: 8px;
    background: #fff;
    color: #5d7290;
    line-height: 32px;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
}

.invite-page .el-pager,
.invite-embed .el-pager {
    display: inline-flex;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.invite-page .el-pager li.active,
.invite-embed .el-pager li.active {
    border-color: #2f7bff;
    background: #2f7bff;
    color: #fff;
}

.invite-page .el-pager li.number:hover,
.invite-embed .el-pager li.number:hover {
    border-color: #9ec2fb;
    color: #2f7bff;
}

.invite-page .el-pagination .btn-prev.disabled,
.invite-page .el-pagination .btn-next.disabled,
.invite-embed .el-pagination .btn-prev.disabled,
.invite-embed .el-pagination .btn-next.disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ---------- Detail modal ---------- */
.invite-detail-modal { padding: 0; }

.invite-detail-modal .detail-table-wrap {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.invite-detail-modal .detail-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 13px;
}

.invite-detail-modal .detail-table .col-index {
    width: 60px;
    min-width: 60px;
    color: #999;
    white-space: nowrap;
}

.invite-detail-modal .detail-table tbody tr:nth-child(odd) { background: #fff; }
.invite-detail-modal .detail-table tbody tr:nth-child(even) { background: #f8fafb; }
.invite-detail-modal .detail-table tbody tr:hover { background: #f3f8ff; }
.invite-detail-modal .detail-table .status-valid { color: #128a52; font-weight: 600; }
.invite-detail-modal .detail-table .status-invalid { color: #999; }
.invite-detail-modal .detail-table .status-expired { color: #d48806; }

.invite-detail-modal .detail-table th,
.invite-detail-modal .detail-table td {
    padding: 10px 12px;
    text-align: center;
    border-bottom: 1px solid #f0f2f5;
    color: #5d7290;
    word-break: break-all;
}

.invite-detail-modal .detail-table th {
    background: #f7faff;
    color: var(--invite-ink);
    font-weight: 650;
}

.invite-detail-modal .detail-table .amount {
    color: var(--invite-earn);
    font-weight: 700;
}

.invite-detail-modal .detail-empty {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    color: #999;
    font-size: 14px;
    text-align: center;
}

.invite-detail-modal .detail-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 16px 16px;
    color: #888;
    font-size: 13px;
}

.invite-detail-modal .detail-pager button {
    min-width: 72px;
    height: 32px;
    border: 1px solid #dce3ed;
    border-radius: 8px;
    background: #fff;
    color: #555;
    cursor: pointer;
}

.invite-detail-modal .detail-pager button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.invite-detail-modal .detail-mobile-list { display: none; }

.invite-detail-modal .detail-mitem {
    padding: 11px 0;
    border-bottom: 1px solid #f0f2f5;
}

.invite-detail-modal .detail-mitem:last-child { border-bottom: none; }

.invite-detail-modal .detail-mitem__index {
    display: inline-block;
    min-width: 1.6em;
    margin-right: 4px;
    color: #b0bac4;
    font-size: 13px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.invite-detail-modal .detail-mitem__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.invite-detail-modal .detail-mitem__user {
    min-width: 0;
    overflow: hidden;
    color: #333;
    font-size: 15px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.invite-detail-modal .detail-mitem__amount {
    flex-shrink: 0;
    color: var(--invite-earn);
    font-size: 16px;
    font-weight: 700;
}

.invite-detail-modal .detail-mitem__badge {
    flex-shrink: 0;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.invite-detail-modal .detail-mitem__badge--ok { color: #128a52; background: rgba(18, 138, 82, 0.1); }
.invite-detail-modal .detail-mitem__badge--no { color: #999; background: #f5f5f5; }
.invite-detail-modal .detail-mitem__badge--exp { color: #d48806; background: rgba(212, 136, 6, 0.12); }

.invite-detail-modal .detail-mitem__sub {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 4px;
    padding-left: calc(1.6em + 4px);
    color: #999;
    font-size: 12px;
}

.invite-detail-modal .detail-mitem__pkg {
    min-width: 0;
    overflow: hidden;
    color: var(--invite-blue);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.invite-detail-modal .detail-mitem__time {
    flex-shrink: 0;
    color: #aaa;
}

.invite-detail-layer.layui-layer {
    display: flex !important;
    flex-direction: column !important;
    border: none !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 18px 50px rgba(16, 40, 75, 0.18) !important;
}

.invite-detail-layer .layui-layer-title {
    height: auto !important;
    min-height: 52px !important;
    padding: 14px 56px 14px 18px !important;
    border: none !important;
    background: linear-gradient(180deg, #4b90ff, #1769f6) !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 650 !important;
    line-height: 1.45 !important;
    white-space: normal !important;
}

.invite-detail-layer .layui-layer-setwin {
    top: 6px !important;
    right: 6px !important;
    width: 44px !important;
    height: 44px !important;
}

.invite-detail-layer .layui-layer-setwin a {
    position: relative !important;
    display: block !important;
    width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    overflow: visible !important;
    background: none !important;
    text-indent: 0 !important;
}

.invite-detail-layer .layui-layer-setwin a::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
}

.invite-detail-layer .layui-layer-setwin .layui-layer-close1,
.invite-detail-layer .layui-layer-setwin .layui-layer-close2 {
    position: absolute !important;
    inset: 0 !important;
    width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    background: none !important;
    font-size: 0 !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
}

.invite-detail-layer .layui-layer-setwin .layui-layer-close1::after,
.invite-detail-layer .layui-layer-setwin .layui-layer-close2::after {
    content: "\00D7";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    pointer-events: none;
}

.invite-detail-layer .layui-layer-content {
    display: flex !important;
    flex: 1 !important;
    flex-direction: column !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #f8fbff !important;
}

.invite-detail-layer .invite-detail-modal {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    height: 100%;
}

.invite-detail-layer .invite-detail-modal .detail-desktop,
.invite-detail-layer .invite-detail-modal .detail-table-wrap,
.invite-detail-layer .invite-detail-modal .detail-mobile-list {
    flex: 1;
    min-height: 0;
}

.invite-detail-layer .invite-detail-modal .detail-desktop {
    display: flex;
    flex-direction: column;
}

.invite-detail-layer .invite-detail-modal .detail-table-wrap,
.invite-detail-layer .invite-detail-modal .detail-mobile-list {
    max-height: none;
    overflow: auto;
}

.invite-detail-layer .invite-detail-modal .detail-pager {
    z-index: 2;
    flex-shrink: 0;
    gap: 16px;
    padding: 14px 18px calc(14px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--invite-line);
    background: #fff;
    box-shadow: 0 -4px 16px rgba(16, 40, 75, 0.06);
}

.invite-detail-layer .invite-detail-modal .detail-pager button:not(:disabled) {
    min-width: 92px;
    height: 38px;
    border: 0;
    border-radius: 19px;
    background: linear-gradient(180deg, #4b90ff, #1769f6);
    color: #fff;
    font-size: 14px;
    box-shadow: 0 3px 10px rgba(23, 105, 246, 0.28);
}

.invite-detail-layer .invite-detail-modal .detail-pager button:disabled {
    min-width: 92px;
    height: 38px;
    border: 0;
    border-radius: 19px;
    background: #e8eef3;
    color: #aab4be;
    opacity: 1;
    box-shadow: none;
}

.invite-detail-layer .invite-detail-modal .detail-pager > span {
    color: var(--invite-blue);
    font-size: 14px;
    font-weight: 700;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .invite-shell > .header-wrap {
        min-height: 0 !important;
        height: 0 !important;
    }

    .invite-shell > .header-spacer {
        height: 64px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .invite-main {
        padding-top: 0;
    }
}

@media (max-width: 980px) {
    .promo-hero__inner,
    .promo-rates,
    .promo-rate ol {
        grid-template-columns: 1fr;
    }

    .promo-hero__art {
        max-width: 420px;
    }

    .promo-join,
    .invite-meters,
    .promo-join__actions,
    .invite-link-panel {
        align-items: stretch;
    }

    .promo-join {
        flex-direction: column;
    }
}

@media (max-width: 720px) {
    .invite-shell > .header-spacer {
        height: calc(56px + env(safe-area-inset-top, 0px)) !important;
    }

    .promo-hero__inner,
    .promo-wrap {
        width: min(1180px, calc(100% - 24px));
    }

    .promo-hero__copy h1,
    .promo-title {
        font-size: 24px;
    }

    .promo-hero__art {
        display: none;
    }

    .promo-steps,
    .promo-notes {
        grid-template-columns: 1fr;
    }

    .promo-steps {
        margin-top: -28px;
    }

    .promo-join__actions,
    .invite-link-panel {
        flex-direction: column;
        width: 100%;
    }

    .promo-join__actions .promo-cta,
    .invite-link-panel .promo-cta {
        width: 100%;
    }

    .invite-meters {
        flex-direction: column;
        width: 100%;
    }

    .invite-meters li,
    .invite-meters li:first-child {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 0;
        padding: 12px 0;
        border-left: 0;
        border-top: 1px solid #eef2f7;
    }

    .invite-meters strong {
        margin-top: 0;
    }

    .invite-detail-modal .detail-desktop { display: none !important; }
    .invite-detail-modal .detail-mobile-list {
        display: block;
        flex: 1;
        min-height: 0;
        max-height: none;
        padding: 8px 16px 12px;
        overflow-y: auto;
    }

    .invite-detail-layer.layui-layer {
        left: 12px !important;
        right: 12px !important;
        width: calc(100% - 24px) !important;
        max-width: calc(100% - 24px) !important;
        margin-left: 0 !important;
        border-radius: 16px !important;
    }
}
