.fui-navbar.dy-bottom-nav {
    max-width: 650px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 100%;
    display: flex;
    justify-content: space-around;
}
.dy-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    flex: 1;
    color: #777;
    text-align: center;
    text-decoration: none;
}
.dy-bottom-nav .nav-item.active {
    color: #1989fa;
}
.dy-bottom-nav .nav-ico {
    font-size: 21px;
    line-height: 25px;
}
.dy-bottom-nav .nav-label {
    font-size: 11px;
    line-height: 18px;
}
@media(max-width:380px) {
    .dy-bottom-nav .nav-label {
        font-size: 10px;
    }
}
html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    background: #f5f5f7;
    font-family: Arial, "Microsoft Yahei", sans-serif;
}
body {
    max-width: 650px;
    margin: auto;
}
.chat-box {
    height: calc(100vh - 58px);
    display: flex;
    flex-direction: column;
    background: #fff;
    overflow: hidden;
}
.chat-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #f5f5f7;
    padding: 14px 12px 88px;
    box-sizing: border-box;
}
.msg {
    margin: 10px 0;
    display: flex;
    flex-direction: column;
}
.msg.left {
    align-items: flex-start;
}
.msg.right {
    align-items: flex-end;
}
.name {
    font-size: 12px;
    color: #666;
    margin: 2px 6px;
}
.bubble {
    max-width: 76%;
    padding: 8px 12px;
    border-radius: 15px;
    word-break: break-word;
    font-size: 14px;
    line-height: 1.5;
}
.bubble.quick-bubble {
    display: inline-block;
    width: auto;
    min-width: 0;
    max-width: 76%;
    padding: 0;
    overflow: hidden;
}
.left .bubble {
    background: #fff;
    color: #333;
    border: 1px solid #e2e2e2;
    border-bottom-left-radius: 5px;
}
.right .bubble {
    background: #1989fa;
    color: #fff;
    border-bottom-right-radius: 5px;
}
.time {
    font-size: 13px;
    color: #aaa;
    margin: 3px 6px;
}
.sys {
    text-align: center;
    color: #999;
    font-size: 13px;
    margin: 18px;
}
.sys.warn {
    display: inline-block;
    max-width: 92%;
    margin: 15px auto;
    padding: 10px 16px;
    color: #333;
    background: #ffeb3b;
    border-radius: 22px;
    line-height: 1.6;
}
.chat-img {
    display: block;
    max-width: 180px;
    max-height: 220px;
    border-radius: 10px;
}
.order-card b {
    display: inline-block;
    min-width: 76px;
}
.quick-menu-card {
    display: inline-block;
    width: auto;
    min-width: 0;
    max-width: 100%;
    padding: 6px 0;
    background: #fff;
}
.quick-menu-item {
    display: block;
    width: max-content;
    max-width: 260px;
    padding: 9px 18px;
    color: #e67e22;
    font-size: 16px;
    line-height: 1.45;
    text-decoration: none;
    cursor: pointer;
    white-space: normal;
}
.quick-menu-item:active {
    background: #f7f7f7;
}
.chat-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 58px;
    z-index: 99;
    max-width: 650px;
    min-height: 64px;
    margin: auto;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border-top: 1px solid #ddd;
}
.order-btn {
    position: absolute;
    bottom: 70px;
    left: 10px;
    background-color: #fff !important;
    color: #333 !important;
    padding: 6px 12px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    cursor: pointer;
    z-index: 1000;
    font-size: 14px;
    line-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    appearance: none;
    -webkit-appearance: none;
}
.message-input {
    flex: 1;
    min-width: 0;
    height: 42px;
    padding: 0 16px;
    font-size: 15px;
    outline: none;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 23px;
}
.plus-btn {
    width: 52px !important;
    height: 42px !important;
    padding: 0 !important;
    line-height: 38px !important;
    font-size: 28px !important;
    color: #fff !important;
    background: #06c160 !important;
    border: none !important;
    border-radius: 23px !important;
}
.send-btn {
    height: 42px !important;
    padding: 0 18px !important;
    font-size: 16px;
    color: #fff !important;
    background: #06c160 !important;
    border: none !important;
    border-radius: 23px !important;
}
.order-mask {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 2000;
    max-width: 650px;
    margin: auto;
    background: rgba(0, 0, 0, .45);
}
.order-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 78vh;
    min-height: 52vh;
    padding: 18px 18px 22px;
    background: #fff;
    border-radius: 14px 14px 0 0;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.order-close {
    position: absolute;
    top: 16px;
    right: 22px;
    font-size: 24px;
    color: #333;
    cursor: pointer;
}
.order-title {
    margin: 36px 0 18px;
    font-size: 22px;
    font-weight: 700;
    color: #333;
}
.order-search {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.order-search input {
    flex: 1;
    min-width: 0;
    height: 42px;
    padding: 0 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.order-search button {
    width: 108px;
    height: 42px;
    color: #fff;
    background: #4188d8;
    border: 0;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 700;
}
.order-list {
    flex: 1;
    min-height: 220px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #fafafa;
    border-radius: 10px;
    padding: 14px;
    box-sizing: border-box;
}
.order-list h3 {
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 700;
}
.order-item {
    padding: 10px 0;
    border-bottom: 1px solid #e5e5e5;
    font-size: 15px;
    line-height: 1.7;
    color: #333;
}
.order-item b {
    display: inline-block;
    min-width: 76px;
}
.order-item button {
    margin-top: 3px;
    padding: 2px 8px;
    background: #fff;
    border: 1px solid #999;
    border-radius: 3px;
}
.load-more {
    margin-top: 12px;
    padding: 4px 10px;
    background: #fff;
    border: 1px solid #999;
    border-radius: 4px;
}
.fui-navbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    max-width: 650px;
    margin: auto;
    background: #fff;
}
/* 按用户提供的客服页面样式调整 */
html, body {
    background: #e5e5e7;
    font-family: "Microsoft Yahei", sans-serif;
}
body {
    display: flex;
    justify-content: center;
    max-width: 650px;
    width: 100%;
    margin: auto;
}
.chat-box {
    width: 100%;
    max-width: 650px;
    height: 100vh;
    padding-bottom: 70px;
    box-sizing: border-box;
    background: #fff;
}
.chat-body {
    padding: 15px 20px 110px;
    background: #f5f5f7;
    font-size: 14px;
    display: flex;
    flex-direction: column;
}
.msg {
    margin-bottom: 12px;
}
.msg.left {
    align-items: flex-start;
}
.msg.right {
    align-items: flex-end;
}
.bubble {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    margin-bottom: 5px;
    word-break: break-word;
    line-height: 1.5;
    box-sizing: border-box;
}
.left .bubble {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    border-bottom-left-radius: 5px;
}
.right .bubble {
    background: #007bff;
    color: #fff;
    border-bottom-right-radius: 5px;
}
.time {
    font-size: 11px;
    color: #999;
}
.sys.warn {
    text-align: center;
    background: #ffeb3b;
    color: #333;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
}
.chat-footer {
    position: fixed;
    bottom: 60px;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 10px 20px;
    background: #fafafa;
    border-top: 1px solid #ddd;
    display: flex;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    min-height: 60px;
    max-width: 650px;
    margin: 0 auto;
}
.order-btn {
    position: absolute;
    bottom: 70px;
    left: 10px;
    background-color: #fff !important;
    color: #333 !important;
    padding: 6px 12px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    cursor: pointer;
    z-index: 1000;
    font-size: 14px;
    line-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    appearance: none;
    -webkit-appearance: none;
}
.message-input {
    flex: 1;
    height: 38px;
    border: 1px solid #ccc;
    border-radius: 19px;
    padding: 0 15px;
    font-size: 14px;
    outline: none;
    background-color: #fff;
    color: #000;
    -webkit-appearance: none;
}
.plus-btn, .send-btn {
    height: 38px !important;
    border-radius: 19px !important;
    background-color: #07c160 !important;
    color: #fff !important;
}
.plus-btn {
    width: 38px !important;
    font-size: 24px !important;
    line-height: 38px !important;
}
.send-btn {
    padding: 0 18px !important;
    font-size: 14px;
}
.order-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    max-width: none;
    background: rgba(0,0,0,0.4);
    z-index: 9998;
    margin: 0;
}
.order-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80vh;
    max-height: 80vh;
    min-height: 0;
    background: #fff;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.2);
    overflow: hidden;
    z-index: 9999;
    padding: 50px 20px 20px;
    border-radius: 0;
    box-sizing: border-box;
}
.order-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #333;
}
.order-title {
    margin: 0 0 20px;
    font-weight: 600;
    font-size: 20px;
    color: #333;
}
.order-search input {
    height: 42px;
    border-radius: 6px 0 0 6px;
    border-right: none;
}
.order-search button {
    width: 110px;
    border-radius: 0 6px 6px 0;
    background-color: #4a90e2;
}
.order-list {
    background: #f9f9f9;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.05);
    font-size: 15px;
    color: #444;
}
/* 已读/未读对号：右侧自己发送的消息显示，✓ 未读，✓✓ 已读 */
.msg.right .bubble {
    position: relative;
    padding-right: 30px;
}
.msg.right.read .bubble::after {
    content: "✓✓";
    position: absolute;
    right: 8px;
    bottom: 3px;
    font-size: 12px;
    color: #2ecc71;
}
.msg.right.unread .bubble::after {
    content: "✓";
    position: absolute;
    right: 8px;
    bottom: 3px;
    font-size: 12px;
    color: #2ecc71;
}
/* 修复：订单弹窗打开时盖住底部输入框，并让订单列表独立滚动 */
body.order-panel-open .chat-footer,
body.order-panel-open .fui-navbar {
    display: none !important;
}
#orderMask.order-mask {
    z-index: 30000 !important;
    touch-action: none;
}
#orderMask .order-panel {
    z-index: 30001 !important;
    display: flex !important;
    flex-direction: column !important;
    height: 80vh !important;
    max-height: 80vh !important;
    padding: 50px 20px 20px !important;
    overflow: hidden !important;
    touch-action: auto;
}
#orderMask .order-search {
    flex: 0 0 auto;
    display: flex;
    margin-bottom: 16px;
}
#orderMask .order-title {
    flex: 0 0 auto;
}
#orderMask .order-list {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain;
}
.system-message-container {
    width: 100%;
    text-align: center;
    margin: 15px 0;
    display: block;
    clear: both;
}
.system-message {
    text-align: center;
    display: inline-block;
}
.msg > .name {
    display: none !important;
}
/* 客服统一脚本布局修正 */
#chat_messages .msg.message {
    display: flex;
    flex-direction: column;
    width: 100%;
    clear: both;
}
#chat_messages .msg.message.left {
    align-items: flex-start;
}
#chat_messages .msg.message.right {
    align-items: flex-end;
}
#chat_messages .msg.message > .name {
    display: none !important;
}
#chat_messages .system-message-container {
    width: 100%;
    text-align: center;
    margin: 15px 0;
    display: block;
    clear: both;
}
#chat_messages .system-message {
    text-align: center;
    display: inline-block;
    background: #ffeb3b;
    color: #333;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
}
#chat_messages .chat-img {
    max-width: 220px;
    max-height: 260px;
    border-radius: 10px;
}
