/* 小阳智能助手 · 浮窗样式（GSS www，2026-11-14） */
.sunny { position: fixed; right: 24px; bottom: 24px; z-index: 2000; width: max-content; max-width: calc(100vw - 16px); font-size: 14px; color: #1e293b; pointer-events: none; }
.sunny [hidden] { display: none !important; }
.sunny.is-dragging, .sunny.is-dragging * { user-select: none; cursor: grabbing !important; }
.sunny-fab { position: relative; display: flex; align-items: center; gap: 8px; border: 0; border-radius: 28px; padding: 6px 16px 6px 6px; background: #fff; box-shadow: 0 8px 24px rgba(15,23,42,.18); cursor: grab; font-weight: 600; color: #142b64; pointer-events: auto; animation: sunny-float 3.2s ease-in-out infinite; }
.sunny-fab:hover { box-shadow: 0 10px 28px rgba(240,122,26,.35); animation-play-state: paused; }
.sunny-fab-ring { position: absolute; left: 6px; top: 6px; width: 44px; height: 44px; border-radius: 50%; background: rgba(240,122,26,.45); animation: sunny-breathe 2.4s ease-out infinite; pointer-events: none; }
.sunny-fab-ring.r2 { animation-delay: 1.2s; } .sunny-fab-avatar { position: relative; display: flex; animation: sunny-glow 2.4s ease-in-out infinite; border-radius: 50%; }
.sunny-fab-label { display: inline-flex; align-items: center; gap: 6px; } .sunny-fab-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: sunny-dot-pulse 1.6s ease-out infinite; }
@keyframes sunny-breathe { 0% { transform: scale(1); opacity: .55; } 70%,100% { transform: scale(1.75); opacity: 0; } }
@keyframes sunny-glow { 0%,100% { transform: scale(1); } 50% { box-shadow: 0 0 14px 2px rgba(240,122,26,.55); transform: scale(1.06); } }
@keyframes sunny-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes sunny-dot-pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.6); } 80%,100% { box-shadow: 0 0 0 7px rgba(34,197,94,0); } }
.sunny-greet { position: absolute; right: 0; bottom: calc(100% + 14px); width: 272px; max-width: calc(100vw - 32px); box-sizing: border-box; padding: 14px 34px 12px 16px; border-radius: 16px 16px 4px 16px; background: linear-gradient(135deg,#fff,#fff7ef); color: #142b64; box-shadow: 0 12px 32px rgba(15,23,42,.18),0 0 0 1px rgba(240,122,26,.18); line-height: 1.6; cursor: pointer; pointer-events: auto; }
.sunny-greet::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg,#f7a35c,#f07a1a); } .sunny-greet::after { content: ""; position: absolute; right: 26px; bottom: -7px; width: 14px; height: 14px; transform: rotate(45deg); background: #fff7ef; }
.sunny-greet.is-left { right: auto; left: 0; border-radius: 16px 16px 16px 4px; } .sunny-greet.is-left::after { right: auto; left: 26px; } .sunny-greet.is-below { bottom: auto; top: calc(100% + 14px); border-radius: 4px 16px 16px 16px; } .sunny-greet.is-below::after { bottom: auto; top: -7px; }
.sunny-greet-ch { display: inline-block; white-space: pre; animation: sunny-ch .32s both; } .sunny-greet-ch.hl { color: #f07a1a; font-weight: 700; } .sunny-greet-caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: #f07a1a; animation: sunny-caret .8s steps(1) infinite; }
@keyframes sunny-ch { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } } @keyframes sunny-caret { 50% { opacity: 0; } }
.sunny-greet-text { margin: 0; min-height: 1.6em; } .sunny-greet-btns { display: flex; gap: 8px; margin-top: 10px; opacity: 0; pointer-events: none; } .sunny-greet-btns.on { opacity: 1; pointer-events: auto; } .sunny-greet-btns button { border: 0; border-radius: 999px; padding: 5px 14px; font-weight: 600; cursor: pointer; } .ok { background: linear-gradient(135deg,#f7a35c,#f07a1a); color: #fff; } .later { background: #eef2f7; color: #475569; }
.sunny-greet-x { position: absolute; right: 8px; top: 6px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: transparent; color: #94a3b8; cursor: pointer; } .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sunny-panel { position: relative; width: 380px; height: min(620px,calc(100vh - 48px)); display: flex; flex-direction: column; background: #fff; border-radius: 16px; box-shadow: 0 16px 48px rgba(15,23,42,.22); overflow: hidden; pointer-events: auto; }
.sunny-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: linear-gradient(135deg,#142b64,#1f3f8f); color: #fff; cursor: grab; user-select: none; } .sunny-title { flex: 1; display: flex; flex-direction: column; line-height: 1.25; } .sunny-title small { opacity: .75; font-size: 12px; } .sunny-icon { border: 0; background: transparent; color: #fff; cursor: pointer; opacity: .8; padding: 4px 6px; font-size: 16px; }
.sunny.is-open.is-max { right: 0 !important; bottom: 0 !important; width: 100vw; max-width: none; } .sunny.is-open.is-max .sunny-panel { width: 100vw !important; height: 100vh !important; border-radius: 0; } .sunny.is-max .sunny-head { cursor: default; }
.sunny-rs { position: absolute; z-index: 4; } .rs-n,.rs-s { left: 14px; right: 14px; height: 6px; cursor: ns-resize; } .rs-n { top: 0; } .rs-s { bottom: 0; } .rs-e,.rs-w { top: 14px; bottom: 14px; width: 6px; cursor: ew-resize; } .rs-e { right: 0; } .rs-w { left: 0; } .rs-nw,.rs-ne,.rs-sw,.rs-se { width: 14px; height: 14px; } .rs-nw { left: 0; top: 0; cursor: nwse-resize; } .rs-se { right: 0; bottom: 0; cursor: nwse-resize; } .rs-ne { right: 0; top: 0; cursor: nesw-resize; } .rs-sw { left: 0; bottom: 0; cursor: nesw-resize; }
.sunny-list { flex: 1; overflow: auto; padding: 14px; background: #f8fafc; } .sunny-msg { display: flex; gap: 8px; margin-bottom: 12px; align-items: flex-start; } .from-user { justify-content: flex-end; } .sunny-bubble { max-width: 86%; background: #fff; border: 1px solid #e5eaf2; border-radius: 12px; padding: 9px 12px; line-height: 1.55; word-break: break-word; } .from-user .sunny-bubble { background: #142b64; color: #fff; border-color: #142b64; }
.sunny-file-chip { display: flex; align-items: center; gap: 6px; font-size: 12.5px; padding-bottom: 4px; } .sunny-file-chip b { word-break: break-all; } .sunny-file-chip small { opacity: .75; }
.sunny-price,.sunny-rfq,.sunny-history { margin-top: 8px; } .sunny-price-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; color: #64748b; margin-bottom: 4px; } .sunny-price-head b { color: #142b64; font-size: 13px; } .sunny-price-head em { font-style: normal; padding: 0 6px; border-radius: 8px; font-size: 11px; } .basis-list { background: #fff4e5; color: #b45309; } .basis-exact { background: #e8f5ee; color: #047857; } .basis-reference { background: #fef3c7; color: #92400e; } .basis-contract { background: #dcfce7; color: #166534; }
.sunny-price table,.sunny-rfq table { width: 100%; border-collapse: collapse; font-size: 12.5px; } .sunny-price th { text-align: left; color: #64748b; border-bottom: 1px solid #e5eaf2; padding: 4px; } .sunny-price td { padding: 5px 4px; border-bottom: 1px dashed #eef2f7; white-space: nowrap; } .sunny-price tr.focus td { background: #fff4e8; } .sunny-price td.rounded,.sunny-multi td.rounded { color: #b45309; font-weight: 600; }
.sunny-rfq hr { border: 0; border-top: 1px solid #e5eaf2; margin: 10px 0; } .sunny-rfq-title { font-weight: 700; color: #0f172a; margin-bottom: 8px; } .sunny-rfq-wrap { overflow: auto; border: 1px solid #e2e8f0; border-radius: 10px; } .sunny-rfq th { background: #0a2540; color: #fff; text-align: left; padding: 8px 10px; text-transform: uppercase; font-size: 11.5px; white-space: nowrap; } .sunny-rfq td { padding: 8px 10px; border-top: 1px solid #edf1f6; vertical-align: top; } .sunny-rfq td.k { font-weight: 700; white-space: nowrap; } .sunny-rfq-notes ul { margin: 4px 0 0; padding-left: 18px; }
.sunny-multi td.addr { white-space: normal; min-width: 160px; } .sunny-multi tr.muted td { color: #94a3b8; } .sunny-multi td.why { color: #b45309; white-space: normal; } .sunny-multi td.edited { background: #fde68a; } .sunny-multi td.edited b::after { content: " ✎"; color: #92400e; font-weight: 400; }
.sunny-history-title { font-size: 12px; color: #64748b; font-weight: 600; } .sunny-history-row { margin-top: 6px; border: 1px solid #e5eaf2; border-radius: 10px; padding: 6px 8px; background: #f8fafc; font-size: 12px; } .sunny-history-row .r1,.sunny-history-row .r3 { display: flex; justify-content: space-between; gap: 6px; flex-wrap: wrap; } .sunny-history-row .r2 { color: #142b64; font-weight: 600; margin: 2px 0; } .sunny-history-no { color: #1677ff; font-size: 11.5px; text-decoration: none; }
.sunny-actions,.sunny-fb,.sunny-chips,.sunny-lead .row { display: flex; flex-wrap: wrap; gap: 6px; } .sunny-actions { margin-top: 8px; } .sunny-lead .row { justify-content: flex-end; }
.primary { background: #f07a1a; color: #fff; border: 0; border-radius: 14px; padding: 5px 12px; cursor: pointer; font-size: 12.5px; } .ghost { background: #fff; color: #142b64; border: 1px solid #cbd5e1; border-radius: 14px; padding: 4px 12px; text-decoration: none; cursor: pointer; font-size: 12.5px; }
.sunny-fb { margin-top: 6px; } .sunny-fb button { border: 0; background: transparent; opacity: .45; cursor: pointer; } .sunny-fb button.on { opacity: 1; }
.sunny-staff-avatar { width: 26px; height: 26px; border-radius: 50%; background: #0f766e; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; } .from-staff .sunny-bubble { background: #f0fdfa; border-color: #99f6e4; } .sunny-staff-head { font-size: 11.5px; color: #0f766e; font-weight: 600; } .sunny-staff-note { margin-top: 4px; font-size: 11.5px; color: #b45309; }
.sunny-typing { display: flex; gap: 4px; padding: 4px 0; } .sunny-typing i { width: 6px; height: 6px; border-radius: 50%; background: #94a3b8; animation: sunny-dot 1s infinite; } .sunny-typing i:nth-child(2) { animation-delay: .15s; } .sunny-typing i:nth-child(3) { animation-delay: .3s; } @keyframes sunny-dot { 40% { transform: translateY(-3px); } }
.sunny-progress { min-width: 220px; } .sunny-progress-text { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; } .sunny-progress-bar { height: 8px; border-radius: 4px; background: #eef2f7; overflow: hidden; } .sunny-progress-bar i { display: block; height: 100%; width: 8%; background: linear-gradient(90deg,#f7a35c,#f07a1a); transition: width .4s; } .sunny-progress small { display: block; margin-top: 6px; color: #b45309; font-size: 12px; }
.sunny-lead { display: flex; flex-direction: column; gap: 6px; margin: 0 0 12px 34px; padding: 10px; border: 1px solid #fcd9b6; border-radius: 12px; background: #fff; } .sunny-lead input,.sunny-lead textarea,.sunny-input textarea { border: 1px solid #cbd5e1; border-radius: 8px; padding: 6px 8px; font: inherit; } .sunny-lead .err,.sunny-lead .hint { margin: 0; font-size: 12px; } .sunny-lead .err { color: #dc2626; } .sunny-lead .hint { color: #94a3b8; } .sunny-handoff-who { display: flex; gap: 8px; align-items: center; padding: 8px; border: 1px solid #e2e8f0; border-radius: 10px; background: #f8fafc; } .sunny-handoff-who .av { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg,#f7a35c,#f07a1a); color: #fff; font-weight: 700; }
.sunny-chips { padding: 8px 12px 0; background: #fff; border-top: 1px solid #eef2f7; } .sunny-chips button { border: 1px solid #cbd5e1; background: #fff; border-radius: 14px; padding: 4px 10px; color: #142b64; cursor: pointer; } .sunny-chips button:hover { border-color: #f07a1a; color: #f07a1a; }
.sunny-input { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; background: #fff; } .sunny-input textarea { flex: 1; resize: none; min-height: 40px; max-height: 258px; line-height: 20px; } .sunny-input textarea:focus { outline: none; border-color: #f07a1a; } .sunny-input button { width: 40px; height: 40px; border: 0; border-radius: 10px; background: #f07a1a; color: #fff; cursor: pointer; } .sunny-input button:disabled { background: #fbc9a0; } .sunny-attach { background: #fff !important; color: #142b64 !important; border: 1px solid #cbd5e1 !important; } .sunny-file-input { display: none; } .sunny-foot { text-align: center; font-size: 11px; color: #94a3b8; padding-bottom: 8px; background: #fff; }
.sunny-drop { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; background: rgba(20,43,100,.78); color: #fff; border: 3px dashed #f7a35c; text-align: center; pointer-events: none; } .sunny-drop div { display: flex; flex-direction: column; gap: 6px; }
.sunny.is-mobile { right: 12px; bottom: 12px; } .sunny.is-mobile.is-open { inset: 0; } .sunny.is-mobile .sunny-panel { width: 100%; height: 100%; border-radius: 0; } .sunny.is-mobile .sunny-fab-label,.sunny.is-mobile .sunny-rs { display: none; } .sunny.is-mobile .sunny-fab { padding: 4px; }
@media (prefers-reduced-motion: reduce) { .sunny-fab,.sunny-fab-ring,.sunny-fab-avatar,.sunny-fab-dot,.sunny-typing i,.sunny-greet-ch,.sunny-greet-caret { animation: none; } }
/* 账户状态（与官网页头共用 quote.smartwan.com 登录态，2026-11-17） */
.sunny-acct:empty { display: none; } .sunny-acct { display: inline-flex; align-items: center; gap: 6px; max-width: 150px; font-size: 12px; cursor: default; }
.sunny-acct-av { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.2); font-weight: 700; flex: none; }
.sunny-acct-nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .92; }
.sunny-acct-login { color: #fff; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.sunny-acct-login:hover { background: rgba(255,255,255,.14); }
