/* ===== 帮助中心 + AI 助手 ===== */
.help-page{ display:flex; flex-direction:column; gap:16px; }

/* 顶部引导 */
.hp-hero{ display:flex; gap:24px; align-items:center; padding:26px 28px; background:linear-gradient(120deg,#fff 0%,#F7FAFF 60%,#EEF4FF 100%); }
.hp-hero-l{ flex:1; min-width:0; }
.hp-eyebrow{ display:inline-block; font-size:12px; font-weight:600; color:var(--primary); background:var(--primary-soft); border-radius:999px; padding:3px 12px; margin-bottom:10px; }
.hp-hero h2{ font-size:24px; line-height:1.35; margin-bottom:6px; }
.hp-hero p{ color:var(--muted); font-size:13px; margin-bottom:16px; }
.hp-search{ display:flex; gap:8px; flex-wrap:wrap; max-width:680px; }
.hp-search .input{ flex:1; min-width:260px; height:42px; border:1px solid var(--line); border-radius:10px; padding:0 14px; background:#fff; }
.hp-search .input:focus{ outline:none; border-color:var(--primary); box-shadow:0 0 0 3px rgba(37,99,235,.1); }
.hp-search .btn{ height:42px; }
.hp-result{ margin-top:14px; padding:14px 16px; border:1px solid #D7E5FF; background:#F8FBFF; border-radius:12px; }
.hp-res-hd{ font-size:12px; color:var(--primary); font-weight:600; margin-bottom:6px; }
.hp-res-a{ font-size:13px; color:var(--ink2); line-height:1.8; }
.hp-res-ft{ display:flex; align-items:center; gap:12px; margin-top:10px; font-size:12px; color:var(--muted); flex-wrap:wrap; }
.hp-hero-r{ width:210px; flex:0 0 210px; text-align:center; padding:16px 10px; border-left:1px solid var(--line); }
.hp-bot{ width:56px; height:56px; margin:0 auto 8px; border-radius:18px; display:flex; align-items:center; justify-content:center; font-size:28px; background:#0B1B3F; box-shadow:0 10px 24px -12px rgba(11,27,63,.7); }
.hp-bot .oa-ai-orb{ transform:scale(1.22); }
/* 帮助中心 / 助手面板统一小图标：小猫 + 云朵 */
.oa-ai-mini{ width:30px; height:30px; display:inline-block; flex:0 0 auto; vertical-align:middle; }
.hp-bot .oa-ai-mini{ width:44px; height:44px; display:block; }
.oa-ai-hd .oa-ai-mini{ width:34px; height:34px; }
.btn .oa-ai-mini{ width:17px; height:17px; vertical-align:-4px; margin-right:3px; }
.hp-bot-t{ font-weight:600; font-size:14px; }
.hp-bot-s{ font-size:12px; color:var(--muted); margin:2px 0 12px; }

/* 人工客服卡 */
.hp-cs{ display:flex; align-items:center; gap:14px; padding:14px 18px; cursor:pointer; border:1px solid var(--line); transition:.16s; }
.hp-cs:hover{ border-color:var(--primary); background:#FCFDFF; }
.hp-cs-ico{ width:42px; height:42px; flex:0 0 42px; border-radius:12px; background:var(--violet-soft); display:flex; align-items:center; justify-content:center; font-size:20px; }
.hp-cs-l{ flex:1; min-width:0; display:flex; flex-direction:column; }
.hp-cs-l b{ font-size:15px; color:var(--ink); }
.hp-cs-l span{ font-size:12px; color:var(--muted); margin-top:2px; }

/* 给系统管理员留言 */
.sp-tip{ font-size:12.5px; color:var(--muted); background:#F5F8FF; border:1px solid #DBE7FF; border-radius:10px; padding:10px 12px; margin-bottom:14px; line-height:1.7; }
.sp-row{ margin-bottom:12px; }
.sp-row label{ display:block; font-size:12px; color:var(--muted); margin-bottom:6px; }
.sp-row .input{ width:100%; box-sizing:border-box; }
.sp-row textarea.input{ resize:vertical; min-height:96px; line-height:1.7; }
.sp-mine{ display:flex; flex-direction:column; gap:10px; }
.sp-empty{ font-size:12.5px; color:var(--muted); text-align:center; padding:36px 12px; }
.sp-mine-item{ border:1px solid var(--line); border-radius:11px; padding:11px 13px; background:#FCFDFF; }
.sp-mine-hd{ display:flex; align-items:center; gap:8px; }
.sp-mine-hd b{ font-size:13px; }
.sp-mine-t{ font-size:11px; color:var(--muted); margin-top:3px; font-variant-numeric:tabular-nums; }
.sp-mine-msg{ font-size:12.5px; color:var(--ink2); line-height:1.7; margin-top:7px; white-space:pre-wrap; word-break:break-word; }
.sp-mine-reply{ font-size:12px; color:#1D4ED8; background:#F1F6FF; border-radius:8px; padding:8px 10px; margin-top:8px; line-height:1.7; }
.sp-st{ margin-left:auto; font-size:11px; border-radius:999px; padding:1px 8px; background:#F1F5F9; color:#64748B; white-space:nowrap; }
.sp-st.st-open{ background:#FFF7ED; color:#C2410C; }
.sp-st.st-read{ background:#EDF3FF; color:#1D4ED8; }
.sp-st.st-replied{ background:#ECFDF5; color:#047857; }
.sp-st.st-done{ background:#F1F5F9; color:#475569; }

/* 常见问题分类 */
.hp-section-t{ font-size:15px; font-weight:600; margin:4px 0 -4px; }
.hp-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(340px,1fr)); gap:14px; align-items:start; }
.hp-cat{ padding:16px 18px; border-radius:var(--radius); background:var(--card); border:1px solid var(--line); box-shadow:var(--shadow); }
.hp-cat-hd{ display:flex; align-items:center; gap:8px; padding-bottom:10px; border-bottom:1px solid var(--line); margin-bottom:6px; }
.hp-cat-ico{ font-size:18px; }
.hp-cat-hd b{ font-size:14px; }
.hp-cat-n{ margin-left:auto; font-size:12px; color:var(--muted); }
.hp-faq{ border-bottom:1px dashed var(--line); }
.hp-faq:last-child{ border-bottom:none; }
.hp-q{ width:100%; display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 2px; text-align:left; font-size:13px; color:var(--ink2); }
.hp-q:hover{ color:var(--primary); }
.hp-q i{ font-style:normal; color:var(--muted); font-size:15px; flex:0 0 auto; }
.hp-a{ display:none; padding:0 2px 12px; font-size:12.5px; line-height:1.85; color:var(--muted); white-space:normal; }

/* ===== 悬浮球与助手面板 ===== */
.oa-ai-fab{ position:fixed; right:22px; bottom:22px; z-index:700; width:68px; height:68px; padding:0; border:0; border-radius:22px; background:transparent; color:#fff; font-size:26px; display:flex; align-items:center; justify-content:center; filter:drop-shadow(0 8px 12px rgba(8,24,54,.2)); transition:transform .2s cubic-bezier(.2,.9,.3,1.4), filter .2s; cursor:grab; touch-action:none; user-select:none; -webkit-user-select:none; }
/* 摸鱼猫本体 */
.oa-ai-cat-wrap{ display:block; width:108%; height:108%; pointer-events:none; }
.oa-moyu-cat{ width:100%; height:100%; display:block; overflow:visible; }
.oa-moyu-cat .mc-head{ transform-box:fill-box; transform-origin:50% 80%; transition:transform .22s; }
/* 上半身（耳朵/头/手机）略下移，盖住云朵中间那朵上凸的云，云形更接近平台 logo */
.oa-moyu-cat .mc-upper{ transform:translateY(12px); }
/* 下半身（云朵 + 笔记本 + 投影）缩到 3/4 并整体下移，让完整云朵露在猫头下方，呼应平台 logo */
.oa-moyu-cat{ --mc-low-y:30px; }
.oa-moyu-cat .mc-cloud,.oa-moyu-cat .mc-laptop,.oa-moyu-cat .mc-shadow,.oa-moyu-cat .mc-node{ transform-box:view-box; transform-origin:60px 66px; transform:translateY(var(--mc-low-y)) scale(.75); transition:transform .22s; }
.oa-moyu-cat .mc-ear-l{ transform-box:fill-box; transform-origin:80% 100%; }
.oa-moyu-cat .mc-ear-r{ transform-box:fill-box; transform-origin:20% 100%; }
.oa-moyu-cat .mc-eye-happy{ opacity:0; transition:opacity .16s; }
.oa-moyu-cat .mc-eye-idle{ opacity:1; transition:opacity .16s; }
.oa-moyu-cat .mc-screen{ transition:filter .2s; }
/* 悬停：猫睁眼笑、耳朵抖、身体前倾、笔记本屏幕亮起 */
.oa-ai-fab:hover .mc-eye-idle{ opacity:0; }
.oa-ai-fab:hover .mc-eye-happy{ opacity:1; }
.oa-ai-fab:hover .mc-head{ transform:rotate(-4deg) translateY(-1.5px); }
.oa-ai-fab:hover .mc-cloud,.oa-ai-fab:hover .mc-node{ transform:translateY(calc(var(--mc-low-y) - 1px)) scale(.75); }
.oa-ai-fab:hover .mc-laptop{ transform:translateY(calc(var(--mc-low-y) - 2px)) scale(.75); }
.oa-ai-fab:hover .mc-screen{ filter:drop-shadow(0 0 4px #4FD0F0) brightness(1.4); }
.oa-ai-fab:hover .mc-ear-l{ animation:mc-ear-wiggle-l .5s ease-in-out; }
.oa-ai-fab:hover .mc-ear-r{ animation:mc-ear-wiggle-r .5s ease-in-out; }
@keyframes mc-ear-wiggle-l{ 0%,100%{ transform:rotate(0); } 35%{ transform:rotate(-11deg); } 70%{ transform:rotate(5deg); } }
@keyframes mc-ear-wiggle-r{ 0%,100%{ transform:rotate(0); } 35%{ transform:rotate(11deg); } 70%{ transform:rotate(-5deg); } }
.oa-ai-fab-label{ position:absolute; right:0; bottom:calc(100% + 9px); padding:5px 11px; border:1px solid rgba(56,189,248,.55); border-radius:999px; background:#fff; color:#0B3A63; font-size:12px; font-weight:600; line-height:1.2; letter-spacing:.2px; white-space:nowrap; pointer-events:none; box-shadow:0 6px 18px -8px rgba(11,27,63,.5); animation:oa-ai-label-nudge 12s ease-in-out infinite; transition:color .18s, border-color .18s; }
.oa-ai-fab-label::after{ content:""; position:absolute; right:30px; top:100%; width:7px; height:7px; background:#fff; border-right:1px solid rgba(56,189,248,.55); border-bottom:1px solid rgba(56,189,248,.55); transform:translateY(-4px) rotate(45deg); }
.oa-ai-fab:hover .oa-ai-fab-label{ color:#0284C7; border-color:#38BDF8; }
@keyframes oa-ai-label-nudge{ 0%,84%,100%{ transform:translateY(0); } 88%{ transform:translateY(-4px); } 92%{ transform:translateY(0); } 96%{ transform:translateY(-2px); } }
/* 摸鱼猫：偶尔弹跳一下（跳起时轻微拉伸、落地时轻微压扁） */
@keyframes oa-ai-fab-idle{ 0%,82%,100%{ translate:0 0; scale:1 1; } 86%{ translate:0 -9px; scale:.96 1.05; } 90%{ translate:0 0; scale:1.06 .94; } 93%{ translate:0 0; scale:.98 1.02; } 96%{ translate:0 0; scale:1 1; } }
.oa-ai-fab{ animation:oa-ai-fab-idle 9s ease-in-out infinite; }
.oa-ai-fab:hover{ transform:translateY(-3px) scale(1.05); filter:drop-shadow(0 13px 18px rgba(8,24,54,.26)) drop-shadow(0 0 10px rgba(56,189,248,.5)); }
/* 拖动中：冻结弹跳与悬停位移，避免球跟着动画抖动 */
.oa-ai-fab.oa-ai-fab-dragging,.oa-ai-fab.oa-ai-fab-dragging:hover{ animation:none; transform:none; filter:drop-shadow(0 12px 18px rgba(8,24,54,.3)); cursor:grabbing; z-index:710; }
.oa-ai-fab.oa-ai-fab-dragging .oa-ai-fab-label{ animation:none; opacity:0; }
@media (prefers-reduced-motion: reduce){ .oa-ai-fab,.oa-ai-fab-label,.oa-moyu-cat .mc-ear-l,.oa-moyu-cat .mc-ear-r{ animation:none; } }
.oa-ai-dot{ position:absolute; top:8px; right:8px; width:10px; height:10px; border-radius:50%; background:#22D3EE; border:2px solid #fff; box-shadow:0 0 0 1px rgba(56,189,248,.5); z-index:2; }
.oa-ai-panel{ position:fixed; right:22px; bottom:88px; z-index:700; width:380px; height:min(560px,calc(100vh - 120px)); display:flex; flex-direction:column; background:#fff; border:1px solid #CBE6FA; border-radius:16px; box-shadow:0 20px 50px -18px rgba(11,27,63,.4),var(--shadow-lg); overflow:hidden; animation:aiIn .18s ease-out; }
@keyframes aiIn{ from{ opacity:0; transform:translateY(8px) scale(.98); } to{ opacity:1; transform:none; } }
.oa-ai-hd{ position:relative; display:flex; align-items:center; gap:10px; padding:12px 14px; background:#0B1B3F; color:#fff; flex:0 0 auto; overflow:hidden; }
.oa-ai-hd::after{ content:""; position:absolute; right:44px; top:-26px; width:130px; height:90px; border:1px solid rgba(56,189,248,.16); border-radius:50%; transform:rotate(-28deg); pointer-events:none; }
.oa-ai-orb{ position:relative; width:36px; height:36px; flex:0 0 36px; }
.oa-ai-orb i{ position:absolute; left:3px; top:12px; width:30px; height:12px; border:1.4px solid #38BDF8; border-radius:50%; }
.oa-ai-orb i:first-child{ transform:rotate(-32deg); }
.oa-ai-orb i:nth-child(2){ transform:rotate(32deg); }
.oa-ai-orb b{ position:absolute; left:13px; top:13px; width:10px; height:10px; border-radius:50%; background:#22D3EE; box-shadow:0 0 0 3px rgba(34,211,238,.2); }
.oa-ai-orb::after{ content:""; position:absolute; left:9px; top:9px; width:18px; height:18px; border:1px solid rgba(34,211,238,.35); border-radius:50%; }
.oa-ai-ttl{ flex:1; min-width:0; display:flex; flex-direction:column; line-height:1.35; position:relative; z-index:1; }
.oa-ai-ttl b{ font-size:14px; }
.oa-ai-ttl span{ font-size:11px; color:#8DD9F5; }
.oa-ai-x{ width:28px; height:28px; border-radius:8px; color:#fff; font-size:14px; display:flex; align-items:center; justify-content:center; position:relative; z-index:1; }
.oa-ai-x:hover{ background:rgba(56,189,248,.18); }
.oa-ai-body{ flex:1; min-height:0; overflow-y:auto; padding:14px; background:#F6FAFF; display:flex; flex-direction:column; gap:10px; }
.oa-ai-msg{ display:flex; flex-direction:column; align-items:flex-start; }
.oa-ai-msg.me{ align-items:flex-end; }
.oa-ai-bub{ max-width:88%; padding:9px 12px; border-radius:12px 12px 12px 3px; background:#fff; border:1px solid #D6E9FA; font-size:13px; line-height:1.75; color:var(--ink2); word-break:break-word; }
.oa-ai-msg.me .oa-ai-bub{ background:#0B1B3F; color:#E6F6FF; border-color:#0B1B3F; border-radius:12px 12px 3px 12px; }
.oa-ai-src{ font-size:10.5px; color:var(--muted); margin-top:3px; padding-left:2px; }
.oa-ai-related{ max-width:92%; display:flex; flex-wrap:wrap; gap:5px; align-items:center; margin-top:6px; }
.oa-ai-related span{ font-size:10.5px; color:var(--muted); }
.oa-ai-related button{ border:1px solid #CBE6FA; background:#F0F9FF; color:#0C6EA8; border-radius:999px; padding:3px 9px; font-size:10.5px; }
.oa-ai-related button:hover{ background:#E0F2FE; }
.oa-ai-quick{ display:flex; gap:6px; overflow-x:auto; padding:8px 12px 4px; flex:0 0 auto; scrollbar-width:none; background:#fff; }
.oa-ai-quick::-webkit-scrollbar{ display:none; }
.oa-ai-quick button{ flex:0 0 auto; border:1px solid #D6E9FA; background:#F8FCFF; color:#0C6EA8; border-radius:999px; padding:4px 10px; font-size:11.5px; }
.oa-ai-quick button:hover{ background:#E0F2FE; border-color:#9BD8F5; }
.oa-ai-cs{ margin:4px 12px 0; padding:7px 10px; border-radius:9px; background:var(--violet-soft); color:var(--violet); font-size:11.5px; cursor:pointer; flex:0 0 auto; display:flex; align-items:center; gap:4px; }
.oa-ai-cs b{ color:#5B21B6; cursor:pointer; }
.oa-ai-cs span{ margin-left:auto; opacity:.75; font-size:10.5px; cursor:pointer; }
.oa-ai-cs b:hover,.oa-ai-cs span:hover{ text-decoration:underline; }
.oa-ai-form{ display:flex; gap:8px; align-items:flex-end; padding:10px 12px 12px; flex:0 0 auto; border-top:1px solid var(--line); }
.oa-ai-form textarea{ flex:1; min-width:0; resize:none; border:1px solid var(--line); border-radius:10px; padding:8px 10px; font-size:13px; line-height:1.5; max-height:96px; }
.oa-ai-form textarea:focus{ outline:none; border-color:var(--primary); box-shadow:0 0 0 3px rgba(37,99,235,.1); }
.oa-ai-form .btn{ height:34px; padding:0 14px; }
.oa-ai-form .btn:disabled{ opacity:.55; cursor:not-allowed; }

@media (max-width: 760px){
  .hp-hero{ flex-direction:column; align-items:stretch; padding:18px; }
  .hp-hero-r{ width:100%; flex:none; border-left:none; border-top:1px solid var(--line); display:flex; align-items:center; gap:12px; text-align:left; flex-wrap:wrap; }
  .hp-bot{ width:42px; height:42px; font-size:22px; margin:0; border-radius:12px; }
  .hp-bot-s{ margin:0; }
  .hp-search .input{ min-width:0; width:100%; }
  .hp-grid{ grid-template-columns:1fr; }
  .oa-ai-panel{ right:12px; left:12px; width:auto; bottom:78px; height:min(560px,calc(100vh - 100px)); }
  .oa-ai-fab{ right:14px; bottom:14px; width:50px; height:50px; }
}
