/* ==========================================
   在线客服系统样式 - 移动端优先
   ========================================== */

/* CSS变量定义 */
:root {
    --primary-color: #4A90E2;
    --primary-dark: #357ABD;
    --success-color: #52C41A;
    --warning-color: #FAAD14;
    --error-color: #F5222D;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-muted: #999999;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F5F7FA;
    --bg-chat: #EBEEF5;
    --border-color: #E4E7ED;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --header-height: 60px;
    --input-height: 70px;
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 按钮基础样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-primary:disabled {
    background-color: #A0CFFF;
    cursor: not-allowed;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.btn-icon:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* ==========================================
   登录页面
   ========================================== */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 40px 30px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header .logo {
    margin-bottom: 16px;
}

.login-header h1 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.login-header p {
    color: var(--text-muted);
    font-size: 14px;
}

.login-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.login-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.mock-accounts h3 {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-align: center;
}

.account-cards {
    display: flex;
    gap: 10px;
}

.account-card {
    flex: 1;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.account-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.role-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    margin-bottom: 4px;
}

.role-badge.user {
    background-color: #E6F7FF;
    color: #1890FF;
}

.role-badge.service {
    background-color: #FFF7E6;
    color: #FA8C16;
}

.account-info {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
}

/* 加载动画 */
.spinner {
    animation: rotate 1s linear infinite;
    width: 20px;
    height: 20px;
}

.spinner circle {
    stroke: currentColor;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* ==========================================
   聊天页面 - 用户端
   ========================================== */
.chat-page {
    background: var(--bg-chat);
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    max-width: 768px;
    margin: 0 auto;
    background: var(--bg-primary);
    box-shadow: var(--shadow-md);
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    padding: 0 16px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-avatar {
    position: relative;
    width: 44px;
    height: 44px;
}

.service-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.online-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    border: 2px solid white;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
}

.online-status.online {
    background-color: #52c41a;
    box-shadow: 0 0 0 1px rgba(82, 196, 26, 0.3), 0 0 6px rgba(82, 196, 26, 0.5);
}

.service-info h2 {
    font-size: 16px;
    font-weight: 600;
}

.status-text {
    font-size: 12px;
    color: var(--text-muted);
}

.header-right {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 140px;
    background: white;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    display: none;
    z-index: 200;
    overflow: hidden;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s;
}

.dropdown-menu a:hover {
    background-color: var(--bg-secondary);
}

/* 消息列表 */
.chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: var(--bg-chat);
    -webkit-overflow-scrolling: touch;
}

.welcome-message {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.welcome-message .welcome-icon {
    margin-bottom: 16px;
}

.welcome-message h3 {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.welcome-message p {
    font-size: 14px;
}

/* 消息气泡 */
.message-item {
    display: flex;
    margin-bottom: 16px;
    animation: messageIn 0.3s ease;
}

@keyframes messageIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-item.self {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
}

.message-content {
    max-width: 70%;
    margin: 0 10px;
}

.message-bubble {
    padding: 10px 14px;
    border-radius: var(--radius-md);
    background: white;
    box-shadow: var(--shadow-sm);
    word-wrap: break-word;
    line-height: 1.5;
}

.message-item.self .message-bubble {
    background: var(--primary-color);
    color: white;
}

.message-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.message-item.self .message-time {
    text-align: right;
}

/* 系统消息 */
.system-message {
    text-align: center;
    margin: 20px 0;
}

.system-message span {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-muted);
}

/* 正在输入提示 */
.typing-indicator {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background: var(--bg-secondary);
    font-size: 12px;
    color: var(--text-muted);
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: 0s;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 输入区域 */
.chat-input {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 8px 16px;
    padding-bottom: calc(8px + var(--safe-area-bottom));
}

.input-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.input-wrapper textarea {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 16px;
    resize: none;
    max-height: 120px;
    line-height: 1.4;
    outline: none;
    transition: border-color 0.2s;
}

.input-wrapper textarea:focus {
    border-color: var(--primary-color);
}

.btn-send {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    flex-shrink: 0;
}

/* 表情面板 */
.emoji-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border-color);
    padding: 16px;
    max-height: 260px;
    overflow-y: auto;
    z-index: 150;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.emoji-list {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
}

.emoji-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1;
    font-size: 24px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background-color 0.2s;
}

.emoji-item:hover {
    background-color: var(--bg-secondary);
}

/* ==========================================
   客服工作台页面
   ========================================== */
.service-page {
    background: var(--bg-secondary);
}

.service-container {
    display: flex;
    height: 100vh;
    height: 100dvh;
}

/* 用户列表侧边栏 */
.user-sidebar {
    width: 100%;
    max-width: 320px;
    background: var(--bg-primary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 60px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header h2 {
    font-size: 18px;
}

.online-count {
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-secondary);
    padding: 4px 10px;
    border-radius: 12px;
}

.user-list {
    flex: 1;
    overflow-y: auto;
}

.user-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid var(--border-color);
}

.user-item:hover {
    background-color: var(--bg-secondary);
}

.user-item.active {
    background-color: #E6F7FF;
}

.user-item .avatar {
    position: relative;
    width: 44px;
    height: 44px;
    margin-right: 12px;
}

.user-item .avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    transition: filter 0.3s;
}

/* 离线用户头像灰色显示 */
.user-item.offline .avatar img {
    filter: grayscale(100%);
    opacity: 0.7;
}

.user-item.offline .name {
    color: #999;
}

.user-item .info {
    flex: 1;
    min-width: 0;
}

.user-item .name {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 来源标识 */
.source-tag {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: 500;
    flex-shrink: 0;
}

.source-tag.local {
    background: #e6f7ff;
    color: #1890ff;
    border: 1px solid #91d5ff;
}

.source-tag.third-party {
    background: linear-gradient(135deg, #f5f0ff, #efdbff);
    color: #722ed1;
    border: 1px solid #d3adf7;
}

.user-item .preview {
    font-size: 13px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-item .meta {
    text-align: right;
}

.user-item .time {
    font-size: 11px;
    color: var(--text-muted);
}

.user-item .unread {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    background: var(--error-color);
    color: white;
    font-size: 11px;
    border-radius: 9px;
    margin-top: 4px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state p {
    margin-top: 12px;
    font-size: 14px;
}

/* 聊天区域 */
.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-chat);
    position: relative;
}

.no-chat-selected {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
}

.no-chat-selected h3 {
    font-size: 18px;
    color: var(--text-secondary);
    margin: 20px 0 8px;
}

.chat-window {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-window .chat-header {
    background: white;
}

.chat-window .chat-header .user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-window .chat-header .user-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.chat-window .chat-header h2 {
    font-size: 16px;
}

.back-btn {
    display: none;
}

/* 快捷回复 */
.quick-replies {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.quick-reply-btn {
    padding: 6px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.quick-reply-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 服务信息栏 */
.service-info-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: white;
    border-top: 1px solid var(--border-color);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
    max-width: 320px;
    box-sizing: border-box;
}

.service-info-bar .service-avatar {
    width: 36px;
    height: 36px;
}

.service-info-bar .service-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.service-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

/* Toast提示 */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
}

.toast.success {
    background: var(--success-color);
}

.toast.error {
    background: var(--error-color);
}

/* ==========================================
   响应式设计
   ========================================== */
@media (max-width: 768px) {
    /* 移动端客服工作台 */
    .service-container {
        flex-direction: column;
    }
    
    .user-sidebar {
        max-width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 100;
        transform: translateX(0);
        transition: transform 0.3s ease;
    }
    
    .user-sidebar.hidden {
        transform: translateX(-100%);
    }
    
    .chat-area {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 99;
    }
    
    .no-chat-selected {
        display: none;
    }
    
    .chat-window {
        display: flex !important;
    }
    
    .back-btn {
        display: flex;
    }
    
    .service-info-bar {
        width: 100%;
    }
    
    /* 表情面板移动端适配 */
    .emoji-list {
        grid-template-columns: repeat(7, 1fr);
    }
}

@media (min-width: 769px) {
    /* 桌面端 */
    .chat-container {
        height: calc(100vh - 40px);
        margin: 20px auto;
        border-radius: var(--radius-lg);
        overflow: hidden;
    }
    
    .user-sidebar {
        flex-shrink: 0;
    }
}

/* iPad等平板设备 */
@media (min-width: 769px) and (max-width: 1024px) {
    .user-sidebar {
        max-width: 280px;
    }
}

/* 大屏桌面 */
@media (min-width: 1200px) {
    .user-sidebar {
        max-width: 360px;
    }
    
    .message-content {
        max-width: 60%;
    }
}

/* 暗色模式支持（可选） */
@media (prefers-color-scheme: dark) {
    /* 根据需要添加暗色模式样式 */
}

/* ==========================================
   新消息卡片类型样式
   ========================================== */

/* 服务推荐消息卡片 */
.msg-service-card {
    background: #1890ff;
    border-radius: 8px;
    padding: 12px;
    color: white;
    max-width: 280px;
}
.msg-service-card .card-header {
    font-size: 13px;
    margin-bottom: 10px;
    opacity: 0.9;
}
.msg-service-card .card-body {
    background: white;
    border-radius: 6px;
    padding: 10px;
    color: #333;
}
.msg-service-card .service-name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
}
.msg-service-card .service-desc {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}
.msg-service-card .service-price {
    color: #f5222d;
    font-weight: 600;
}

/* 微信名片消息 */
.msg-wechat-card {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 250px;
    cursor: pointer;
    transition: all 0.2s;
}
.msg-wechat-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.msg-wechat-card:active {
    transform: scale(0.98);
}
.msg-wechat-card .wechat-icon {
    width: 40px;
    height: 40px;
    background: #07c160;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.msg-wechat-card .wechat-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}
.msg-wechat-card .wechat-info {
    flex: 1;
}
.msg-wechat-card .wechat-info .wechat-label {
    font-size: 12px;
    color: #999;
}
.msg-wechat-card .wechat-info .wechat-id {
    font-weight: 500;
}
.msg-wechat-card .wechat-copy-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}
.msg-wechat-card:hover .wechat-copy-icon {
    background: #f5f5f5;
}
.msg-wechat-card:hover .wechat-copy-icon svg {
    fill: #07c160;
}

/* IM 订单卡片 — 对齐 order-card 组件 */
.msg-order-card {
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 14px;
    max-width: 360px;
    min-width: 260px;
    cursor: pointer;
}

.msg-order-card .order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.msg-order-card .order-card-service {
    flex: 1;
    min-width: 0;
    margin-right: 10px;
}

.msg-order-card .order-card-service-name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.msg-order-card .order-card-category-tag {
    display: inline-block;
    margin-top: 4px;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 11px;
    color: #999;
    background: #f5f5f5;
}

.msg-order-card .order-card-status {
    flex-shrink: 0;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

/* 状态颜色 5 档 */
.msg-order-card .status-danger { background: rgba(255,77,79,0.1); color: #ff4d4f; }
.msg-order-card .status-primary { background: rgba(24,144,255,0.1); color: #1890ff; }
.msg-order-card .status-success { background: rgba(82,196,26,0.1); color: #52c41a; }
.msg-order-card .status-muted { background: rgba(153,153,153,0.1); color: #999; }
.msg-order-card .status-warning { background: rgba(255,165,0,0.1); color: #ffa500; }

/* 兼容 service.js 的旧状态类 */
.msg-order-card .status-pending { background: rgba(255,165,0,0.1); color: #fa8c16; }
.msg-order-card .status-accepted { background: rgba(24,144,255,0.1); color: #1890ff; }
.msg-order-card .status-serving { background: rgba(114,46,209,0.1); color: #722ed1; }
.msg-order-card .status-completed { background: rgba(82,196,26,0.1); color: #52c41a; }
.msg-order-card .status-cancelled { background: rgba(153,153,153,0.1); color: #999; }

.msg-order-card .order-card-meta {
    margin-bottom: 12px;
}

.msg-order-card .order-card-meta-row {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
    line-height: 1.4;
}

.msg-order-card .order-card-meta-row:last-child {
    margin-bottom: 0;
}

.msg-order-card .order-card-meta-label {
    flex-shrink: 0;
    font-size: 11px;
    color: #bbb;
}

.msg-order-card .order-card-order-no {
    flex: 1;
    color: #999;
    font-size: 11px;
}

.msg-order-card .order-card-copy-btn {
    padding: 1px 6px;
    font-size: 11px;
    background: #f5f5f5;
    border: 1px solid #e8e8e8;
    border-radius: 3px;
    cursor: pointer;
    color: #666;
}

.msg-order-card .order-card-copy-btn:hover {
    background: #e8e8e8;
}

.msg-order-card .order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.msg-order-card .order-card-price {
    color: #ff4d4f;
    font-weight: 600;
}

.msg-order-card .order-card-price .price-symbol {
    font-size: 12px;
}

.msg-order-card .order-card-price .price-value {
    font-size: 18px;
}

.msg-order-card .order-card-detail-link {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 12px;
    color: #1890ff;
}

/* 地址消息卡片 */
.msg-address-card {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 12px;
    max-width: 280px;
}
.msg-address-card .address-name {
    font-weight: 500;
    margin-bottom: 4px;
}
.msg-address-card .address-detail {
    font-size: 12px;
    color: #999;
}
