.support-launch{position:fixed;right:24px;bottom:100px;z-index:95;background:#fffcf7;color:#9c513d;border:1px solid #e8d8ca;border-radius:24px;padding:10px 16px;box-shadow:0 4px 18px #4030200c;font:13px 'Microsoft YaHei',sans-serif;cursor:pointer}
/* 商家端入口移到顶栏右侧（挨着「查看买家端」），不再用右下角悬浮。 */
header.admin-top .support-top{position:static;margin:0 12px 0 0;padding:6px 12px;border:1px solid rgba(255,255,255,.4);border-radius:8px;background:transparent;color:#fff;font:13px 'Microsoft YaHei',sans-serif;cursor:pointer;white-space:nowrap}
header.admin-top .support-top:hover{background:rgba(255,255,255,.14)}
header.admin-top .support-top:focus-visible{outline:2px solid #ff8f1f;outline-offset:2px}
.support-panel{position:fixed;right:24px;bottom:24px;z-index:500;width:min(740px,calc(100vw - 32px));height:min(720px,calc(100dvh - 48px));display:flex;flex-direction:column;border:1px solid #e8dbcf;border-radius:16px;background:#fffcf7;box-shadow:0 14px 70px #30201430;overflow:hidden;color:#40372f;font:13px/1.6 'Microsoft YaHei','PingFang SC',sans-serif}
.support-panel *{box-sizing:border-box}.support-panel button,.support-panel input,.support-panel textarea,.support-panel select{font:inherit}.support-panel button{cursor:pointer;border:1px solid #e5dcd2;background:#fffdf9;color:#795e50;border-radius:6px;padding:7px 12px}.support-panel button:disabled{opacity:.5;cursor:wait}.support-head{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;background:#f3e7dc;font-size:16px}.support-head .support-close{border:0;background:none;font-size:24px;padding:0 4px}.support-tabs{display:flex;gap:18px;padding:10px 20px;border-bottom:1px solid #eee4da}.support-tabs button{border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;padding:6px 0}.support-tabs .active{color:#b45338;border-bottom-color:#b45338}.support-main{padding:16px;overflow:auto;flex:1;min-height:0}.support-notice{color:#ac4b35;background:#b64b3508;margin:0;padding:8px 16px}.support-notice:empty{display:none}.support-panel h3{font-size:14px;margin:0 0 10px}.support-panel p{white-space:pre-wrap;overflow-wrap:anywhere}.support-chat-layout{display:flex;gap:16px;height:100%;min-height:0}.support-inbox{width:170px;flex-shrink:0;overflow:auto;border-right:1px solid #eee5da;padding-right:12px}.support-inbox button{display:block;width:100%;text-align:left;background:transparent;border:0;margin-bottom:6px;overflow-wrap:anywhere}.support-inbox .selected{background:#f3e9df}.support-inbox small{display:block;color:#9d8d7e;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.support-chat-content{display:flex;flex:1;min-width:0;flex-direction:column;min-height:0}.support-history{align-self:center;font-size:11px!important;border:0!important;background:none!important;color:#9c8a79!important}.support-log{flex:1;min-height:100px;overflow:auto;padding:8px;display:flex;flex-direction:column;gap:12px;background:#f7f2eb;border-radius:8px}.support-message{max-width:85%;align-self:flex-start;background:white;border:1px solid #eee5dc;border-radius:10px;padding:9px 12px}.support-message.mine{align-self:flex-end;background:#f2e1d4;border-color:#ead5c4}.support-message small{color:#9a897b;font-size:10px}.support-message p{margin:4px 0 0}.support-order-ref{display:block;font-size:10px;color:#a5694b;overflow-wrap:anywhere}.support-send{display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:12px}.support-send .support-field:first-child{grid-column:1/-1}.support-field{display:grid;gap:4px;font-size:12px;color:#8a7765}.support-field input,.support-field textarea,.support-panel select{border:1px solid #e7ddd3;border-radius:6px;background:#fffefa;padding:8px;color:#4b4036;width:100%;min-width:0}.support-field textarea{resize:vertical;min-height:60px;max-height:130px}.support-panel .support-primary{background:#ba583e;color:white;border-color:#ba583e}.support-stack{display:grid;gap:10px;margin:0 0 16px}.support-ticket{border:1px solid #eadfd4;border-radius:10px;padding:16px;margin:18px 0}.support-ticket>small{color:#a18c79;overflow-wrap:anywhere}.support-timeline{padding-left:18px;border-left:1px solid #e4d7c9;list-style:none;margin:16px 0}.support-timeline li{position:relative;padding-bottom:10px}.support-timeline li:before{content:'';position:absolute;left:-22px;top:8px;width:7px;height:7px;border-radius:50%;background:#c89776}.support-timeline p{margin:3px 0}.support-timeline small,.support-muted{color:#a18e7d;font-size:11px}.support-actions{display:flex;gap:8px}.support-empty{color:#a5927f;text-align:center;padding:24px 6px}.support-launch[hidden]{display:none}
@media(max-width:600px){.support-panel{right:8px;bottom:8px;width:calc(100vw - 16px);height:calc(100dvh - 16px)}.support-inbox{width:110px}.support-main{padding:12px}.support-chat-layout{gap:8px}.support-send{grid-template-columns:1fr}.support-launch{right:16px}.support-panel select{font-size:12px}}

.store-nav .support-header-launch{position:static;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;margin-left:10px;padding:8px 14px;border:1px solid #d9bda6;border-radius:8px;background:#fffcf7;color:#92563d;box-shadow:0 2px 8px #6040200a;font:inherit;font-size:13px;cursor:pointer;white-space:nowrap}.store-nav .support-header-launch:hover{background:#f6e9dc}.support-header-launch[hidden]{display:none}
@media(max-width:600px){.store-nav{flex-wrap:wrap}.store-nav .support-header-launch{margin-left:2px;padding:6px 9px;font-size:12px}}

body.storefront .strip .store-nav {align-items:center;gap:2px;padding:4px;background:color-mix(in srgb,var(--theme) 2%,transparent);border-radius:11px}
body.storefront .strip .store-nav > a,
body.storefront .strip .store-nav .support-header-launch {box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:7px 10px;font:13px/20px "Microsoft YaHei",sans-serif;border:0;border-radius:7px;white-space:nowrap}
body.storefront .strip .store-nav .support-header-launch {position:static;margin:0 0 0 3px;background:transparent;color:#846653;box-shadow:none;cursor:pointer}
body.storefront .strip .store-nav .support-header-launch:hover {background:var(--primary-soft);color:var(--primary)}
body.storefront .strip .store-nav .support-header-launch:focus-visible {outline:2px solid var(--primary);outline-offset:2px}
body.storefront .strip .store-nav svg {width:17px;height:17px}
@media(max-width:600px){body.storefront .strip .store-nav{flex-wrap:nowrap;overflow-x:auto;justify-content:space-between;gap:0}body.storefront .strip .store-nav > a,body.storefront .strip .store-nav .support-header-launch{font-size:12px;padding:6px 7px;gap:4px;min-height:32px}body.storefront .strip .store-nav svg{width:15px;height:15px}}
