/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    color: #333;
    background-color: #f5f7fa;
}

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

.login-box {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    width: 400px;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 24px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #606266;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #409eff;
}

.captcha-group {
    display: flex;
    gap: 10px;
}

.captcha-group input {
    flex: 1;
}

.captcha-img {
    width: 120px;
    height: 40px;
    background: #f5f7fa;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 4px;
    user-select: none;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-primary {
    background: #409eff;
    color: #fff;
    width: 100%;
}

.btn-primary:hover {
    background: #66b1ff;
}

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

/* 后台管理系统布局 */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* 侧边栏样式 */
.sidebar {
    width: 220px;
    background: #304156;
    color: #fff;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: width 0.25s ease;
}

.sidebar-logo {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 14px 0 18px;
    background: #2b3a4d;
    font-size: 18px;
    font-weight: bold;
}

.sidebar-logo-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.sidebar-toggle {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    transition: all 0.2s ease;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.32);
}

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

.sidebar-menu li {
    padding: 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    color: #bfcbd9;
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: #263445;
    color: #fff;
}

.menu-icon {
    flex: 0 0 20px;
    width: 20px;
    text-align: center;
}

.menu-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.admin-layout.sidebar-collapsed .sidebar {
    width: 72px;
}

.admin-layout.sidebar-collapsed .sidebar-logo {
    justify-content: center;
    padding: 0;
}

.admin-layout.sidebar-collapsed .sidebar-logo-text,
.admin-layout.sidebar-collapsed .menu-text {
    opacity: 0;
    width: 0;
}

.admin-layout.sidebar-collapsed .sidebar-toggle {
    transform: rotate(180deg);
}

.admin-layout.sidebar-collapsed .sidebar-menu a {
    justify-content: center;
    gap: 0;
    padding: 14px 0;
}

/* 主内容区 */
.main-content {
    flex: 1;
    margin-left: 220px;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.25s ease;
}

.admin-layout.sidebar-collapsed .main-content {
    margin-left: 72px;
}

/* 顶部导航 */
.header {
    height: 60px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-user span {
    color: #606266;
}

.btn-logout {
    background: #f56c6c;
    color: #fff;
    padding: 6px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.btn-logout:hover {
    background: #f78989;
}

/* 内容区域 */
.content {
    flex: 1;
    padding: 20px;
}

/* 卡片样式 */
.card {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ebeef5;
}

.card-header h3 {
    font-size: 16px;
    color: #303133;
}

/* 表格样式 */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ebeef5;
}

.table th {
    background: #f5f7fa;
    color: #606266;
    font-weight: 600;
}

.table tr:hover {
    background: #f5f7fa;
}

/* 表格文本缩略样式 */
.table .text-ellipsis {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.table .table-multi-line {
    margin-bottom: 4px;
    line-height: 1.5;
}

.table .table-multi-line:last-child {
    margin-bottom: 0;
}

/* 状态标签 */
.tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
}

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

.tag-done {
    background: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

.tag-level-normal {
    background: #f0f9ff;
    color: #409eff;
    border: 1px solid #b3d8ff;
}

.tag-level-high {
    background: #fdf6ec;
    color: #e6a23c;
    border: 1px solid #f5dab1;
}

.tag-level-urgent {
    background: #fef0f0;
    color: #f56c6c;
    border: 1px solid #fbc4c4;
}

/* 按钮组 */
.btn-group {
    display: flex;
    gap: 10px;
}

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

.btn-edit {
    background: #409eff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-edit:hover {
    background: #66b1ff;
}

/* 添加到客户台账按钮 */
.btn-add-customer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    margin-right: 8px;
    background: #67c23a;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    vertical-align: middle;
    transition: all 0.3s;
}

.btn-add-customer:hover {
    background: #85ce61;
    transform: scale(1.1);
}

.btn-add {
    background: #67c23a;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    padding: 8px 16px;
}

.btn-add:hover {
    background: #85ce61;
}

.btn-success {
    background: #409eff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    padding: 8px 16px;
}

.btn-success:hover {
    background: #66b1ff;
}

.btn-danger {
    background: #f56c6c;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    padding: 8px 16px;
}

.btn-danger:hover {
    background: #f78989;
}

/* 筛选表单 */
.filter-form {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-form .form-group {
    margin-bottom: 0;
}

.filter-form select {
    padding: 8px 12px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    font-size: 14px;
    min-width: 150px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.pagination button {
    padding: 6px 12px;
    border: 1px solid #dcdfe6;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
}

.pagination button:hover:not(:disabled) {
    color: #409eff;
    border-color: #409eff;
}

.pagination button:disabled {
    cursor: not-allowed;
    color: #c0c4cc;
}

.pagination span {
    color: #606266;
}

/* 表单页面 */
.form-page {
    max-width: 800px;
}

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

.form-page label {
    display: block;
    margin-bottom: 8px;
    color: #606266;
    font-weight: 500;
}

.form-page label .required {
    color: #f56c6c;
    margin-right: 4px;
}

.form-page input,
.form-page select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    font-size: 14px;
}

.form-page input:focus,
.form-page select:focus {
    outline: none;
    border-color: #409eff;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-cancel {
    background: #fff;
    color: #606266;
    border: 1px solid #dcdfe6;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-cancel:hover {
    color: #409eff;
    border-color: #c6e2ff;
    background: #ecf5ff;
}

/* 附件上传区域 */
.attachment-area {
    margin-top: 20px;
}

.attachment-list {
    margin-top: 15px;
}

.attachment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: #f5f7fa;
    border-radius: 4px;
    margin-bottom: 10px;
}

.attachment-item .file-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.attachment-item .file-name {
    color: #303133;
}

.attachment-item .file-size {
    color: #909399;
    font-size: 12px;
}

.attachment-item .file-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-remove {
    background: #f56c6c;
    color: #fff;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.btn-remove:hover {
    background: #f78989;
}

.btn-upload {
    background: #409eff;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-upload:hover {
    background: #66b1ff;
}

.btn-download {
    background: #67c23a;
    color: #fff;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    text-decoration: none;
    display: inline-block;
}

.btn-download:hover {
    background: #85ce61;
}

/* 消息提示 */
.message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 20px;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    z-index: 9999;
    animation: slideDown 0.3s ease;
}

.message-success {
    background: #67c23a;
}

.message-error {
    background: #f56c6c;
}

.message-warning {
    background: #e6a23c;
}

@keyframes slideDown {
    from {
        opacity: 0;
        top: -20px;
    }
    to {
        opacity: 1;
        top: 20px;
    }
}

/* 加载状态 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.loading::after {
    content: "加载中...";
    color: #909399;
}

/* 空状态 */
.empty {
    text-align: center;
    padding: 40px;
    color: #909399;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s ease;
}

.ticket-modal-content {
    max-width: 1100px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #ebeef5;
}

.modal-header h3 {
    font-size: 18px;
    color: #303133;
    margin: 0;
}

.modal-close {
    font-size: 28px;
    font-weight: bold;
    color: #909399;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #303133;
}

.modal-body {
    padding: 20px;
}

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

.modal-body label {
    display: block;
    margin-bottom: 8px;
    color: #606266;
    font-weight: 500;
}

.modal-body label .required {
    color: #f56c6c;
    margin-right: 4px;
}

.modal-body input,
.modal-body select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    font-size: 14px;
}

.modal-body input:focus,
.modal-body select:focus {
    outline: none;
    border-color: #409eff;
}

/* 表单行布局 */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-col {
    flex: 1;
}

.form-col-wide {
    flex: 2;
}

.form-col-narrow {
    flex: 1;
}

.form-col label {
    display: block;
    margin-bottom: 8px;
    color: #606266;
    font-weight: 500;
}

.form-col label .required {
    color: #f56c6c;
    margin-right: 4px;
}

.form-col input,
.form-col select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    font-size: 14px;
}

.form-col input:focus,
.form-col select:focus {
    outline: none;
    border-color: #409eff;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 富文本编辑器样式 */
.rich-editor-container {
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    overflow: hidden;
}

.rich-editor-toolbar {
    display: flex;
    gap: 5px;
    padding: 8px;
    background: #f5f7fa;
    border-bottom: 1px solid #dcdfe6;
    flex-wrap: wrap;
}

.rich-editor-toolbar button {
    padding: 5px 10px;
    border: 1px solid #dcdfe6;
    background: #fff;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
    color: #606266;
    transition: all 0.2s;
}

.rich-editor-toolbar button:hover {
    background: #ecf5ff;
    border-color: #409eff;
    color: #409eff;
}

.rich-editor-toolbar button.active {
    background: #409eff;
    border-color: #409eff;
    color: #fff;
}

.rich-editor-toolbar .separator {
    width: 1px;
    background: #dcdfe6;
    margin: 0 5px;
}

.rich-editor-content {
    min-height: 200px;
    padding: 12px;
    outline: none;
    font-size: 14px;
    line-height: 1.6;
}

.rich-editor-content:focus {
    background: #fafafa;
}

.rich-editor-content img {
    max-width: 100%;
    height: auto;
}

.rich-editor-content a {
    color: #409eff;
    text-decoration: none;
}

.rich-editor-content a:hover {
    text-decoration: underline;
}

.rich-editor-content blockquote {
    border-left: 4px solid #409eff;
    padding-left: 12px;
    margin: 10px 0;
    color: #606266;
    background: #f5f7fa;
    padding: 10px 12px;
}

.rich-editor-content pre {
    background: #f5f7fa;
    padding: 12px;
    border-radius: 4px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.rich-editor-content code {
    background: #f5f7fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #e6a23c;
}

/* 确认弹窗样式 */
.modal-sm {
    max-width: 500px;
}

.confirm-info {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px 0;
}

.confirm-icon {
    flex-shrink: 0;
}

.confirm-content {
    flex: 1;
}

.confirm-title {
    font-size: 16px;
    font-weight: 500;
    color: #303133;
    margin: 0 0 15px 0;
}

.confirm-details {
    background: #f5f7fa;
    border-radius: 8px;
    padding: 15px;
}

.detail-item {
    display: flex;
    margin-bottom: 10px;
    line-height: 1.6;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-label {
    color: #909399;
    font-size: 14px;
    min-width: 120px;
}

.detail-value {
    color: #303133;
    font-size: 14px;
    font-weight: 500;
    word-break: break-all;
}

.confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ebeef5;
}

.btn-confirm {
    min-width: 100px;
}

/* 跟进记录弹窗样式 */
.modal-lg {
    max-width: 900px;
}

.modal-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header-actions .btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.follow-record-info {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f5f7fa;
    border-radius: 8px;
}

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

.info-label {
    color: #909399;
    font-size: 14px;
    margin-right: 8px;
}

.info-value {
    color: #303133;
    font-size: 14px;
    font-weight: 500;
}

/* 跟进状态标签 */
.tag-primary {
    background: #ecf5ff;
    color: #409eff;
    border: 1px solid #d9ecff;
}

.tag-info {
    background: #f4f4f5;
    color: #909399;
    border: 1px solid #e9e9eb;
}

.tag-default {
    background: #f4f4f5;
    color: #909399;
    border: 1px solid #e9e9eb;
}

/* 文本域样式 */
textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s;
}

textarea:focus {
    outline: none;
    border-color: #409eff;
}

/* 表单行列布局 */
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-col {
    flex: 1;
}

/* 工单核心企业编辑 */
.core-ent-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.core-ent-header label {
    margin-bottom: 0;
}

.core-ent-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.core-ent-row {
    padding: 12px;
    border: 1px solid #e4e7ed;
    border-radius: 6px;
    background: #fafbfc;
}

.core-ent-row-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #303133;
    font-weight: 600;
}

.core-ent-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
}

.core-ent-input-action {
    display: flex;
    gap: 8px;
}

.core-ent-input-action input {
    flex: 1;
    min-width: 0;
}

.core-ent-input-action .btn {
    width: auto;
    white-space: nowrap;
}

.core-ent-belong {
    background-color: #f5f7fa;
    cursor: not-allowed;
}

.remove-core-ent:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 1200px) {
    .core-ent-grid {
        grid-template-columns: 1fr;
    }
}

/* 文件上传区域 */
.file-upload-area {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    margin-top: 8px;
}

.file-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #f5f7fa;
    border: 1px solid #e4e7ed;
    border-radius: 4px;
    font-size: 13px;
}

.file-name {
    color: #303133;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size {
    color: #909399;
    font-size: 12px;
}

.file-empty {
    color: #909399;
    font-size: 13px;
}

.btn-remove-file {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    background: #f56c6c;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-remove-file:hover {
    background: #f78989;
}

/* 成交记录卡片样式 */
.deal-card-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.deal-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

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

.deal-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.deal-id {
    font-weight: 600;
    font-size: 16px;
}

.deal-ticket-id {
    font-size: 14px;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
}

.deal-card-body {
    padding: 24px;
}

/* 金额区域 */
.deal-amount-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.deal-amount-item {
    text-align: center;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.deal-amount-label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.deal-amount-value {
    font-size: 20px;
    font-weight: 700;
}

.deal-amount-value.primary {
    color: #409eff;
}

.deal-amount-value.success {
    color: #67c23a;
}

.deal-amount-value.warning {
    color: #e6a23c;
}

/* 分隔线 */
.deal-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #e9ecef, transparent);
    margin: 20px 0;
}

/* 文件统计区域 */
.deal-file-section {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.deal-file-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.deal-file-icon {
    font-size: 20px;
}

.deal-file-label {
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
    flex: 1;
}

.deal-file-count {
    font-size: 14px;
    color: #409eff;
    font-weight: 600;
    background: #ecf5ff;
    padding: 2px 10px;
    border-radius: 12px;
}

/* 时间区域 */
.deal-time-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.deal-time-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #fafbfc;
    border-radius: 6px;
    border-left: 3px solid #409eff;
}

.deal-time-item.full-width {
    grid-column: 1 / -1;
}

.deal-time-label {
    font-size: 13px;
    color: #6c757d;
    min-width: 80px;
    font-weight: 500;
}

.deal-time-value {
    font-size: 14px;
    color: #303133;
    font-weight: 600;
}

.deal-time-item:last-child .deal-time-label {
    min-width: 80px;
}

/* 底部操作区 */
.deal-card-footer {
    display: flex;
    justify-content: flex-end;
    padding: 16px 24px;
    background: #fafbfc;
    border-top: 1px solid #e9ecef;
}

/* 统计管理 */
.stats-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 20px;
}

.stats-channel-panel {
    min-width: 0;
    border: 1px solid #e4e7ed;
    border-radius: 6px;
    background: #fafbfc;
    overflow: hidden;
}

.stats-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid #e4e7ed;
    background: #fff;
}

.stats-panel-header h4 {
    color: #303133;
    font-size: 15px;
    font-weight: 600;
}

.stats-channel-list {
    max-height: 680px;
    overflow-y: auto;
    padding: 10px;
}

.stats-channel-item {
    display: block;
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 8px;
    text-align: left;
    background: #fff;
    border: 1px solid #e4e7ed;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.stats-channel-item:hover {
    border-color: #409eff;
    background: #ecf5ff;
}

.stats-channel-item.active {
    border-color: #409eff;
    background: #ecf5ff;
    box-shadow: inset 3px 0 0 #409eff;
}

.channel-nickname {
    display: block;
    color: #303133;
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.channel-account {
    display: block;
    margin-top: 5px;
    color: #909399;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stats-channel-empty {
    padding: 18px 12px;
    color: #909399;
    font-size: 13px;
    text-align: center;
}

.stats-content-panel {
    min-width: 0;
}

.stats-block {
    padding: 18px 0 24px;
    border-top: 1px solid #ebeef5;
}

.stats-block:first-of-type {
    padding-top: 0;
    border-top: none;
}

.stats-block:last-child {
    padding-bottom: 0;
}

.stats-block > h4 {
    margin-bottom: 16px;
    color: #303133;
    font-size: 16px;
    font-weight: 600;
}

.stats-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stats-card {
    padding: 18px 20px;
    background: #f8fafc;
    border: 1px solid #e4e7ed;
    border-radius: 6px;
}

.stats-label {
    color: #909399;
    font-size: 13px;
    margin-bottom: 10px;
}

.stats-value {
    color: #303133;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
}

.stats-value.success {
    color: #67c23a;
}

.stats-value.warning {
    color: #e6a23c;
}

.stats-table-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.stats-table-card {
    min-width: 0;
}

.stats-table-card h4 {
    margin-bottom: 12px;
    color: #303133;
    font-size: 15px;
    font-weight: 600;
}

@media (max-width: 1200px) {
    .stats-layout,
    .stats-summary,
    .stats-table-section {
        grid-template-columns: 1fr;
    }

    .stats-channel-list {
        max-height: 320px;
    }
}
