/* 卡片组件样式 */
.card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

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

.card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-title .icon {
    font-size: 18px;
}

.card-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border-color);
    background: #fafbfc;
    font-size: 12px;
    color: var(--text-secondary);
}

/* 数据统计卡片 */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.stat-item {
    padding: 16px;
    background: var(--bg-color);
    border-radius: var(--radius-md);
    text-align: center;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-value.success {
    color: var(--success-color);
}

.stat-value.warning {
    color: var(--warning-color);
}

.stat-value.danger {
    color: var(--danger-color);
}

.stat-change {
    font-size: 12px;
    margin-top: 4px;
}

.stat-change.up {
    color: var(--success-color);
}

.stat-change.down {
    color: var(--danger-color);
}

/* 甘特图卡片 */
.gantt-chart {
    overflow-x: auto;
}

.gantt-header {
    display: flex;
    margin-bottom: 12px;
}

.gantt-title {
    width: 150px;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.gantt-timeline {
    flex: 1;
    display: flex;
}

.gantt-month {
    flex: 1;
    text-align: center;
    font-size: 11px;
    color: var(--text-secondary);
    padding: 4px;
    min-width: 60px;
}

.gantt-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.gantt-task-name {
    width: 150px;
    flex-shrink: 0;
    font-size: 13px;
    color: var(--text-primary);
    padding-right: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gantt-task-bar-container {
    flex: 1;
    height: 28px;
    position: relative;
    background: var(--bg-color);
    border-radius: 4px;
}

.gantt-task-bar {
    position: absolute;
    height: 100%;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: white;
    font-weight: 500;
    transition: all 0.3s;
}

.gantt-task-bar:hover {
    opacity: 0.9;
    transform: scaleY(1.1);
}

.gantt-task-bar.blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.gantt-task-bar.green {
    background: linear-gradient(135deg, #10b981, #059669);
}

.gantt-task-bar.orange {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.gantt-task-bar.purple {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.gantt-task-bar.red {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* 进度条 */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-color);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 8px;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-fill.blue {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.progress-fill.green {
    background: linear-gradient(90deg, #10b981, #059669);
}

.progress-fill.orange {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

/* 订单列表卡片 */
.order-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-color);
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.order-item:hover {
    background: #e5e7eb;
}

.order-info {
    flex: 1;
}

.order-id {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.order-detail {
    font-size: 12px;
    color: var(--text-secondary);
}

.order-amount {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
}

.order-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 12px;
}

/* 报销详情卡片 */
.reimburse-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.reimburse-item {
    text-align: center;
    padding: 16px;
    background: var(--bg-color);
    border-radius: var(--radius-md);
}

.reimburse-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

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

.reimburse-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reimburse-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--bg-color);
    border-radius: var(--radius-md);
}

.reimburse-desc {
    font-size: 13px;
    color: var(--text-primary);
}

.reimburse-amount {
    font-size: 14px;
    font-weight: 600;
}

/* 渠道卡片 */
.channel-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.channel-item {
    padding: 16px;
    background: var(--bg-color);
    border-radius: var(--radius-md);
    text-align: center;
}

.channel-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.channel-name {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.channel-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.channel-change {
    font-size: 12px;
    margin-top: 4px;
}

/* 数据中心表格样式 */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-color);
}

.data-table td {
    font-size: 14px;
    color: var(--text-primary);
}

.data-table tr:hover {
    background: var(--bg-color);
}

.data-table .amount {
    font-weight: 600;
    color: var(--primary-color);
}

.data-table .status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* 提示卡片 */
.tips-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: var(--radius-lg);
    padding: 14px;
    margin-top: 10px;
}

.tips-card-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #0369a1;
    margin-bottom: 10px;
}

.tips-icon {
    font-size: 16px;
}

.tips-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tip-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: white;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #e0f2fe;
}

.tip-item:hover {
    background: #f0f9ff;
    border-color: #7dd3fc;
    transform: translateX(4px);
}

.tip-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.tip-text {
    flex: 1;
    font-size: 12px;
    color: var(--text-primary);
}

.tip-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tip-followups {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tip-followup-btn {
    padding: 3px 8px;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    font-size: 11px;
    color: #0369a1;
    cursor: pointer;
    transition: all 0.2s;
}

.tip-followup-btn:hover {
    background: #bae6fd;
    border-color: #7dd3fc;
}

.tip-roles {
    font-size: 11px;
    color: #0ea5e9;
    background: #e0f2fe;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 2px;
}

.tip-btn {
    padding: 3px 10px;
    background: #0ea5e9;
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.tip-btn:hover {
    background: #0284c7;
}

/* 选择模式弹窗 */
.select-modal {
    width: 400px;
    max-width: 90%;
}

/* 群聊快捷卡片 */
.group-tips-card {
    width: 500px;
    max-width: 100%;
    margin: 0;
    text-align: left;
}

.group-tips-card .tips-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.group-tips-card .tip-item {
    justify-content: flex-start;
}

.system-message .tips-card {
    margin-top: 0;
    text-align: left;
}

.select-mode-modal {
    padding: 20px;
}

.select-mode-header {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-align: center;
}

.select-mode-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.select-mode-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #f9fafb;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.select-mode-item:hover {
    background: #eef2ff;
    border-color: var(--primary-color);
}

.mode-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.mode-info {
    flex: 1;
}

.mode-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.mode-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.tip-btn {
    padding: 4px 12px;
    background: #0ea5e9;
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.tip-btn:hover {
    background: #0284c7;
}

/* 响应式 */
@media (max-width: 768px) {
    .stat-grid {
        grid-template-columns: 1fr;
    }
    
    .reimburse-summary {
        grid-template-columns: 1fr;
    }
    
    .channel-grid {
        grid-template-columns: 1fr;
    }
}
