 html{scroll-behavior:smooth}
body{font-family:"Noto Sans SC","PingFang SC",Microsoft YaHei,sans-serif}
    
/* 桌面端多级下拉：任意层级，基于 hover */
header .nav-menu, header .nav-submenu,
nav .nav-menu, nav .nav-submenu { list-style: none; margin: 0; padding: 0; }
nav .nav-menu .nav-item { position: relative; }
nav .nav-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 12rem;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  padding: 0.25rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  z-index: 60;
}
/* 二级及以下向右展开 */
nav .nav-submenu .nav-submenu { top: -0.25rem; left: 100%; }
nav .nav-item:hover > .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* Glass effect */
.glass{background:rgba(255,255,255,0.05);backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,0.08)}

/* 全局滚动条样式（暗黑主题） */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(148,163,184,.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(148,163,184,.5); }
/* Firefox */
* { scrollbar-width: thin; scrollbar-color: rgba(148,163,184,.3) transparent; }

/* ===== 全局在线客服组件（智链云康智能体） ===== */
.lf-chat-root{position:fixed;right:20px;bottom:20px;z-index:60;font-family:inherit}
.lf-chat-launcher{display:flex;align-items:center;gap:8px;background:linear-gradient(135deg,#3366ff,#5b85ff);color:#fff;border:none;border-radius:999px;padding:13px 20px;font-size:15px;font-weight:600;cursor:pointer;box-shadow:0 10px 28px rgba(51,102,255,.45);transition:transform .15s ease,box-shadow .15s ease}
.lf-chat-launcher:hover{transform:translateY(-2px);box-shadow:0 14px 34px rgba(51,102,255,.55)}
.lf-chat-launcher svg{width:20px;height:20px}
.lf-chat-panel{position:fixed;right:20px;bottom:86px;width:384px;max-width:calc(100vw - 32px);height:580px;max-height:calc(100vh - 120px);background:#0f172a;border:1px solid #1e293b;border-radius:16px;box-shadow:0 24px 70px rgba(0,0,0,.55);display:flex;flex-direction:column;overflow:hidden;color:#e2e8f0}
.lf-chat-panel[hidden]{display:none}
.lf-chat-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;background:linear-gradient(135deg,#1f4fd6,#3366ff);color:#fff}
.lf-chat-head-info{display:flex;align-items:center;gap:10px}
.lf-chat-avatar{width:36px;height:36px;border-radius:10px;background:rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center;font-size:18px}
.lf-chat-title{font-size:15px;font-weight:700;line-height:1.2}
.lf-chat-sub{font-size:12px;opacity:.85;margin-top:2px}
.lf-chat-x{background:transparent;border:none;color:#fff;font-size:24px;line-height:1;cursor:pointer;opacity:.85;padding:0 4px}
.lf-chat-x:hover{opacity:1}
.lf-chat-form{padding:22px 18px;display:flex;flex-direction:column;gap:10px}
.lf-chat-form-tip{font-size:13px;color:#94a3b8;margin:0 0 4px;text-align:center}
.lf-chat-input{width:100%;box-sizing:border-box;padding:11px 13px;border:1px solid #334155;border-radius:10px;background:#0b1220;color:#e2e8f0;font-size:14px;outline:none}
.lf-chat-input:focus{border-color:#3366ff;box-shadow:0 0 0 3px rgba(51,102,255,.25)}
.lf-chat-err{color:#f87171;font-size:12px;margin:0;min-height:14px}
.lf-chat-body{flex:1;overflow-y:auto;padding:16px;background:#0b1220;display:flex;flex-direction:column;gap:12px}
.lf-chat-msgs{display:flex;flex-direction:column;gap:12px}
.lf-msg{display:flex;flex-direction:column;max-width:85%}
.lf-msg-user{align-self:flex-end;align-items:flex-end}
.lf-msg-ai{align-self:flex-start;align-items:flex-start}
.lf-bubble{padding:10px 13px;border-radius:12px;font-size:14px;line-height:1.6;white-space:pre-wrap;word-break:break-word}
.lf-msg-user .lf-bubble{background:#3366ff;color:#fff;border-bottom-right-radius:4px}
.lf-msg-ai .lf-bubble{background:#1e293b;color:#e2e8f0;border-bottom-left-radius:4px}
.lf-msg-img{display:block;max-width:100%;border-radius:8px;margin-top:8px}
.lf-chat-bar{display:flex;gap:8px;padding:12px;border-top:1px solid #1e293b;background:#0f172a}
.lf-chat-text{flex:1;resize:none;box-sizing:border-box;padding:10px 12px;border:1px solid #334155;border-radius:10px;background:#0b1220;color:#e2e8f0;font-size:14px;outline:none;font-family:inherit;max-height:120px}
.lf-chat-text:focus{border-color:#3366ff;box-shadow:0 0 0 3px rgba(51,102,255,.25)}
.lf-chat-send{background:#3366ff;color:#fff;border:none;border-radius:10px;padding:0 18px;font-size:14px;font-weight:600;cursor:pointer;white-space:nowrap;transition:background .15s}
.lf-chat-send:hover{background:#1f4fd6}
.lf-chat-send:disabled{background:#475569;cursor:not-allowed}
.lf-typing{display:flex;gap:4px;align-items:center}
.lf-typing span{width:7px;height:7px;border-radius:50%;background:#94a3b8;display:inline-block;animation:lf-blink 1.2s infinite both}
.lf-typing span:nth-child(2){animation-delay:.2s}
.lf-typing span:nth-child(3){animation-delay:.4s}
@keyframes lf-blink{0%,80%,100%{opacity:.3}40%{opacity:1}}
@media (max-width:480px){.lf-chat-panel{right:10px;bottom:78px;width:calc(100vw - 20px)}.lf-chat-root{right:12px;bottom:12px}}