* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* 顶部导航栏 */
.header {
    height: 60px;
    background-color: #ffffff;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    margin-right: 30px;
    font-size: 20px;
    font-weight: bold;
    color: #398CFF;
}

.logo-icon {
    width: 32px;
    height: 32px;
    margin-right: 8px;
    background: linear-gradient(135deg, #398CFF 0%, #2A6FD8 100%);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.workspace {
    padding: 8px 16px;
    background-color: #f5f5f5;
    border-radius: 4px;
    font-size: 14px;
}

.project-selector {
    margin-left: 20px;
    padding: 8px 16px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    font-size: 14px;
}

.header-right {
    display: flex;
    align-items: center;
}

.header-menu {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.header-menu a {
    margin: 0 15px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.notification {
    position: relative;
    margin-right: 15px;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff4757;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-info {
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #398CFF;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

.user-name {
    font-size: 14px;
}

.sub-account {
    font-size: 12px;
    color: #999;
}

/* 主体布局 */
.main-container {
    display: flex;
    margin-top: 60px;
    height: calc(100vh - 60px);
}

/* 左侧产品切换页 */
.product-switcher {
    width: 55px;
    background-color: #398CFF;
    border-right: 1px solid #2A6FD8;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.switcher-menu {
    list-style: none;
    padding: 10px 0;
}

.switcher-menu li {
    margin-bottom: 5px;
}

.switcher-menu a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 5px;
    text-decoration: none;
    color: #ffffff;
    font-size: 10px;
    transition: background-color 0.2s;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.switcher-menu a i {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3px;
    font-size: 20px;
}

.switcher-menu a:hover {
    background-color: #2A6FD8;
}

.switcher-menu a.active {
    background-color: #ffffff;
    color: #398CFF;
}

/* 中间产品内菜单 */
.product-menu {
    width: 250px;
    background-color: #f5f5f5;
    border-right: 1px solid #e8e8e8;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.menu-header {
    padding: 20px;
    background-color: #ffffff;
    border-bottom: 1px solid #e8e8e8;
}

.menu-title {
    font-size: 16px;
    font-weight: bold;
    color: #333333;
}

.menu-section {
    padding: 10px 0;
}

.menu-list {
    list-style: none;
}

.menu-list li {
    margin-bottom: 2px;
}

.menu-list a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none;
    color: #333333;
    font-size: 14px;
    transition: background-color 0.2s;
}

.menu-list a:hover {
    background-color: #e8e8e8;
}

.menu-list a.active {
    background-color: #398CFF;
    color: white;
}

.menu-list i {
    margin-right: 10px;
    width: 16px;
    text-align: center;
}

.menu-title .star, .menu-list .star {
    color: #ffd700;
    margin-left: 5px;
}

/* 主内容区 */
.content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #ffffff;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.page-title {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
}

.page-title .star {
    color: #ffd700;
    margin-left: 8px;
}

.help-link {
    text-decoration: none;
    color: #398CFF;
    font-size: 14px;
}

/* 搜索和操作栏 */
.search-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 4px;
}

.search-input {
    display: flex;
    align-items: center;
}

.search-input input {
    width: 300px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid #e8e8e8;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.search-btn {
    height: 34px;
    padding: 0 12px;
    background-color: #398CFF;
    border: 1px solid #398CFF;
    border-radius: 0 4px 4px 0;
    color: white;
    cursor: pointer;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.demo-btn {
    padding: 0;
    background-color: transparent;
    border: none;
    color: #398CFF;
    text-decoration: underline;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
}

.demo-btn:hover {
    color: #2a6fd9;
    text-decoration: none;
}

.new-project-btn {
    padding: 8px 16px;
    background-color: #398CFF;
    border: 1px solid #398CFF;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
}

/* 项目列表表格 */
.project-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

.project-table th {
    background-color: #f5f5f5;
    padding: 12px 16px;
    text-align: left;
    font-weight: normal;
    color: #666;
    border-bottom: 1px solid #e8e8e8;
}

.project-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e8e8e8;
    font-size: 14px;
}

.project-name {
    color: #398CFF;
    text-decoration: none;
}

.project-type {
    color: #333;
}

.project-time {
    color: #666;
}

.delete-btn {
    color: #ff4757;
    text-decoration: none;
    cursor: pointer;
}



/* 页面容器 */
.page-container {
    display: none;
}

.page-container.active {
    display: block;
}

/* 数据统计页面样式 */
.usage-statistics-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.statistics-cards {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stat-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
}

.stat-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.stat-change {
    font-size: 12px;
    color: #2ed573;
}

.stat-change.negative {
    color: #ff4757;
}

.chart-container {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-height: 300px;
}

/* 消息记录页面样式 */
.message-records-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.message-item {
    display: flex;
    align-items: flex-start;
    background-color: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.message-icon {
    margin-right: 16px;
    color: #398CFF;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: #f0f7ff;
    border-radius: 50%;
}

.message-content {
    flex: 1;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.message-title {
    font-weight: bold;
    color: #333;
}

.message-time {
    font-size: 12px;
    color: #999;
}

.message-body {
    color: #666;
    margin-bottom: 8px;
    line-height: 1.4;
}

.message-meta {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: #999;
}

/* 通话记录页面样式 */
.call-records-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.call-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.call-info {
    flex: 1;
}

.call-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.call-title {
    font-weight: bold;
    color: #333;
}

.call-time {
    font-size: 12px;
    color: #999;
}

.call-details {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: #666;
}

.call-actions {
    display: flex;
    gap: 8px;
}

.call-actions button {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.call-actions button:first-child {
    background-color: #398CFF;
    color: white;
}

.call-actions button:first-child:hover {
    background-color: #2a6fd9;
}

.call-actions button:nth-child(2) {
    background-color: #f5f5f5;
    color: #333;
}

.call-actions button:nth-child(2):hover {
    background-color: #e0e0e0;
}

.call-actions button:last-child {
    background-color: #ffebee;
    color: #ff4757;
}

.call-actions button:last-child:hover {
    background-color: #ffcdd2;
}

/* 对话记录页面样式 */
.dialog-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 4px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 20px;
}

.dialog-search-bar {
    padding: 0 20px 20px;
    background-color: #ffffff;
    border-radius: 0 0 4px 4px;
    margin-bottom: 20px;
}

.time-filter-buttons {
    display: flex;
    align-items: center;
    gap: 0 !important;
    flex-shrink: 0;
    white-space: nowrap;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
}

.time-filter-btn {
    padding: 6px 12px;
    border: none;
    border-right: 1px solid #e8e8e8;
    background-color: #ffffff;
    color: #333333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0 !important;
    position: relative;
    box-sizing: border-box;
    flex-shrink: 0;
}

.time-filter-btn:last-child {
    border-right: none;
}

.time-filter-btn:hover {
    background-color: #f5f5f5;
    color: #398CFF;
    z-index: 1;
}

.time-filter-btn.active {
    background-color: #398CFF;
    color: #ffffff;
    z-index: 1;
}

.filter-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-section label {
    font-size: 14px;
    color: #666;
}

.custom-time-picker {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
    border-left: 1px solid #e8e8e8;
}

.time-range-container {
    display: flex;
    align-items: center;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
    height: 34px;
}

.time-input {
    height: 100%;
    padding: 0 12px;
    border: none;
    font-size: 14px;
    outline: none;
    background-color: #ffffff;
}

.time-input:first-child {
    border-right: 1px solid #e8e8e8;
}

.time-separator {
    padding: 0 8px;
    color: #999;
    font-size: 14px;
    user-select: none;
}

.filter-section select {
    height: 34px;
    padding: 0 12px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    outline: none;
    font-size: 14px;
}

.dialog-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 4px;
    overflow: hidden;
}

.dialog-table th {
    background-color: #f5f5f5;
    padding: 12px 16px;
    text-align: left;
    font-weight: normal;
    color: #666;
    border-bottom: 1px solid #e8e8e8;
    font-size: 14px;
}

.dialog-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e8e8e8;
    font-size: 14px;
    vertical-align: top;
}

.dialog-content {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    color: #333;
}

.dialog-content:hover {
    color: #398CFF;
    text-decoration: underline;
}

.view-btn {
    padding: 2px 6px;
    background-color: transparent;
    border: none;
    border-radius: 0;
    color: #398CFF;
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
}

.view-btn:hover {
    background-color: transparent;
    text-decoration: none;
}

/* 对话详情弹窗 */
.dialog-detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.dialog-detail-modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    width: 90%;
    max-width: 1200px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.close-btn {
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #8c8c8c;
    padding: 4px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.close-btn:hover {
    color: #262626;
    background-color: #f5f5f5;
}

.modal-body {
    padding: 0;
    height: calc(85vh - 80px);
    overflow: hidden;
}

.detail-layout {
    display: flex;
    height: 100%;
    background-color: #ffffff;
.detail-left {
    width: 320px;
    background-color: #fafbfc;
    border-right: 1px solid #e8e8e8;
    padding: 24px;
    overflow-y: auto;
}
.detail-right {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
}

/* 对话记录头部 */
.conversation-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fafbfc;
}

.conversation-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.conversation-meta {
    font-size: 13px;
    color: #8c8c8c;
}

.message-count {
    font-weight: 500;
}
.header-title {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8e8e8;
}

.header-title h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.detail-info-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
}

.phone-style-container {
    flex: 1;
    background-color: #f8f9fa;
    overflow-y: auto;
    position: relative;
    scroll-behavior: smooth;
}

/* 加载状态指示器 */
.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 10;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e8e8e8;
    border-top: 3px solid #398CFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-indicator span {
    font-size: 14px;
    color: #8c8c8c;
}

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

.phone-style-container::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 8px;
    background-color: #333;
    border-radius: 4px;
}

.detail-info {
    display: flex;
    align-items: flex-start;
    font-size: 14px;
    line-height: 1.5;
}

.detail-label {
    color: #8c8c8c;
    margin-right: 12px;
    min-width: 70px;
    font-weight: 500;
}

.detail-value {
    color: #262626;
    font-weight: 400;
    flex: 1;
}

.dialog-detail-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    min-height: 100%;
}

.dialog-detail-item {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    margin-bottom: 12px;
    max-width: 75%;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    position: relative;
    animation: fadeInUp 0.3s ease-out;
}

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

.dialog-detail-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.dialog-detail-item.user {
    background: linear-gradient(135deg, #2A6FD8 0%, #398CFF 100%);
    align-self: flex-end;
    color: white;
    border-bottom-right-radius: 4px;
    margin-left: auto;
}

.dialog-detail-item.assistant {
    background-color: #FFFFFF;
    align-self: flex-start;
    border: 1px solid #e8e8e8;
    border-bottom-left-radius: 4px;
    margin-right: auto;
}

.dialog-detail-item .message-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 6px;
    text-align: right;
    font-weight: 400;
    letter-spacing: 0.2px;
}

.dialog-detail-item.assistant .message-time {
    color: #8c8c8c;
    text-align: left;
    font-weight: 400;
}

.dialog-detail-item .message-content {
    font-size: 15px;
    line-height: 1.6;
    word-break: break-word;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    font-weight: 400;
}

.dialog-detail-item.user .message-content {
    color: white;
}

.dialog-detail-item.assistant .message-content {
    color: #333;
}

.dialog-detail-item .message-content img {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .detail-layout {
        flex-direction: column;
    }

    .detail-left {
        width: 100%;
        min-width: auto;
        border-right: none;
        border-bottom: 1px solid #e8e8e8;
        padding: 20px;
    }
    
    .detail-right {
        width: 100%;
        height: 60vh;
    }

    .phone-style-container {
        min-height: 400px;
    }
    
    .dialog-detail-list {
        padding: 20px;
    }
    
    .dialog-detail-item {
        max-width: 85%;
    }
}

@media (max-width: 768px) {
    .modal-content {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .modal-header {
        padding: 16px 20px;
    }
    
    .modal-body {
        height: calc(100vh - 70px);
    }
    
    .detail-left {
        padding: 16px;
    }
    
    .conversation-header {
        padding: 16px 20px;
    }
    
    .dialog-detail-list {
        padding: 16px;
        gap: 12px;
    }
    
    .dialog-detail-item {
        max-width: 90%;
        padding: 10px 14px;
    }
    
    .dialog-detail-item .message-content {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .product-switcher,
    .product-menu {
        display: none;
    }
    
    .search-input input {
        width: 200px;
    }
}

/* 分页样式 */
.pagination {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 16px 24px;
    font-size: 14px;
    color: #666;
    background-color: #fff;
    border-radius: 8px;
    -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.pagination-info {
    font-weight: 500;
    color: #555;
}

.pagination-controls {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 16px;
}

.pagination-buttons {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 8px;
}

.pagination-btn {
    padding: 8px 16px;
    background-color: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    cursor: pointer;
    color: #333;
    font-size: 14px;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    min-width: 40px;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #398CFF;
    color: #398CFF;
    -webkit-box-shadow: 0 2px 6px rgba(57, 140, 255, 0.2);
    box-shadow: 0 2px 6px rgba(57, 140, 255, 0.2);
    -webkit-transform: translateY(-1px);
    -ms-transform: translateY(-1px);
    transform: translateY(-1px);
}

.pagination-btn:active:not(:disabled) {
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
}

.pagination-btn:disabled {
    border-color: #e8e8e8;
    color: #ccc;
    cursor: not-allowed;
    background-color: #fafafa;
}

.page-btn {
    padding: 8px 16px;
    background-color: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    cursor: pointer;
    color: #333;
    font-size: 14px;
    min-width: 40px;
    text-align: center;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    font-weight: 500;
}

.page-btn:hover:not(.active) {
    border-color: #398CFF;
    color: #398CFF;
    -webkit-box-shadow: 0 2px 6px rgba(57, 140, 255, 0.2);
    box-shadow: 0 2px 6px rgba(57, 140, 255, 0.2);
    -webkit-transform: translateY(-1px);
    -ms-transform: translateY(-1px);
    transform: translateY(-1px);
}

.page-btn:active:not(.active) {
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
}

.page-btn.active {
    background-color: #398CFF;
    color: white;
    border-color: #398CFF;
    -webkit-box-shadow: 0 3px 8px rgba(57, 140, 255, 0.3);
    box-shadow: 0 3px 8px rgba(57, 140, 255, 0.3);
    font-weight: 600;
}

.pagination-jump {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 10px;
    background-color: #f8f9fa;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #e8e8e8;
}

.pagination-jump select,
.pagination-jump input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    -webkit-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
    background-color: #fff;
}

.pagination-jump select:focus,
.pagination-jump input:focus {
    outline: none;
    border-color: #398CFF;
    -webkit-box-shadow: 0 0 0 2px rgba(57, 140, 255, 0.1);
    box-shadow: 0 0 0 2px rgba(57, 140, 255, 0.1);
}

.pagination-jump input {
    width: 65px;
    text-align: center;
    font-weight: 500;
}

.pagination-jump button {
    padding: 8px 16px;
    background-color: #398CFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    font-weight: 500;
    -webkit-box-shadow: 0 2px 4px rgba(57, 140, 255, 0.2);
    box-shadow: 0 2px 4px rgba(57, 140, 255, 0.2);
}

.pagination-jump button:hover {
    background-color: #2A6FD8;
    -webkit-box-shadow: 0 3px 6px rgba(42, 111, 216, 0.3);
    box-shadow: 0 3px 6px rgba(42, 111, 216, 0.3);
    -webkit-transform: translateY(-1px);
    -ms-transform: translateY(-1px);
    transform: translateY(-1px);
}

.pagination-jump button:active {
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
}

.page-ellipsis {
    padding: 0 10px;
    color: #999;
    font-size: 16px;
    font-weight: 500;
}

.page-separator {
    padding: 0 5px;
}

/* 响应式分页样式 */
@media (max-width: 768px) {
    .pagination {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
        padding: 16px;
    }
    
    .pagination-controls {
        flex-direction: column;
        gap: 12px;
    }
    
    .pagination-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination-jump {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .pagination-info {
        text-align: center;
    }
}

/* 数据统计子菜单样式 */
.data-statistics-menu {
    position: relative;
    z-index: 10;
}

.data-statistics-menu > a {
    pointer-events: auto;
    display: block;
}

.sub-menu {
    list-style: none;
    margin-left: 36px;
}

.sub-menu li a {
    font-size: 13px;
    padding: 8px 16px;
    color: #666;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
}

.sub-menu li a:hover {
    color: #398CFF;
    background-color: rgba(57, 140, 255, 0.05);
    border-left-color: rgba(57, 140, 255, 0.3);
}

.sub-menu li a.active {
    background-color: #e6f2ff;
    color: #398CFF;
    font-weight: bold;
    border-left-color: #398CFF;
}

/* 数据统计页面样式 */
.stats-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.chart-container {
    width: 100%;
    height: 300px;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-top: 10px;
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.stats-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stats-col {
    flex: 1;
    min-width: 200px;
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.stats-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.stats-value {
    font-size: 28px;
    font-weight: 700;
    color: #398CFF;
    margin-bottom: 8px;
}

.stats-change {
    font-size: 14px;
    color: #009900;
}

.stats-change.negative {
    color: #ff0000;
}

/* 图表容器样式 */
.chart-container {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.chart-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

/* 消息记录列表样式 */
.message-item {
    display: flex;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid #e8e8e8;
    transition: all 0.2s ease;
}

.message-item:hover {
    background-color: rgba(57, 140, 255, 0.03);
}

.message-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #f0f8ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
    color: #398CFF;
    font-size: 24px;
}

.message-content {
    flex: 1;
    min-width: 0;
}

.message-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.message-text {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.message-meta {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 通话记录样式 */
.call-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid #e8e8e8;
    transition: all 0.2s ease;
}

.call-item:hover {
    background-color: rgba(57, 140, 255, 0.03);
}

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

.call-number {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.call-time {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.call-duration {
    font-size: 13px;
    color: #666;
}

.call-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    flex-shrink: 0;
}

.call-status.success {
    background-color: #e6f9e6;
    color: #009900;
}

.call-status.failed {
    background-color: #ffe6e6;
    color: #ff0000;
}

.call-status.missed {
    background-color: #fff3e6;
    color: #ff9900;
}

/* 分页样式适配 */
.pagination {
    margin-top: 20px;
}

@media (max-width: 480px) {
    .pagination-btn,
    .page-btn {
        padding: 6px 12px;
        min-width: 32px;
        font-size: 13px;
    }
    
    .pagination-jump {
        padding: 6px 12px;
        gap: 8px;
    }
    
    .pagination-jump input {
        width: 50px;
    }
    
    .pagination-jump button {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .dialog-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-section {
        margin-bottom: 10px;
    }
    
    .dialog-detail-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .dialog-detail-item {
        max-width: 100% !important;
    }
    
    /* 数据统计响应式样式 */
    .stats-row {
        flex-direction: column;
    }
    
    .stats-col {
        min-width: auto;
    }
    
    .message-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .message-icon {
        margin-bottom: 12px;
    }
    
    .call-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

