.ai-service-widget {
    position: fixed;
    right: 28px;
    bottom: 400px;
    z-index: 99999;
    font-family: Arial, "Microsoft YaHei", sans-serif;
  }

  .ai-robot-btn {
    width: 92px;
    height: 92px;
    border: none;
    background: transparent;
    cursor: pointer;
    position: relative;
    padding: 0;
    animation: aiFloat 3s ease-in-out infinite;
  }

  .ai-robot-btn::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 210, 255, .35), rgba(111, 76, 255, .08) 60%, transparent 72%);
    filter: blur(5px);
    animation: aiGlow 2s ease-in-out infinite alternate;
  }

  .ai-robot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 70px;
    height: 82px;
    transform: translate(-50%, -50%);
  }

  .ai-head {
    position: absolute;
    left: 50%;
    top: 6px;
    width: 64px;
    height: 48px;
    transform: translateX(-50%);
    border-radius: 28px 28px 22px 22px;
    background: linear-gradient(145deg, #ffffff, #dce8ff);
    box-shadow:
      inset -5px -5px 10px rgba(0,0,0,.08),
      inset 4px 4px 10px rgba(255,255,255,.85),
      0 8px 22px rgba(0, 137, 255, .32);
  }

  .ai-face {
    position: absolute;
    left: 50%;
    top: 12px;
    width: 48px;
    height: 26px;
    transform: translateX(-50%);
    border-radius: 15px;
    background: linear-gradient(180deg, #071224, #0b2345);
    box-shadow:
      inset 0 0 8px rgba(0, 220, 255, .45),
      0 0 10px rgba(0, 220, 255, .45);
    overflow: hidden;
  }

  .ai-face::after {
    content: "";
    position: absolute;
    left: -50%;
    top: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
    animation: aiScan 2.6s linear infinite;
  }

  .ai-eye {
    position: absolute;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #37e8ff;
    box-shadow: 0 0 8px #37e8ff;
    animation: aiBlink 4s infinite;
  }

  .ai-eye-left {
    left: 12px;
  }

  .ai-eye-right {
    right: 12px;
  }

  .ai-mouth {
    position: absolute;
    left: 50%;
    bottom: 5px;
    width: 18px;
    height: 8px;
    transform: translateX(-50%);
    border-bottom: 3px solid #37e8ff;
    border-radius: 0 0 18px 18px;
    filter: drop-shadow(0 0 5px #37e8ff);
  }

  .ai-ear {
    position: absolute;
    top: 15px;
    width: 13px;
    height: 20px;
    border-radius: 10px;
    background: linear-gradient(145deg, #1b2944, #6176a0);
    box-shadow: 0 0 10px rgba(0, 221, 255, .5);
  }

  .ai-ear::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: #38e8ff;
    box-shadow: 0 0 10px #38e8ff;
    animation: aiPulse 1.6s ease-in-out infinite;
  }

  .ai-ear-left {
    left: -6px;
  }

  .ai-ear-right {
    right: -6px;
  }

  .ai-mic {
    position: absolute;
    right: -13px;
    top: 30px;
    width: 22px;
    height: 16px;
    border-right: 3px solid #23324d;
    border-bottom: 3px solid #23324d;
    border-radius: 0 0 14px 0;
  }

  .ai-mic::after {
    content: "";
    position: absolute;
    right: -5px;
    bottom: -6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #38e8ff;
    box-shadow: 0 0 10px #38e8ff;
  }

  .ai-antenna {
    position: absolute;
    left: 50%;
    top: -4px;
    width: 2px;
    height: 15px;
    transform: translateX(-50%);
    background: #8da3c9;
    z-index: 2;
  }

  .ai-antenna span {
    position: absolute;
    left: 50%;
    top: -8px;
    width: 10px;
    height: 10px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: #45f2ff;
    box-shadow: 0 0 14px #45f2ff;
    animation: aiPulse 1.4s infinite;
  }

  .ai-body {
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 42px;
    height: 38px;
    transform: translateX(-50%);
    border-radius: 22px 22px 26px 26px;
    background: linear-gradient(145deg, #ffffff, #cfdcff);
    box-shadow:
      inset -4px -4px 8px rgba(0,0,0,.08),
      inset 4px 4px 10px rgba(255,255,255,.8),
      0 7px 18px rgba(0, 137, 255, .28);
  }

  .ai-body::before,
  .ai-body::after {
    content: "";
    position: absolute;
    top: 10px;
    width: 13px;
    height: 20px;
    border-radius: 10px;
    background: linear-gradient(145deg, #dce8ff, #758ab8);
  }

  .ai-body::before {
    left: -11px;
    transform-origin: top right;
    animation: aiArmLeft 2.2s ease-in-out infinite;
  }

  .ai-body::after {
    right: -11px;
    transform-origin: top left;
    animation: aiArmRight 2.2s ease-in-out infinite;
  }

  .ai-core {
    position: absolute;
    left: 50%;
    top: 11px;
    width: 16px;
    height: 16px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: #23324d;
    border: 3px solid #38e8ff;
    box-shadow: 0 0 12px #38e8ff;
    animation: aiPulse 1.4s infinite;
  }

  .ai-orbit {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 96px;
    height: 96px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(66, 232, 255, .35);
    box-shadow: 0 0 14px rgba(66, 232, 255, .45);
    animation: aiRotate 4s linear infinite;
  }

  .ai-orbit::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -4px;
    width: 8px;
    height: 8px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: #47f2ff;
    box-shadow: 0 0 12px #47f2ff;
  }

  .ai-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #45f2ff;
    box-shadow: 0 0 10px #45f2ff;
    opacity: .9;
  }

  .p1 {
    left: 9px;
    top: 20px;
    animation: aiParticle 2.8s ease-in-out infinite;
  }

  .p2 {
    right: 8px;
    top: 28px;
    animation: aiParticle 3.2s ease-in-out infinite .4s;
  }

  .p3 {
    left: 18px;
    bottom: 8px;
    animation: aiParticle 2.6s ease-in-out infinite .8s;
  }

  .p4 {
    right: 22px;
    bottom: 3px;
    animation: aiParticle 3s ease-in-out infinite 1.1s;
  }

  .ai-service-tip {
    position: absolute;
    right: 6px;
    bottom: 102px;
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #fff;
    font-size: 14px;
    white-space: nowrap;
    background: linear-gradient(135deg, #078bff, #7a4dff);
    box-shadow: 0 8px 20px rgba(19, 98, 255, .32);
    animation: aiTip 2.6s ease-in-out infinite;
  }

  .ai-service-tip i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fff;
    animation: aiDot 1.2s infinite;
  }

  .ai-service-tip i:nth-child(3) {
    animation-delay: .15s;
  }

  .ai-service-tip i:nth-child(4) {
    animation-delay: .3s;
  }

  .ai-chat-panel {
    position: absolute;
    right: 0;
    bottom: 112px;
    width: 260px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 45px rgba(15, 40, 90, .22);
    overflow: hidden;
    transform: translateY(15px) scale(.95);
    opacity: 0;
    pointer-events: none;
    transition: .3s ease;
  }

  .ai-chat-panel.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
  }

  .ai-chat-header {
    height: 48px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    background: linear-gradient(135deg, #078bff, #7a4dff);
  }

  .ai-chat-header button {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
  }

  .ai-chat-body {
    padding: 15px;
    color: #334;
    font-size: 14px;
    line-height: 1.7;
    background: linear-gradient(180deg, #f8fbff, #fff);
  }

  .ai-chat-body p {
    margin: 0 0 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #eef6ff;
  }

  .ai-chat-actions {
    padding: 12px;
    display: grid;
    gap: 8px;
  }

  .ai-chat-actions button {
    height: 34px;
    border: 1px solid #d8e8ff;
    border-radius: 10px;
    background: #fff;
    color: #1677ff;
    cursor: pointer;
    transition: .2s;
  }

  .ai-chat-actions button:hover {
    background: #1677ff;
    color: #fff;
  }

  @keyframes aiFloat {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-10px);
    }
  }

  @keyframes aiGlow {
    from {
      opacity: .6;
      transform: scale(.96);
    }
    to {
      opacity: 1;
      transform: scale(1.08);
    }
  }

  @keyframes aiBlink {
    0%, 88%, 100% {
      transform: scaleY(1);
    }
    92%, 96% {
      transform: scaleY(.12);
    }
  }

  @keyframes aiPulse {
    0%, 100% {
      opacity: .7;
      transform: scale(.92);
    }
    50% {
      opacity: 1;
      transform: scale(1.12);
    }
  }

  @keyframes aiScan {
    0% {
      left: -50%;
    }
    100% {
      left: 120%;
    }
  }

  @keyframes aiRotate {
    from {
      transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
      transform: translate(-50%, -50%) rotate(360deg);
    }
  }

  @keyframes aiParticle {
    0%, 100% {
      transform: translate(0, 0) scale(.8);
      opacity: .3;
    }
    50% {
      transform: translate(6px, -12px) scale(1.2);
      opacity: 1;
    }
  }

  @keyframes aiArmLeft {
    0%, 100% {
      transform: rotate(8deg);
    }
    50% {
      transform: rotate(-12deg);
    }
  }

  @keyframes aiArmRight {
    0%, 100% {
      transform: rotate(-8deg);
    }
    50% {
      transform: rotate(12deg);
    }
  }

  @keyframes aiTip {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-5px);
    }
  }

  @keyframes aiDot {
    0%, 80%, 100% {
      opacity: .3;
      transform: translateY(0);
    }
    40% {
      opacity: 1;
      transform: translateY(-3px);
    }
  }

  @media (max-width: 768px) {
    .ai-service-widget {
      right: 16px;
      bottom: 450px;
    }

    .ai-robot-btn {
      width: 78px;
      height: 78px;
    }

    .ai-robot {
      transform: translate(-50%, -50%) scale(.86);
    }

    .ai-chat-panel {
      width: 240px;
      bottom: 96px;
    }

    .ai-service-tip {
      bottom: 88px;
      font-size: 13px;
    }
  }