/* 公共样式 - 基于首页标准 */
body { font-family: 'Inter', "Microsoft YaHei", sans-serif; background: #fff; scroll-behavior: smooth; overflow-x: hidden; opacity: 0; animation: _djq_pagein .18s ease .06s forwards; }
@keyframes _djq_pagein { to { opacity: 1; } }
/* 顶栏桌面菜单「首页…联系我们」：比原 text-xs 略大，现比上一版小一号（≈14px） */
nav.fixed.top-0 div.hidden.md\:flex a.nav-link {
    font-size: 0.875rem;
    line-height: 1.25rem;
}
.nav-link { position: relative; transition: color 0.3s ease; }
.nav-link::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -4px; left: 0; background-color: #2563eb; transition: width 0.3s cubic-bezier(0.65, 0, 0.35, 1); }
.nav-link:hover { color: #2563eb; }
.nav-link:hover::after { width: 100%; }
#mobile-menu { transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
#mobile-menu.open { transform: translateX(0); }
.logo-animate { background: linear-gradient(to right, #1d4ed8, #60a5fa, #1d4ed8); background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: shine 3s linear infinite; font-weight: 900; letter-spacing: -0.05em; }
@keyframes shine { to { background-position: 200% center; } }
.shimmer-text { background: linear-gradient(90deg, #1d4ed8 0%, #60a5fa 50%, #1d4ed8 100%); background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: shimmer 5s linear infinite; }
@keyframes shimmer { to { background-position: 200% center; } }
/* 语言切换（与首页统一，全站一致） */
.lang-switch { display: flex; align-items: center; gap: 8px; font-weight: bold; cursor: pointer; font-size: 10px; letter-spacing: 0.1em; }
.lang-option { padding: 4px 8px; border-radius: 4px; transition: all 0.3s; color: #6b7280; }
.lang-option.active { color: #2563eb; background: rgba(37, 99, 235, 0.1); }
.lang-divider { color: #e5e7eb; }
.card-standard { transition: all 0.3s ease; border: 1px solid #f1f5f9; background: #f9fafb; }
.card-standard:hover { transform: translateY(-5px); background: #fff; border-color: #2563eb; box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.1); }
.fab-wrapper { position: fixed; right: 30px; bottom: 30px; z-index: 1000; display: none; flex-direction: column; align-items: center; overflow: visible; }
@media (min-width: 768px) { .fab-wrapper { display: flex; } }
.fab-wrapper.fab-wrapper--user-dismissed { display: none !important; }
.fab-main { width: 60px; height: 60px; background: #1d4ed8; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 12px 30px rgba(29, 78, 216, 0.4); transition: 0.4s; color: white; font-size: 30px; }
.fab-main.active { transform: rotate(135deg); background: #1f2937; }
/* 不用 transform 做展开动画，否则其建立了包含块，子元素 position:fixed 无法相对视口，气泡与图片易异常 */
.fab-items { position: absolute; bottom: 60px; display: flex; flex-direction: column; gap: 15px; pointer-events: none; opacity: 0; transition: opacity 0.3s ease, bottom 0.3s ease; overflow: visible; }
.fab-items.open { pointer-events: auto; opacity: 1; bottom: 80px; }
.fab-item { width: 52px; height: 52px; background: white; border-radius: 16px; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(0,0,0,0.1); transition: 0.3s; cursor: pointer; border: 1px solid #f0f0f0; }
.fab-item:hover { transform: scale(1.1); border-color: #3b82f6; }
/* 浮动客服：子项包装与左侧悬停气泡 */
.fab-item-wrap { position: relative; display: flex; flex-direction: column; align-items: center; overflow: visible; }
a.fab-item { text-decoration: none; color: inherit; }
button.fab-item {
    font: inherit;
    margin: 0;
    padding: 0;
    border: 1px solid #f0f0f0;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}
.fab-dismiss { color: #64748b; }
.fab-dismiss:hover { color: #dc2626; border-color: #fecaca; }
.fab-dismiss:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
/* 具体 left/top 由 js/fab-popover.js 在悬停时设为 position:fixed，浮现在按钮左侧、相对视口 */
.fab-popover {
    position: fixed;
    left: 0;
    top: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s;
    z-index: 10050;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
    border: 1px solid #e2e8f0;
}
.fab-item-wrap.fab-popover-visible .fab-popover,
.fab-item-wrap:focus-within .fab-popover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.fab-popover--qr { padding: 10px; }
.fab-popover--qr img {
    display: block;
    width: 140px;
    height: auto;
    max-height: 160px;
    object-fit: contain;
}
.fab-popover--text {
    padding: 12px 16px;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: 0.02em;
}
.fab-item--whatsapp { color: #25d366; }
.fab-item svg { width: 24px; height: 24px; flex-shrink: 0; }
.fab-icon-stroke svg { stroke: #334155; fill: none; stroke-width: 2; }
.fab-item--whatsapp svg { stroke: none; }
