/* 首页落地页。服务中心仍用 index.css。 */

html {
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body.ld-page {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(180deg, #1f78ff 0%, #3d8cff 18%, #79b0ff 38%, #e7f1ff 62%, #f7f9fc 100%);
    color: #1c1c1c;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

body.ld-wait-open,
body.ld-exit-open {
    overflow: hidden;
}

.ld-wrap {
    position: relative;
    width: 375px;
    max-width: 100%;
    margin: 0 auto;
    padding: 14px 0 28px;
}

.ld-logos {
    display: block;
    width: 232px;
    height: auto;
    margin: 2px auto 0;
}

.ld-kefu {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 52px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    color: #2f7bff;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(20, 70, 160, 0.16);
}

.ld-kefu svg {
    width: 22px;
    height: 22px;
    fill: #2f7bff;
}

.ld-kefu span {
    margin-top: 1px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.ld-kicker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 16px 0 0;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
}

.ld-kicker i {
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.9);
}

.ld-title {
    margin: 8px 16px 0;
    color: #fff;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    letter-spacing: 0;
}

.ld-title em {
    font-style: normal;
    color: #ffe14a;
}

.ld-count {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 10px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.ld-count b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 26px;
    padding: 0 4px;
    border-radius: 4px;
    background: #1b1b1b;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.ld-count span {
    color: #fff;
    font-weight: 700;
}

.ld-ticker {
    display: flex;
    align-items: center;
    width: calc(100% - 24px);
    height: 36px;
    margin: 12px auto 0;
    padding: 0 12px 0 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    color: #333;
    font-size: 13px;
}

.ld-ticker__horn {
    width: 22px;
    height: 22px;
    margin-right: 6px;
    border-radius: 50%;
    background: #2f7bff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M4 9v6h4l5 4V5L8 9H4zm11.5 3a3.5 3.5 0 0 0-1.8-3.06v6.12A3.5 3.5 0 0 0 15.5 12z'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
    flex: none;
}

.ld-ticker__ok {
    margin-left: 6px;
    color: #666;
}

.ld-ticker__time {
    margin-left: auto;
    color: #8d8d8d;
    font-size: 12px;
}

.ld-card {
    width: calc(100% - 24px);
    margin: 12px auto 0;
    padding: 16px 14px 14px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(31, 90, 190, 0.12);
}

.ld-card__title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 0 14px;
    color: #2f7bff;
    font-size: 18px;
    font-weight: 800;
}

.ld-card__title i {
    width: 36px;
    height: 2px;
    border-radius: 2px;
    background: #2f7bff;
}

.ld-tiers {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.ld-tier {
    position: relative;
    flex: 1 1 0;
    min-height: 92px;
    margin: 0;
    padding: 18px 4px 10px;
    border: 0;
    border-radius: 12px;
    background: #f3f4f6;
    color: #222;
    font: inherit;
    text-align: center;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.ld-tier--on {
    background: linear-gradient(180deg, #3b8bff 0%, #1d63f0 100%);
    color: #fff;
    box-shadow: 0 6px 14px rgba(29, 99, 240, 0.28);
}

.ld-tier__amt {
    margin: 0;
    font-weight: 800;
    line-height: 1.1;
}

.ld-tier__num {
    font-size: 22px;
    font-weight: 800;
}

.ld-tier__amt span {
    margin-left: 1px;
    font-size: 13px;
    font-weight: 700;
}

.ld-tier__market,
.ld-tier__pill {
    margin: 8px 0 0;
    font-size: 11px;
    line-height: 1.2;
}

.ld-tier__market {
    color: #9aa0a8;
}

.ld-tier--on .ld-tier__market {
    display: none;
}

.ld-tier__pill {
    display: none;
}

.ld-tier--on .ld-tier__pill {
    display: inline-block;
    margin-top: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.ld-tier--on.ld-tier--nosave .ld-tier__pill {
    display: none;
}

.ld-tier--on.ld-tier--nosave .ld-tier__market {
    display: block;
    color: rgba(255, 255, 255, 0.8);
}

.ld-tier__badge {
    display: none;
    position: absolute;
    left: 50%;
    top: -9px;
    z-index: 2;
    max-width: 78px;
    padding: 0 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #ff3b30;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    white-space: nowrap;
    text-overflow: ellipsis;
    transform: translateX(-50%);
}

.ld-tier--on .ld-tier__badge {
    display: block;
}

button.ld-tier--sold,
button.ld-tier--sold:disabled,
.ld-tier--sold {
    background: #ececec;
    color: #b5b5b5;
    cursor: not-allowed;
    opacity: 1;
    -webkit-text-fill-color: #b5b5b5;
}

.ld-tier__sold {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 2px solid #e23d3d;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #e23d3d;
    -webkit-text-fill-color: #e23d3d;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 1px;
    pointer-events: none;
    transform: translate(-50%, -50%) rotate(-18deg);
}

.ld-notice {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    margin: 14px 0 0;
    color: #ff8a00;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    text-align: left;
}

.ld-notice i {
    width: 8px;
    height: 8px;
    margin-top: 5px;
    border-radius: 50%;
    background: #ff8a00;
    flex: none;
}

.ld-phone {
    display: block;
    width: 100%;
    height: 46px;
    margin-top: 14px;
    padding: 0 16px;
    border: 0;
    border-radius: 23px;
    background: #f2f3f5;
    color: #222;
    font: inherit;
    font-size: 16px;
    text-align: center;
}

.ld-phone::placeholder {
    color: #b0b4bb;
}

.ld-phone.is-invalid {
    box-shadow: inset 0 0 0 1px #ff4d4f;
}

.ld-phone-msg {
    margin: 6px 0 0;
    color: #ff4d4f;
    font-size: 12px;
    text-align: center;
}

.ld-phone-msg[hidden] {
    display: none;
}

.ld-pay-label {
    margin: 16px 0 8px;
    color: #222;
    font-size: 16px;
    font-weight: 800;
}

.ld-paymethod {
    display: flex;
    align-items: center;
    min-height: 28px;
}

.ld-paymethod__radio {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    border: 5px solid #2f7bff;
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 0 0 2px #fff;
    flex: none;
}

.ld-paymethod__icon {
    width: 22px;
    height: 22px;
    margin-right: 6px;
}

.ld-paymethod__name {
    color: #333;
    font-size: 15px;
    font-weight: 600;
}

.ld-sum {
    margin: 8px 0 0;
    color: #333;
    font-size: 15px;
    line-height: 1.4;
}

.ld-sum b {
    color: #ff4d4f;
    font-weight: 700;
}

.ld-go {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    margin-top: 22px;
    border: 0;
    border-radius: 25px;
    background: linear-gradient(180deg, #4b95ff 0%, #1f66f2 100%);
    box-shadow: 0 8px 16px rgba(31, 102, 242, 0.28);
    color: #fff;
    font: inherit;
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
}

.ld-go:disabled {
    opacity: 0.75;
}

.ld-go__main b {
    font-weight: 800;
}

.ld-go__save {
    position: absolute;
    right: 8px;
    top: -12px;
    padding: 2px 8px;
    border-radius: 8px 8px 8px 2px;
    background: #ff3b30;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
    transform: rotate(6deg);
}

.ld-go__save[hidden] {
    display: none;
}

.ld-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.ld-action {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 44px;
    border: 1.5px solid #2f7bff;
    border-radius: 22px;
    color: #2f7bff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    background: #fff;
}

.ld-agree {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    color: #666;
    font-size: 12px;
}

.ld-agree input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.ld-agree__box {
    position: relative;
    width: 16px;
    height: 16px;
    border: 1px solid #2f7bff;
    border-radius: 3px;
    background: #fff;
    flex: none;
}

.ld-agree input:checked + .ld-agree__box {
    background: #2f7bff;
}

.ld-agree input:checked + .ld-agree__box::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(40deg);
}

.ld-agree a {
    color: #2f7bff;
    text-decoration: none;
}

.ld-foot {
    margin: 16px 16px 0;
    color: #8b93a0;
    font-size: 12px;
    line-height: 1.7;
    text-align: center;
}

.ld-foot p {
    margin: 0;
}

.ld-foot a {
    color: inherit;
    text-decoration: none;
}

.ld-exit {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px 18px 48px;
    background: rgba(0, 0, 0, 0.55);
}

.ld-exit.is-open {
    display: flex;
}

.ld-exit.is-open.is-armed {
    visibility: hidden;
    pointer-events: none;
}

.ld-exit__panel {
    position: relative;
    width: min(100%, 320px);
    padding: 22px 16px 42px;
    border-radius: 18px;
    background: #fff;
    text-align: center;
    animation: ld-exit-in 0.2s ease;
}

.ld-exit__title {
    margin: 0;
    color: #111;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.35;
}

.ld-exit__box {
    margin-top: 16px;
    overflow: hidden;
    border: 2px solid #7eb6ff;
    border-radius: 14px;
    background: #fff;
}

.ld-exit__phone {
    margin: 0;
    padding: 16px 10px 14px;
    color: #666;
    font-size: 15px;
    line-height: 1.4;
}

.ld-exit__phone b {
    color: #111;
    font-size: 18px;
    font-weight: 800;
}

.ld-exit__phone b.is-empty {
    color: #b0b4bb;
    font-size: 16px;
    font-weight: 600;
}

.ld-exit__timer {
    margin: 0;
    padding: 12px 8px 14px;
    border-top: 1px solid #e6eef8;
    background: #f7fbff;
    color: #2f7bff;
    font-size: 14px;
    font-weight: 700;
}

.ld-exit__timer b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 26px;
    margin: 0 3px;
    padding: 0 4px;
    border-radius: 6px;
    background: #2f7bff;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.ld-exit__actions {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: -22px;
    display: flex;
    gap: 12px;
}

.ld-exit__paid,
.ld-exit__go {
    flex: 1;
    height: 44px;
    border-radius: 22px;
    font: inherit;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

.ld-exit__paid {
    border: 2px solid #2f7bff;
    background: #fff;
    color: #2f7bff;
}

.ld-exit__go {
    border: 0;
    background: linear-gradient(180deg, #4b95ff 0%, #1f66f2 100%);
    box-shadow: 0 6px 14px rgba(31, 102, 242, 0.28);
    color: #fff;
}

@keyframes ld-exit-in {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.ld-toast {
    position: fixed;
    left: 50%;
    top: 42%;
    z-index: 10001;
    max-width: 78%;
    padding: 12px 18px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.ld-toast[hidden] {
    display: none;
}

.ld-wait {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.72);
}

.ld-wait[hidden] {
    display: none;
}

.ld-wait__panel {
    width: min(100%, 280px);
    padding: 28px 20px 22px;
    border-radius: 16px;
    background: rgba(17, 24, 39, 0.94);
    text-align: center;
    color: #fff;
}

.ld-wait__spin {
    width: 46px;
    height: 46px;
    margin: 0 auto;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-top-color: #fff;
    animation: ld-spin 0.8s linear infinite;
}

.ld-wait__title {
    margin: 16px 0 0;
    font-size: 18px;
    font-weight: 700;
}

.ld-wait__sub,
.ld-wait__hint {
    margin: 8px 0 0;
    font-size: 14px;
}

.ld-wait__hint {
    font-size: 12px;
    opacity: 0.35;
}

@keyframes ld-spin {
    to { transform: rotate(360deg); }
}
