/* 页脚 — 纯黑底 + 白字高对比 */

.site-footer {
    --footer-text-size: 0.8125rem;
    --footer-title-size: 0.9375rem;
    --footer-bg: #000;
    --footer-text: #fff;
    --footer-muted: rgba(255, 255, 255, 0.72);
    --footer-line: rgba(255, 255, 255, 0.12);
    background: var(--footer-bg);
    color: var(--footer-muted);
    margin-top: 0;
}

.site-footer-main {
    padding: 2.5rem 0 2rem;
    border-top: 1px solid var(--footer-line);
}

.site-footer-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem 1.5rem;
    align-items: flex-start;
}

.site-footer-columns {
    flex: 1;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.25rem 1rem;
}

.site-footer-col-head {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    margin-bottom: 0.85rem;
    gap: 0.45rem;
}

.site-footer-col-icon {
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    border: none;
    color: var(--footer-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    opacity: 0.9;
    box-shadow: none;
}

.site-footer-col h6 {
    margin: 0;
    color: var(--footer-text);
    font-size: var(--footer-title-size);
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: 0.03em;
}

.site-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
}

.site-footer-links li {
    margin: 0;
    line-height: 1.5;
}

.site-footer-links a {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.35rem;
    color: var(--footer-muted);
    font-size: var(--footer-text-size);
    line-height: 1.55;
    text-decoration: none;
    padding: 0.1rem 0;
    transition: color 0.2s, opacity 0.2s;
}

.site-footer-links a:hover {
    color: var(--footer-text);
    opacity: 1;
}

.site-footer-contact {
    flex: 0 0 auto;
    min-width: 17rem;
    max-width: 100%;
    padding: 0.25rem 0 0 1.25rem;
    border-left: 1px solid var(--footer-line);
}

.site-footer-wechat {
    text-align: center;
    margin-bottom: 1.25rem;
}

.site-footer-wechat img {
    display: block;
    margin: 0 auto;
    width: 110px;
    height: 110px;
    object-fit: contain;
    border-radius: 0;
    background: #fff;
    padding: 6px;
}

.site-footer-wechat-placeholder {
    width: 110px;
    height: 110px;
    margin: 0 auto;
    border-radius: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 2.25rem;
}

.site-footer-wechat p {
    margin: 0.55rem 0 0;
    font-size: var(--footer-text-size);
    line-height: 1.5;
    color: var(--footer-muted);
}

.site-footer-contact-item {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.85rem;
    white-space: nowrap;
}

.site-footer-contact-item:last-child {
    margin-bottom: 0;
}

.site-footer-contact-item > i {
    color: var(--footer-text);
    font-size: 0.95rem;
    flex-shrink: 0;
    opacity: 0.9;
}

.site-footer-contact-item p {
    margin: 0;
    font-size: var(--footer-text-size);
    line-height: 1.5;
    color: var(--footer-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.site-footer-contact-item a {
    color: var(--footer-text);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.site-footer-contact-item a:hover {
    color: var(--footer-text);
    opacity: 0.85;
}

.site-footer-bar {
    background: var(--footer-bg);
    border-top: 1px solid var(--footer-line);
    padding: 0.75rem 0;
}

.site-footer-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-footer-copy {
    font-size: var(--footer-text-size);
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
    width: 100%;
    margin: 0;
    line-height: 1.45;
    letter-spacing: 0.02em;
}

/* 左下角浮动留言 */
.float-message {
    --float-msg-red: #e53935;
    --float-msg-red-dark: #c62828;
    position: fixed;
    left: 16px;
    bottom: 20px;
    top: auto;
    z-index: 1001;
    font-size: 0.8125rem;
    transform: none;
    transition:
        left 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        top 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        bottom 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.float-message.is-centered {
    left: 50%;
    top: 50%;
    bottom: auto;
    transform: translate(-50%, -50%);
    z-index: 1205;
}

.float-message.is-centered .float-message-panel {
    width: min(340px, calc(100vw - 2rem));
    animation: float-message-center-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes float-message-center-in {
    from {
        opacity: 0.88;
        transform: scale(0.94);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.float-message-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.float-message-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
    .float-message {
        transition: none !important;
    }
    .float-message.is-centered .float-message-panel {
        animation: none !important;
    }
    .float-message-backdrop {
        transition: none !important;
    }
}

.float-message-panel {
    width: 300px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 36px rgba(198, 40, 40, 0.22), 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(229, 57, 53, 0.2);
}

.float-message-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    background: linear-gradient(180deg, var(--float-msg-red), var(--float-msg-red-dark));
    color: #fff;
    font-weight: 700;
    font-size: 0.9375rem;
}

.float-message-minimize {
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 28px;
    height: 22px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s;
}

.float-message-minimize:hover {
    background: rgba(255, 255, 255, 0.28);
}

.float-message-body {
    padding: 0.85rem 0.9rem 1rem;
    color: #333;
}

.float-message-intro {
    margin: 0 0 0.5rem;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: #444;
}

.float-message-tel {
    margin: 0 0 0.75rem;
    font-size: 0.8125rem;
    color: #222;
    font-weight: 600;
}

.float-message-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.float-message-field {
    flex: 1 1 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #d5dce5;
    border-radius: 6px;
    padding: 0.45rem 0.65rem;
    margin: 0;
    background: #fff;
}

.float-message-field:focus-within {
    border-color: var(--float-msg-red);
    box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.14);
}

.float-message-field > i {
    color: #9aa5b5;
    font-size: 1rem;
    flex-shrink: 0;
}

.float-message-field input {
    border: none;
    outline: none;
    flex: 1;
    min-width: 0;
    font-size: 0.8125rem;
    background: transparent;
    padding: 0;
}

.float-message-field input.is-invalid {
    color: #c62828;
}

.float-message-error {
    flex: 1 1 100%;
    font-size: 0.75rem;
    color: #c62828;
    margin: -0.25rem 0 0;
}

.float-message-submit {
    margin-left: auto;
    border: none;
    background: linear-gradient(180deg, var(--float-msg-red), var(--float-msg-red-dark));
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 0.45rem 1.1rem;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(198, 40, 40, 0.35);
    transition: filter 0.15s;
}

.float-message-submit:hover {
    filter: brightness(1.08);
}

.float-message-launcher {
    display: none;
    align-items: center;
    gap: 0.4rem;
    border: none;
    background: linear-gradient(180deg, var(--float-msg-red), var(--float-msg-red-dark));
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.55rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(198, 40, 40, 0.38);
    transition: filter 0.15s, transform 0.15s;
}

.float-message-launcher:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.float-message.is-expanded .float-message-panel {
    display: block;
}

.float-message.is-expanded .float-message-launcher {
    display: none !important;
}

.float-message:not(.is-expanded) .float-message-panel {
    display: none;
}

.float-message:not(.is-expanded) .float-message-launcher {
    display: inline-flex !important;
}

/* 右侧浮动栏 — 锦赫风格 */
.float-sidebar-jh {
    width: 88px;
    border: 2px solid var(--dp-primary);
    border-right: none;
    border-radius: 10px 0 0 10px;
    box-shadow: -4px 0 24px rgba(13, 71, 161, 0.2);
}

.float-sidebar-jh .float-sidebar-main {
    background: linear-gradient(180deg, #e3f2fd, #fff);
    padding-top: 0.75rem;
}

.float-sidebar-jh .float-sidebar-avatar {
    width: 48px;
    height: 48px;
    border: 2px solid #fff;
    box-shadow: 0 3px 12px rgba(21, 31, 42, 0.14);
}

.float-sidebar-jh .float-sidebar-item {
    font-size: 0.5625rem;
    padding: 0.5rem 0.35rem;
}

.float-sidebar-jh .float-sidebar-item span {
    font-size: 0.5625rem;
}

.float-sidebar-qr {
    padding: 0.5rem 0.4rem;
    text-align: center;
    background: #fff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.float-sidebar-qr img {
    display: block;
    margin: 0 auto;
    border-radius: 4px;
}

.float-sidebar-qr-placeholder {
    width: 72px;
    height: 72px;
    margin: 0 auto;
    background: #f0f4f8;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 2rem;
}

.float-sidebar-qr p {
    margin: 0.35rem 0 0;
    font-size: 0.5625rem;
    color: var(--dp-muted);
    line-height: 1.2;
}

.float-sidebar-hotline {
    display: block;
    text-align: center;
    background: linear-gradient(180deg, var(--dp-primary-dark), var(--dp-primary));
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 800;
    padding: 0.5rem 0.25rem;
    text-decoration: none;
    line-height: 1.25;
    word-break: break-all;
}

.float-sidebar-hotline:hover {
    color: #fff;
    filter: brightness(1.1);
}

.float-sidebar-jh .float-sidebar-jump.is-visible {
    max-height: 56px;
}
.float-sidebar-jh .float-sidebar-jump-btn {
    padding: 0.45rem 0.35rem;
}

@media (max-width: 1199.98px) {
    .site-footer-columns {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .site-footer-contact {
        flex: 1 1 100%;
        border-left: none;
        border-top: 1px solid var(--footer-line);
        padding: 1.25rem 0 0;
    }
}

@media (max-width: 767.98px) {
    .site-footer-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer-main {
        display: none;
    }

    .site-footer {
        --footer-text-size: 0.75rem;
        --footer-title-size: 0.8125rem;
    }

    .site-footer-bar {
        padding: 0.85rem 0;
    }

    .site-footer-bar-inner {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .site-footer-copy {
        font-size: 0.6875rem;
        line-height: 1.6;
        white-space: normal;
        word-break: break-word;
        text-wrap: pretty;
    }

    .float-message,
    .float-message-backdrop {
        display: none !important;
    }
}

@media (max-width: 575.98px) {
    .site-footer-columns {
        grid-template-columns: 1fr;
    }
}
