/* Shared float sidebar / message / wechat modal */
:root {
  --dp-primary: #1c2b3a;
  --dp-primary-dark: #111a24;
  --dp-accent: #2a4055;
  --dp-accent-bright: #4a6d8a;
  --dp-highlight: #4a9fd8;
  --dp-gray: #f9f8f6;
  --dp-text: #2a323c;
  --dp-muted: #6e7681;
  --dp-line: rgba(28, 43, 58, 0.08);
  --dp-float-z: 1100;
}

.float-sidebar {
    position: fixed;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: var(--dp-float-z, 1100);
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: -2px 0 16px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    overflow: hidden;
    width: 72px;
}
.float-sidebar-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.85rem 0.5rem 0.65rem;
    text-decoration: none;
    color: var(--dp-text);
    background: var(--dp-gray);
    border-bottom: 1px solid var(--dp-line);
    position: relative;
}
.float-sidebar-main:hover {
    color: var(--dp-primary);
}
.float-sidebar-avatar {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f0eeea;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 0.35rem;
    box-shadow:
        0 0 0 3px rgba(74, 159, 216, 0.22),
        0 0 18px rgba(74, 159, 216, 0.32),
        0 2px 10px rgba(21, 31, 42, 0.12);
    overflow: visible;
    border: 2px solid #fff;
}
.float-sidebar-avatar::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74, 159, 216, 0.38) 0%, rgba(74, 159, 216, 0.08) 52%, transparent 72%);
    z-index: -1;
    pointer-events: none;
}
.float-sidebar-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    display: block;
}
.float-sidebar-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.25;
}
.float-sidebar-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.35rem;
    background: var(--dp-accent-bright);
    color: #fff;
    font-size: 0.5625rem;
    font-weight: 700;
    padding: 0.1rem 0.3rem;
    border-radius: 2px;
    line-height: 1.2;
}
.float-sidebar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.65rem 0.4rem;
    color: var(--dp-muted);
    text-decoration: none;
    border: none;
    background: #fff;
    font-size: 0.625rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    border-bottom: 1px solid #f0f0f0;
    width: 100%;
}
.float-sidebar-item i {
    font-size: 1.15rem;
    margin-bottom: 0.15rem;
}
.float-sidebar-item span {
    line-height: 1.2;
    text-align: center;
}
.float-sidebar-item:hover {
    background: rgba(74, 159, 216, 0.12);
    color: #1c2b3a;
}
.float-sidebar-jump {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.2s, max-height 0.2s;
    border-bottom: none;
}
.float-sidebar-jump.is-visible {
    opacity: 1;
    max-height: 88px;
}
.float-sidebar-jump-btn {
    display: none;
    width: 100%;
    border-bottom: none;
}
.float-sidebar-jump-btn.is-active {
    display: flex;
}

@media (max-width: 860px) {
    .float-sidebar {
        display: none !important;
    }
    .float-message-launcher {
        display: none !important;
    }
    .float-message:not(.is-expanded) {
        display: none;
    }
}

.wechat-modal-dialog {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}
.wechat-modal {
    border: 1px solid #e5e7eb;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}
.wechat-modal__header {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}
.wechat-modal__header .modal-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
}
.wechat-modal__header .btn-close {
    margin: 0;
    padding: 0.5rem;
    opacity: 0.45;
}
.wechat-modal__header .btn-close:hover {
    opacity: 0.75;
}
.wechat-modal__body {
    padding: 1.25rem 1rem 1.1rem;
    text-align: center;
    background: #fff;
}
.wechat-modal__qr {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    padding: 0;
    background: #fff;
    border: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.wechat-modal__qr img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 200px;
    max-height: 200px;
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}
.wechat-modal__qr-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #9ca3af;
    font-size: 3rem;
}
.wechat-modal__tip {
    margin: 1rem 0 0;
    padding: 0;
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.5;
    text-align: center;
}

/* Site-wide flash alerts (success / error / validation) */

.float-message-form.is-submitting .float-message-submit {
    opacity: 0.72;
    cursor: wait;
}

.contact-form__submit:disabled,
.float-message-submit:disabled {
    pointer-events: none;
}

/* 鈥斺€?鏈嶅姟浜偣 鈥斺€?*/

.float-message {
    --float-msg-red: #4a9fd8;
    --float-msg-red-dark: #3a8fc4;
    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(74, 159, 216, 0.22), 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(74, 159, 216, 0.28);
}

.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-error--banner {
    margin: 0 0 0.5rem;
    padding: 0.5rem 0.625rem;
    background: rgba(198, 40, 40, 0.08);
    border-radius: 4px;
    font-size: 0.8125rem;
    line-height: 1.45;
}

.float-message-captcha {
    flex: 1 1 100%;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.5rem;
}

.float-message-captcha__image-btn {
    flex: 0 0 120px;
    width: 120px;
    margin: 0;
    padding: 0;
    border: 1px solid #d5dce5;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    line-height: 0;
    overflow: hidden;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
}

.float-message-captcha__image-btn:hover {
    border-color: var(--float-msg-red);
}

.float-message-captcha__image-btn img {
    display: block;
    width: 120px;
    height: 40px;
    object-fit: contain;
}

.float-message-field--captcha {
    flex: 0 1 7.5rem;
    max-width: 7.5rem;
    min-width: 0;
}

.float-message-field--captcha input {
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.float-message-captcha .float-message-error {
    flex: 1 1 100%;
}

.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(74, 159, 216, 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(74, 159, 216, 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-radius: 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;
}

.float-message-panel {
    border: 1px solid rgba(74, 159, 216, 0.28);
    border-radius: 12px;
    box-shadow: 0 14px 44px rgba(74, 159, 216, 0.2);
    overflow: hidden;
}
.float-message-head {
    background: linear-gradient(180deg, #4a9fd8, #3a8fc4);
    position: relative;
    letter-spacing: 0.03em;
}
.float-message-head::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.1));
}
.float-message-field {
    border-color: var(--dp-line);
    border-radius: 8px;
    transition: border-color 0.22s, box-shadow 0.22s;
}
.float-message-field:focus-within {
    border-color: #4a9fd8;
    box-shadow: 0 0 0 3px rgba(74, 159, 216, 0.14);
}
.float-message-field:focus-within > i {
    color: #4a9fd8;
}
.float-message-submit,
.float-message-launcher {
    background: linear-gradient(180deg, #4a9fd8, #3a8fc4);
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(74, 159, 216, 0.35);
    transition: transform 0.22s, box-shadow 0.22s, filter 0.22s;
}
.float-message-submit:hover,
.float-message-launcher:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(74, 159, 216, 0.42);
}

/* ---------- 鍙充晶娴姩鏍?---------- */
.float-sidebar-jh {
    z-index: var(--dp-float-z, 1100);
    width: 88px;
    border: 1px solid var(--dp-line);
    border-radius: 12px;
    box-shadow: -8px 0 32px rgba(21, 31, 42, 0.1);
    overflow: hidden;
}
.float-sidebar-jh .float-sidebar-avatar {
    box-shadow:
        0 0 0 3px rgba(74, 159, 216, 0.28),
        0 0 22px rgba(74, 159, 216, 0.42),
        0 4px 14px rgba(21, 31, 42, 0.14);
}
.float-sidebar-jh .float-sidebar-avatar::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74, 159, 216, 0.22) 0%, transparent 68%);
    z-index: -2;
    pointer-events: none;
    animation: float-avatar-glow 3s ease-in-out infinite;
}
@keyframes float-avatar-glow {
    0%, 100% { opacity: 0.75; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.06); }
}
.float-sidebar-jh .float-sidebar-main {
    background: linear-gradient(180deg, #f3f8fc 0%, #fff 100%);
    padding-top: 0.85rem;
    transition: background 0.25s;
}
.float-sidebar-jh .float-sidebar-main:hover {
    background: linear-gradient(180deg, #eaf4fb 0%, #fff 100%);
}
.float-sidebar-jh .float-sidebar-label {
    color: var(--dp-primary-dark);
    font-weight: 700;
}
.float-sidebar-jump {
    border-top: 1px solid var(--dp-line);
}
.float-sidebar-jump-btn--down {
    background: linear-gradient(180deg, #f5f9fc 0%, #fff 100%);
    color: var(--dp-primary);
}
.float-sidebar-jump-btn--down i {
    font-size: 1.25rem;
    color: var(--dp-highlight);
    transition: transform 0.25s ease, color 0.2s;
}
.float-sidebar-item.float-sidebar-jump-btn--down:hover {
    background: linear-gradient(180deg, #e8f3fa 0%, #fff 100%);
    color: var(--dp-primary-dark);
}
.float-sidebar-item.float-sidebar-jump-btn--down:hover i {
    color: var(--dp-highlight);
    transform: translateY(2px);
}
.float-sidebar-item {
    transition: background 0.22s, color 0.2s, transform 0.2s;
}
.float-sidebar-item:hover {
    background: rgba(74, 159, 216, 0.12);
    color: #1c2b3a;
}
.float-sidebar-item:hover i {
    color: var(--dp-highlight);
}
.float-sidebar-qr {
    border-color: var(--dp-line);
    background: var(--dp-gray);
}
.float-sidebar-hotline {
    background: var(--dp-primary-dark);
    letter-spacing: 0.02em;
    transition: background 0.25s;
}
.float-sidebar-hotline:hover {
    background: #0a1018;
    filter: none;
}

/* ---------- 寰俊寮圭獥 ---------- */
.wechat-modal {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--dp-line);
    box-shadow: 0 20px 50px rgba(21, 31, 42, 0.16);
}
.wechat-modal__header {
    background: var(--dp-primary-dark);
    border-bottom: none;
    padding: 1rem 1.15rem;
}
.wechat-modal__header .modal-title {
    color: #fff;
    font-family: var(--dp-font-display);
    letter-spacing: 0.05em;
}
.wechat-modal__header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.75;
}
.wechat-modal__qr {
    border: 1px solid var(--dp-line);
    border-radius: 8px;
    padding: 0.5rem;
    background: #fff;
}
.wechat-modal__tip {
    color: var(--dp-muted);
}


/* WeChat QR modal only — do not collide with cyuan .modal[data-search-modal] */
#wechatModal.modal {
  position: fixed;
  inset: 0;
  z-index: 1055;
  display: none;
  overflow-x: hidden;
  overflow-y: auto;
  outline: 0;
}
#wechatModal.modal.fade .modal-dialog {
  transition: transform 0.3s ease-out;
  transform: translate(0, -50px);
}
#wechatModal.modal.show {
  display: block;
}
#wechatModal.modal.show .modal-dialog {
  transform: none;
}
#wechatModal .modal-dialog {
  position: relative;
  width: auto;
  margin: 1.75rem auto;
  max-width: 420px;
  pointer-events: none;
}
#wechatModal .modal-dialog-centered {
  display: flex;
  align-items: center;
  min-height: calc(100% - 3.5rem);
}
#wechatModal .modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}
#wechatModal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
#wechatModal .modal-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}
#wechatModal .modal-body {
  padding: 1rem 1.1rem 1.25rem;
}
#wechatModal .btn-close {
  box-sizing: content-box;
  width: 1em;
  height: 1em;
  padding: 0.25em;
  color: #000;
  background: transparent url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27 fill=%27%23000%27%3e%3cpath d=%27M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z%27/%3e%3c/svg%3e") center/1em auto no-repeat;
  border: 0;
  border-radius: 0.25rem;
  opacity: 0.5;
  cursor: pointer;
}
#wechatModal .btn-close:hover {
  opacity: 0.8;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: #000;
}
.modal-backdrop.fade {
  opacity: 0;
}
.modal-backdrop.show {
  opacity: 0.5;
}
body.modal-open {
  overflow: hidden;
}

/* Homepage: hide float chrome on banner, reveal after scroll */
body.page-home .float-sidebar {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(16px, -50%);
  transition:
    opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.4s,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
body.page-home .float-sidebar.is-revealed {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(0, -50%);
}

body.page-home .float-message:not(.is-revealed):not(.is-centered):not(.is-expanded) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.4s,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    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);
}
body.page-home .float-message.is-revealed,
body.page-home .float-message.is-expanded,
body.page-home .float-message.is-centered {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  body.page-home .float-sidebar,
  body.page-home .float-message {
    transition: none !important;
  }
}

/* ---------- Mobile bottom nav ---------- */
.mobile-bar {
  display: none;
}

@media (max-width: 860px) {
  :root {
    --mobile-bar-h: calc(3.55rem + env(safe-area-inset-bottom, 0px));
  }

  body {
    padding-bottom: var(--mobile-bar-h);
  }

  .nav-drawer-foot {
    padding-bottom: calc(var(--mobile-bar-h) + 0.85rem) !important;
  }

  .mobile-bar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10040;
    background:
      linear-gradient(180deg, rgba(28, 34, 42, 0.96) 0%, rgba(16, 20, 26, 0.98) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .mobile-bar__inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
    min-height: 3.55rem;
  }

  .mobile-bar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.18rem;
    padding: 0.45rem 0.35rem 0.4rem;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    line-height: 1.2;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-bar__item svg {
    display: block;
    flex-shrink: 0;
  }

  .mobile-bar__item.is-active,
  .mobile-bar__item--consult.is-active {
    color: #7ec8f0;
  }

  .mobile-bar__item:active {
    color: rgba(255, 255, 255, 0.88);
  }

  .float-message.is-centered {
    z-index: 10120;
  }

  .float-message-backdrop.is-visible {
    display: block;
    z-index: 10110;
  }

  .float-message.is-centered .float-message-panel {
    width: min(360px, calc(100vw - 1.5rem));
    max-height: min(78dvh, calc(100dvh - var(--mobile-bar-h) - 1.5rem));
    overflow: auto;
  }
}

/* 留言提交结果弹窗 */
.site-flash-dialog {
    position: fixed;
    inset: 0;
    z-index: 10240;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.site-flash-dialog.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.site-flash-dialog__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 18, 26, 0.52);
}

.site-flash-dialog__panel {
    position: relative;
    z-index: 1;
    width: min(400px, 100%);
    padding: 2rem 1.6rem 1.45rem;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 22px 50px rgba(12, 18, 26, 0.22);
    text-align: center;
}

.site-flash-dialog__icon {
    width: 3.4rem;
    height: 3.4rem;
    margin: 0 auto 0.95rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.7rem;
}

.site-flash-dialog__icon [data-icon-success],
.site-flash-dialog__icon [data-icon-error] {
    display: none;
}

.site-flash-dialog__icon[data-type="success"] {
    background: #ecfdf5;
    color: #059669;
}

.site-flash-dialog__icon[data-type="success"] [data-icon-success] {
    display: block;
}

.site-flash-dialog__icon[data-type="error"] {
    background: #fef2f2;
    color: #dc2626;
}

.site-flash-dialog__icon[data-type="error"] [data-icon-error] {
    display: block;
}

.site-flash-dialog__title {
    margin: 0 0 0.45rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: 0.04em;
}

.site-flash-dialog__message {
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #4b5563;
    white-space: pre-line;
}

.site-flash-dialog__btn {
    min-width: 7.5rem;
    height: 2.45rem;
    padding: 0 1.4rem;
    border: 0;
    border-radius: 8px;
    background: #1677ff;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

.site-flash-dialog__btn:hover {
    background: #0958d9;
}

body.is-flash-open {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .site-flash-dialog {
        transition: none;
    }
}