.pet-config,.pet-widget{font-family:Arial,Microsoft YaHei,sans-serif;color:#26324b;box-sizing:border-box}.pet-config *,.pet-widget *{box-sizing:border-box}.pet-widget{width:100%;max-width:420px;margin:auto;padding:16px;background:transparent}.pet-stage{position:relative;height:230px;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:20px;background:linear-gradient(145deg,#f5f2ff99,#e9f0ff55)}.pet-art{width:90%;height:88%;object-fit:contain;transform-origin:50% 85%}.pet-model{width:100%;height:100%}.pet-model canvas{display:block}.pet-touch{position:absolute;inset:0;width:100%;height:100%;border:0;background:transparent!important;color:transparent!important;cursor:pointer;border-radius:20px}.pet-touch:focus-visible{outline:3px solid #7864df;outline-offset:-4px}.pet-motion-bounce .pet-art{animation:pet-breathe 2.4s ease-in-out infinite}.pet-motion-sway .pet-art{animation:pet-sway 2.4s ease-in-out infinite}.pet-state-greet .pet-art{animation:pet-jump .65s ease-in-out infinite}.pet-state-thinking .pet-art{animation:pet-sway 3s ease-in-out infinite}.pet-state-talking .pet-art{animation:pet-talk .45s ease-in-out infinite}.pet-caption{display:flex;align-items:center;justify-content:space-between;padding:12px 4px}.pet-caption button,.pet-chat button{border:0;border-radius:9px;padding:8px 12px;background:#6858d8;color:white;cursor:pointer}.pet-chat{background:white;border:1px solid #e1e5f0;border-radius:16px;box-shadow:0 6px 25px #31325312;padding:14px}.pet-chat header{display:flex;justify-content:space-between;align-items:center}.pet-chat header button{background:#f0edff;color:#6351bd;padding:3px 9px;font-size:20px}.pet-messages{height:150px;overflow:auto;padding:8px 0;font-size:13px;line-height:1.6}.pet-message{white-space:pre-wrap;overflow-wrap:anywhere;background:#f3f2f9;border-radius:12px;padding:9px 12px;margin:7px 0;max-width:92%}.pet-message.user{margin-left:auto;background:#eae5ff}.pet-chat form{display:flex;gap:8px}.pet-chat input{min-width:0;flex:1;border:1px solid #dfe1ec;border-radius:8px;padding:10px;font:inherit;font-size:13px}.pet-chat button:disabled{opacity:.5;cursor:default}.pet-chat small{display:block;font-size:10px;color:#85849c;margin-top:8px}.pet-error{font-size:12px;color:#b74343;line-height:1.5}.pet-config{display:grid;grid-template-columns:1fr 1fr;gap:24px;max-height:75vh;overflow:auto;padding:4px}.pet-config .ip-form{min-width:0}.pet-config input,.pet-config select,.pet-config textarea{width:100%;border:1px solid #dce0ed;border-radius:8px;padding:10px;font:inherit}.pet-config label{display:grid;gap:7px;font-size:13px}.pet-config button{border:1px solid #dce0ed;border-radius:8px;padding:9px 12px;cursor:pointer;background:white}.pet-config button:disabled{opacity:.5;cursor:default}.pet-config .pet-primary{background:#6858d8;color:white}.pet-config .pet-check{display:flex;align-items:center;gap:8px}.pet-config .pet-check input{width:auto}.pet-state-buttons{display:flex;flex-wrap:wrap;gap:7px}.pet-state-buttons button[aria-pressed=true]{background:#eee9ff;border-color:#8473db}.pet-config p{font-size:12px;line-height:1.7;color:#78819a}.pet-config code,.pet-link{word-break:break-all}.pet-config code{white-space:pre-wrap;font-size:11px}.pet-config .pet-pose{display:flex;flex-direction:column;gap:8px;padding:10px;border:1px dashed #c6c0e1;border-radius:9px}.pet-pose img{height:70px;object-fit:contain}.pet-config-dialog{max-width:880px!important}.pet-config-status{font-size:12px;color:#5b4fa8}.pet-embed-page{min-height:100vh;background:transparent;padding:0}@keyframes pet-breathe{50%{transform:translateY(-5px) scale(1.015)}}@keyframes pet-sway{25%{transform:rotate(-4deg)}75%{transform:rotate(4deg)}}@keyframes pet-jump{50%{transform:translateY(-22px) scale(1.03)}}@keyframes pet-talk{50%{transform:scale(1.025,.985)}}@media(prefers-reduced-motion:reduce){.pet-art{animation:none!important}}@media(max-width:650px){.pet-config{grid-template-columns:1fr}.pet-stage{height:200px}}body:has(.pet-embed-page),html:has(.pet-embed-page){background:transparent!important;margin:0;min-height:0}.pet-widget .pet-stage{background:transparent}.pet-widget.pet-compact{width:100%;max-width:none;height:100dvh;margin:0;padding:0;display:flex;flex-direction:column;overflow:hidden;background:transparent}.pet-compact .pet-stage{height:auto;min-height:0;flex:1;border-radius:0}.pet-compact .pet-caption{flex:0 0 28px;min-height:28px;padding:0 6px;gap:5px;font-size:11px}.pet-compact .pet-caption strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pet-compact .pet-caption button{font-size:10px;padding:3px 7px;white-space:nowrap}.pet-compact.pet-chat-open .pet-stage{flex:0 0 clamp(90px,32dvh,160px)}.pet-compact .pet-chat{flex:1;min-height:0;display:flex;flex-direction:column;padding:10px;border-radius:12px}.pet-compact .pet-chat header{flex-shrink:0;font-size:12px}.pet-compact .pet-messages{flex:1;min-height:35px;height:auto;font-size:12px}.pet-compact .pet-chat form{flex-shrink:0;gap:5px}.pet-compact .pet-chat input{padding:7px;font-size:12px}.pet-compact .pet-chat form button{padding:7px 9px;font-size:12px}.pet-voice-help{font-size:12px;line-height:1.6;color:#78819a}.pet-voice-controls{display:grid;gap:6px;margin:8px 0;flex-shrink:0}.pet-voice-controls>button{justify-self:start;font-size:11px;padding:5px 8px}.pet-voice-controls p{margin:0;font-size:11px;line-height:1.5;color:#78819a}.pet-voice-controls audio{width:100%;height:32px}.pet-config .pet-check input[type=checkbox]{width:16px;min-width:16px;height:16px;padding:0;flex:0 0 16px}.pet-config-dialog [data-slot=dialog-title]{font-size:20px;line-height:1.4}.pet-config-dialog [data-slot=dialog-description]{font-size:13px;line-height:1.7}.pet-detail-page{max-width:1400px;margin:0 auto}.pet-detail-header{padding:24px;background:white;border:1px solid #e1e5f0;border-radius:16px;margin-bottom:24px}.pet-detail-header h1{font-size:26px;margin:18px 0 8px}.pet-detail-header p{color:#78819a;font-size:13px;line-height:1.7}.pet-detail-header button{padding:9px 14px;border:1px solid #dce0ed;background:white;border-radius:8px;cursor:pointer}.pet-detail-header dl{display:flex;gap:32px;flex-wrap:wrap;margin:24px 0}.pet-detail-header dt{font-size:12px;color:#78819a}.pet-detail-header dd{margin:6px 0 0;font-size:14px}.pet-detail-page .pet-config{max-height:none;overflow:visible;padding:24px;background:white;border:1px solid #e1e5f0;border-radius:16px;gap:32px;align-items:start}.pet-detail-page .pet-stage{height:400px}.pet-detail-page .pet-config>.ip-form{gap:16px}.pet-detail-page .pet-config>.ip-form:nth-child(2){position:sticky;top:24px}@media(max-width:900px){.pet-detail-page .pet-config{grid-template-columns:1fr}.pet-detail-page .pet-config>.ip-form:nth-child(2){position:static}.pet-detail-page .pet-stage{height:300px}}.pet-stage.pet-motion-still canvas.pet-art{animation:none!important}.pet-stage .pet-model-touch{inset:auto 12px 12px auto;width:auto;height:32px;padding:5px 12px;color:#6654d9!important;background:white!important;border:1px solid #ddd7f4;border-radius:8px;font-size:12px}