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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 登录页样式 */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f5f5f5;
}

.login-form {
    width: 100%;
    max-width: 400px;
    background-color: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.login-form .btn-primary {
    width: 100%;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-control:focus {
    outline: none;
    border-color: #4a90e2;
}

.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #4a90e2;
    color: #fff;
}

.btn-primary:hover {
    background-color: #357ae8;
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-success {
    background-color: #28a745;
    color: #fff;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-danger {
    background-color: #dc3545;
    color: #fff;
}

.btn-danger:hover {
    background-color: #c82333;
}

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

/* 提示框样式 */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* 头部样式 */
.header {
    background-color: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

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

.user-info span {
    margin-right: 15px;
    font-size: 14px;
}

.logout-btn {
    color: #4a90e2;
    text-decoration: none;
    font-size: 14px;
}

/* 侧边栏样式 */
.sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    bottom: 0;
    width: 200px;
    background-color: #fff;
    box-shadow: 1px 0 4px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    z-index: 900;
}

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

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

.sidebar-menu a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
}

.sidebar-menu a:hover {
    background-color: #f5f5f5;
}

.sidebar-menu a.active {
    background-color: #4a90e2;
    color: #fff;
}

/* 主内容区域样式 */
.main-content {
    margin-left: 200px;
    margin-top: 60px;
    padding: 20px;
    min-height: calc(100vh - 60px);
}

.page-title {
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 500;
}

/* 统计卡片样式 */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: #fff;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

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

.stat-value {
    font-size: 24px;
    font-weight: 500;
}

.primary {
    border-left: 4px solid #4a90e2;
}

.success {
    border-left: 4px solid #28a745;
}

.warning {
    border-left: 4px solid #ffc107;
}

.danger {
    border-left: 4px solid #dc3545;
}

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

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

.card-title {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
}

.card-body {
    padding: 20px;
}

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

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

.table th {
    font-weight: 500;
    background-color: #f9f9f9;
}

.table tr:hover {
    background-color: #f5f5f5;
}

.table a {
    color: #3b0ca0;
    text-decoration: none;
}

.table a:hover {
    text-decoration: underline;
}

.amount {
    text-align: right;
}

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

.status-success {
    background-color: #d4edda;
    color: #155724;
}

.status-failed {
    background-color: #f8d7da;
    color: #721c24;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-warning {
    background-color: #fff3cd;
    color: #856404;
}

/* 水印文字 */
.watermark {
    color: #999;
}

/* 文本颜色 */
.text-danger {
    color: #dc3545;
}

.text-success {
    color: #28a745;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination a {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 3px;
    color: #333;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.pagination a:hover {
    background-color: #f5f5f5;
}

.pagination a.active {
    background-color: #4a90e2;
    color: #fff;
    border-color: #4a90e2;
}

.pagination a.disabled {
    color: #999;
    pointer-events: none;
}

/* 搜索表单 */
.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.search-form .form-group {
    margin-bottom: 0;
    flex: 1;
    min-width: 200px;
}

.search-form .btn {
    align-self: flex-end;
    width: auto;
}

/* 客户详情页 */
.customer-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.info-item {
    margin-bottom: 15px;
}

.info-label {
    font-weight: 500;
    margin-bottom: 5px;
    color: #666;
}

.info-value {
    font-size: 16px;
}

.follow-up-list {
    margin-top: 20px;
}

.follow-up-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.follow-up-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.follow-up-user {
    font-weight: 500;
}

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

.follow-up-content {
    margin-bottom: 10px;
}

.follow-up-status {
    font-size: 12px;
}

/* 标签样式 */
.tag {
    display: inline-block;
    padding: 2px 8px;
    margin-right: 5px;
    margin-bottom: 5px;
    background-color: #e9ecef;
    border-radius: 3px;
    font-size: 12px;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .sidebar {
        width: 60px;
    }
    
    .sidebar-menu a {
        padding: 10px;
        text-align: center;
    }
    
    .sidebar-menu a span {
        display: none;
    }
    
    .main-content {
        margin-left: 60px;
    }
}

@media (max-width: 576px) {
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        flex-direction: column;
        height: auto;
        padding: 10px 0;
    }
    
    .user-info {
        margin-top: 10px;
    }
}
