.spray-contact-modal[hidden] {
    display: none;
}

.spray-contact-modal,
.spray-contact-modal *,
.spray-contact-modal *::before,
.spray-contact-modal *::after {
    box-sizing: border-box;
}

.spray-contact-modal {
    position: fixed;
    z-index: 9999;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", sans-serif;
    font-weight: 400;
    overscroll-behavior: contain;
}


.spray-contact-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .56);
    backdrop-filter: blur(2px);
    touch-action: none;
}


.spray-contact-panel {
    position: relative;
    z-index: 1;
    width: min(920px, calc(100vw - 56px));
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 0;
    background: #fffaf6;
    box-shadow: 0 10px 24px rgba(100, 45, 20, .10);
    border-radius: 0;
}

.spray-contact-panel-head {
    position: relative;
    z-index: 3;
    flex: 0 0 auto;
    min-height: 124px;
    padding: 28px 58px 28px 24px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #ff5d3a 0%, #ff7c36 54%, #ffad43 100%);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.spray-contact-panel-head::before,
.spray-contact-panel-head::after {
    content: '';
    position: absolute;
    border: 2px solid rgba(255,255,255,.2);
    transform: rotate(45deg);
}

.spray-contact-panel-head::before {
    width: 72px;
    height: 72px;
    right: 42px;
    top: -42px;
}

.spray-contact-panel-head::after {
    width: 38px;
    height: 38px;
    right: 92px;
    bottom: -24px;
}

.spray-contact-panel-head.has-custom-bg::before,
.spray-contact-panel-head.has-custom-bg::after {
    display: none;
}

.spray-contact-panel-head.has-custom-bg .spray-contact-panel-heading {
    text-shadow: 0 2px 8px rgba(0, 0, 0, .28);
}

.spray-contact-panel-heading {
    position: relative;
    z-index: 1;
}


.spray-contact-panel-head h2 {
    margin: 0;
    color: #ffffff;
    font-size: 32px;
    line-height: 1.12;
    letter-spacing: 1px;
    font-weight: 500;
}

.spray-contact-panel-head p {
    margin: 8px 0 0;
    color: rgba(255,255,255,.94);
    font-size: 16px;
    line-height: 1.45;
    font-weight: 400;
}


.spray-contact-close {
    border-radius: 0;
    position: absolute;
    z-index: 2;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d32f2f;
    background: #e53935;
    color: #ffffff;
    cursor: pointer;
    transition: background-color .15s ease, transform .08s ease;
}

.spray-contact-close:hover {
    background: #c62828;
}

.spray-contact-close svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}


.spray-contact-panel-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 18px;
    background: #fbfbfb;
    scrollbar-width: thin;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}


.spray-contact-qrcode-card {
    position: relative;
    margin: 0 0 12px;
    padding: 16px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #fff0db 0%, #fff8ef 100%);
    box-shadow: 0 2px 10px rgba(173, 91, 35, .20);
}

.spray-contact-recommend {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #07c160;
    background: rgba(255, 255, 255, .82);
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    backdrop-filter: blur(4px);
}

.spray-contact-qrcode {
    padding: 8px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(98, 55, 29, .10);
}

.spray-contact-qrcode img {
    display: block;
    width: 118px;
    height: auto;
    max-width: 36vw;
    background: #ffffff;
}

.spray-contact-qrcode-copy {
    min-width: 0;
    padding: 10px 8px 0 0;
}

.spray-contact-qrcode-copy strong,
.spray-contact-qrcode-copy span {
    display: block;
}

.spray-contact-qrcode-copy strong {
    color: #111111;
    font-size: 23px;
    line-height: 1.3;
    font-weight: 600;
}

.spray-contact-qrcode-copy span {
    margin-top: 4px;
    color: #111111;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 400;
}

.spray-contact-list {
    display: grid;
    gap: 12px;
}

.spray-contact-card {
    min-height: 68px;
    padding: 12px 16px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    grid-template-areas: "icon main action";
    align-items: center;
    gap: 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transition: none;
}

.spray-contact-card:hover {
    box-shadow: none;
}

.spray-contact-card-icon {
    grid-area: icon;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 12px;
}

.spray-contact-card-icon svg {
    width: 25px;
    height: 25px;
    fill: currentColor;
}

.spray-contact-card-wechat .spray-contact-card-icon { background: #22b866; }
.spray-contact-card-phone .spray-contact-card-icon { background: #318be8; }
.spray-contact-card-qq .spray-contact-card-icon { background: #4d7fe6; }
.spray-contact-card-email .spray-contact-card-icon { background: #7b68d8; }

.spray-contact-card-main {
    grid-area: main;
    min-width: 0;
}

.spray-contact-card-main strong,
.spray-contact-card-value {
    display: block;
}

.spray-contact-card-main strong {
    color: #111111;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 500;
}

.spray-contact-card-value {
    margin-top: 4px;
    color: #111111;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 400;
    overflow-wrap: anywhere;
}

.spray-contact-card-actions {
    grid-area: action;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.spray-contact-action {
    min-width: 92px;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid rgb(231 231 231);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255,255,255,.44) 0%, rgba(255,255,255,.28) 100%);
    color: #111111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    backdrop-filter: blur(16px) saturate(155%);
    -webkit-backdrop-filter: blur(16px) saturate(155%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.74), 0 2px 8px rgba(77, 54, 40, .04);
    transition: background-color .15s ease, box-shadow .15s ease, border-color .15s ease, color .15s ease;
}

.spray-contact-action:hover {
    background: linear-gradient(180deg, rgba(255,255,255,.52) 0%, rgba(255,255,255,.34) 100%);
    border-color: rgb(231 231 231);
    color: #171412;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.82), 0 3px 10px rgba(77, 54, 40, .05);
}

.spray-contact-action:active {
    background: linear-gradient(180deg, rgba(255,255,255,.38) 0%, rgba(255,255,255,.24) 100%);
}

.spray-contact-action svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.spray-contact-open-app[hidden] {
    display: none;
}

.spray-contact-open-app {
    min-height: 40px;
    padding: 0 13px 0 15px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: none;
}

.spray-contact-open-wechat,
.spray-contact-open-wechat:hover,
.spray-contact-open-wechat:focus,
.spray-contact-open-wechat:active {
    background: #07c160;
    color: #ffffff;
}

.spray-contact-open-qq,
.spray-contact-open-qq:hover,
.spray-contact-open-qq:focus,
.spray-contact-open-qq:active {
    background: #4d7fe6;
    color: #ffffff;
}

.spray-contact-open-app svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
    flex: 0 0 auto;
}

.spray-contact-open-arrow {
    animation: spray-contact-open-arrow 1.05s ease-in-out infinite;
    transform-origin: center;
}

@keyframes spray-contact-open-arrow {
    0%, 100% { transform: translateX(0); opacity: .72; }
    50% { transform: translateX(4px); opacity: 1; }
}

.spray-contact-entry {
    min-width: 0;
    overflow: hidden;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(74, 47, 34, .09);
    transition: box-shadow .15s ease, background-color .15s ease;
}

.spray-contact-entry:hover {
    box-shadow: 0 10px 26px rgba(74, 47, 34, .12);
}

.spray-contact-followup {
    display: none;
    margin: 0 16px;
    padding: 7px 0 9px;
    border-top: 1px solid rgb(238 238 238);
    background: transparent;
}

.spray-contact-followup.is-visible {
    display: block;
}

.spray-contact-followup-main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 7px;
}

.spray-contact-followup-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    min-width: 20px;
    font-size: 17px;
    line-height: 1;
}

.spray-contact-followup-copytext {
    color: #111111;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}

.spray-contact-followup-wechat .spray-contact-followup-copytext {
    color: #23834d;
}

.spray-contact-followup-qq .spray-contact-followup-copytext {
    color: #3769ad;
}


.spray-contact-followup-guide {
    margin-top: 7px;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    color: #111111;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 400;
}

.spray-contact-columns,
.spray-contact-column {
    display: flex;
    flex-direction: column;
}

.spray-contact-columns {
    gap: 8px;
}

.spray-contact-column {
    gap: 9px;
}

.spray-contact-toast {
    position: absolute;
    left: 50%;
    bottom: 14px;
    z-index: 5;
    max-width: calc(100% - 40px);
    padding: 10px 15px;
    border-radius: 10px;
    transform: translate(-50%, 8px);
    opacity: 0;
    pointer-events: none;
    background: rgba(17, 17, 17, .94);
    color: #ffffff;
    font-size: 13px;
    line-height: 1.35;
    box-shadow: 0 8px 24px rgba(45, 28, 22, .20);
    transition: opacity .16s ease, transform .16s ease;
}

.spray-contact-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (max-width: 860px) {
    .spray-contact-panel-head.has-custom-bg {
        flex: 0 0 clamp(180px, 27vh, 260px);
        min-height: 0;
    }
}

@media (min-width: 861px) {
    .spray-contact-modal {
        padding: 0 28px;
    }

    .spray-contact-panel {
        width: min(960px, calc(100vw - 64px));
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
    }

    .spray-contact-panel-head {
        flex: 0 0 clamp(260px, 38vh, 380px);
        min-height: 0;
        box-sizing: border-box;
        padding: 42px 86px 42px 44px;
    }

    .spray-contact-panel-head h2 {
        font-size: 44px;
    }

    .spray-contact-panel-head p {
        margin-top: 12px;
        font-size: 20px;
    }

    .spray-contact-close {
        top: 18px;
        right: 18px;
        width: 42px;
        height: 42px;
    }

    .spray-contact-close svg {
        width: 18px;
        height: 18px;
    }

    .spray-contact-panel-body {
        padding: 20px 22px 22px;
    }

    .spray-contact-qrcode-card {
        padding: 18px 20px;
        gap: 20px;
    }

    .spray-contact-qrcode img {
        width: 126px;
        max-width: none;
    }

    .spray-contact-qrcode-copy strong {
        font-size: 30px;
    }

    .spray-contact-qrcode-copy span {
        font-size: 17px;
    }

    .spray-contact-columns {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        align-items: start;
    }

    .spray-contact-column {
        gap: 12px;
    }

    .spray-contact-entry {
        width: 100%;
    }

    .spray-contact-card {
        min-height: 78px;
        padding: 14px 18px;
        gap: 14px;
    }
}

@media (max-width: 560px) {
    .top-nav-inner {
        justify-content: flex-start;
    }

    .top-nav-inner .nav-link-home {
        order: 0;
    }

    .top-nav-inner .nav-link-category {
        order: 1;
    }

    .top-nav-inner .nav-link-home .nav-label {
        display: block;
        max-width: 7em;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .spray-contact-modal {
        padding: 0;
        align-items: stretch;
        justify-content: stretch;
    }

    .spray-contact-panel {
        width: 100%;
        height: 100vh;
        height: 100dvh;
        max-height: none;
        border: 0;
        box-shadow: none;
    }

    .spray-contact-panel-head {
        min-height: 112px;
        padding: calc(22px + env(safe-area-inset-top)) 48px 22px 16px;
    }


    .spray-contact-panel-head h2 {
        font-size: 27px;
    }

    .spray-contact-panel-head p {
        margin-top: 6px;
        font-size: 15px;
        line-height: 1.4;
    }


    .spray-contact-close {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
    }

    .spray-contact-panel-body {
        padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
        background: #fbfbfb;
    }

    .spray-contact-qrcode-card {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 12px;
        margin-bottom: 9px;
        padding: 11px;
        border-radius: 14px;
    }

    .spray-contact-recommend {
        top: 9px;
        right: 9px;
        padding: 5px 8px;
        font-size: 10px;
    }

    .spray-contact-qrcode {
        padding: 5px;
        border-radius: 10px;
    }

    .spray-contact-qrcode img {
        width: 78px;
        max-width: none;
    }

    .spray-contact-qrcode-copy {
        padding: 6px 0 0;
    }

    .spray-contact-qrcode-copy strong {
        font-size: 18px;
    }

    .spray-contact-qrcode-copy span {
        margin-top: 4px;
        font-size: 13px;
        line-height: 1.4;
    }

    .spray-contact-list {
        gap: 9px;
    }

    .spray-contact-card {
        grid-template-columns: 41px minmax(0, 1fr) auto;
        grid-template-areas: "icon main action";
        gap: 10px;
        min-height: 60px;
        padding: 10px 14px;
        border-radius: 0;
    }

    .spray-contact-entry {
        border-radius: 12px;
    }
    .spray-contact-followup {
        margin: 0 12px;
        padding: 6px 0 8px;
    }

    .spray-contact-card-icon {
        width: 41px;
        height: 41px;
        border-radius: 10px;
    }

    .spray-contact-card-icon svg {
        width: 22px;
        height: 22px;
    }

    .spray-contact-card-main strong {
        font-size: 15px;
    }

    .spray-contact-card-value {
        margin-top: 2px;
        font-size: 14px;
        line-height: 1.35;
    }

    .spray-contact-action {
        min-width: 76px;
        min-height: 36px;
        padding: 0 12px;
        gap: 5px;
        border-radius: 11px;
        font-size: 12px;
    }

    .spray-contact-card-actions {
        flex-direction: row;
        align-items: center;
        gap: 5px;
    }

    .spray-contact-open-app {
        min-height: 36px;
        padding: 0 9px 0 10px;
        border-radius: 10px;
        font-size: 11px;
    }

    .spray-contact-open-app svg {
        width: 13px;
        height: 13px;
    }

    .spray-contact-action svg {
        width: 13px;
        height: 13px;
    }

    .spray-contact-followup-main {
        gap: 6px;
    }

    .spray-contact-followup-emoji {
        width: 18px;
        min-width: 18px;
        font-size: 15px;
    }

    .spray-contact-followup-copytext {
        font-size: 12px;
    }

    .spray-contact-followup-guide {
        grid-template-columns: 18px minmax(0, 1fr);
        gap: 6px;
        margin-top: 4px;
        font-size: 11px;
        line-height: 1.4;
    }

}

@media (max-width: 360px) {


    .spray-contact-qrcode-card {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 9px;
    }

    .spray-contact-qrcode img {
        width: 66px;
    }

    .spray-contact-card {
        grid-template-columns: 41px minmax(0, 1fr) auto;
        grid-template-areas: "icon main action";
        gap: 8px;
        padding: 9px 12px;
    }

    .spray-contact-followup {
        margin: 0 12px;
    }

    .spray-contact-card-icon {
        width: 41px;
        height: 41px;
    }

    .spray-contact-action {
        min-width: 68px;
        padding: 0 10px;
        font-size: 11px;
    }

    .spray-contact-card-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .spray-contact-open-app {
        min-height: 32px;
        padding: 0 8px;
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .spray-contact-open-arrow {
        animation: none;
    }

    .spray-contact-entry,
    .spray-contact-action,
    .spray-contact-close,
    .spray-contact-toast {
        transition: none;
    }
}

