/* 全局样式重置 */
* {
    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;
}

/* 头部样式 */
.header {
    background-color: transparent;
    color: #333;
    padding: 10px 0;
    box-shadow: none;
}

.header .container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0px;
}

/* 顶部信息栏 - 第一行 */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* 咨询热线 */
.contact-hotline {
    font-size: 14px;
    color: #333;
    font-weight: normal;
}

/* 用户信息区域 */
.user-info {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    line-height: 1.4;
}

.user-info span {
    color: #333;
}

.user-info a {
    color: #333;
    text-decoration: none;
    padding: 4px 8px;
    background-color: transparent;
    border-radius: 4px;
    transition: color 0.3s;
    font-weight: normal;
}

.user-info a:hover {
    background-color: transparent;
    color: #6366f1;
    text-decoration: underline;
}

/* LOGO区域 - 第二行 */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    display: inline-block;
    text-decoration: none;
    color: #333;
}

.logo img {
    height: auto;
    width: auto;
    max-width: 100%;
}

/* 导航区域 - 第三行 */
.nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    background-color: transparent;
    padding: 15px 0;
    border-radius: 0;
    border-bottom: 1px solid #e9ecef;
}

.nav a {
    color: #333;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.6;
    background-color: #f8f9fa;
    border: 2px solid transparent;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.nav a:hover {
    background-color: #6366f1;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
}

.nav a.active {
    background-color: #6366f1;
    color: white;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
    border-color: #4f46e5;
}

/* 主内容区域 */
.main {
    padding: 10px 0;
    min-height: calc(100vh - 120px);
}

/* 页脚样式 */
.footer {
    background-color: #333;
    color: white;
    padding: 15px 0;
    text-align: center;
    margin-top: 20px;
}

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

.card-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #6366f1;
    color: white;
}

.btn-primary:hover {
    background-color: #4f46e5;
}

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

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

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

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

.btn-warning {
    background-color: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background-color: #e0a800;
}

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

.btn-lg {
    padding: 15px 30px;
    font-size: 16px;
}

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

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

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

.form-control:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

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

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* 表格样式 */
.table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #666;
}

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

.table tr:last-child td {
    border-bottom: none;
}

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

.pagination .page-link {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #6366f1;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination .page-link:hover {
    background-color: #f5f5f5;
    border-color: #6366f1;
}

.pagination .page-link.active {
    background-color: #6366f1;
    color: white;
    border-color: #6366f1;
}

/* 列表样式 */
.list {
    list-style: none;
}

.list-item {
    padding: 12px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-item:last-child {
    border-bottom: none;
}

/* 徽章样式 */
.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

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

.badge-warning {
    background-color: #ffc107;
    color: #212529;
}

.badge-danger {
    background-color: #dc3545;
}

.badge-info {
    background-color: #17a2b8;
}

/* 评价等级样式 */
.evaluation-level {
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    color: white;
    display: inline-block;
    transition: all 0.3s;
}

/* 评价等级颜色：A~D红-黄渐变，E灰色 */
.evaluation-level-A {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
}

.evaluation-level-B {
    background: linear-gradient(135deg, #ff8e53, #ffd93d);
}

.evaluation-level-C {
    background: linear-gradient(135deg, #ffd93d, #ffe66d);
}

.evaluation-level-D {
    background: linear-gradient(135deg, #ffe66d, #ffd3b6);
    color: #333;
}

.evaluation-level-E {
    background-color: #9e9e9e;
}

/* 搜索框样式 */
.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* 筛选器样式 */
.filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.filter-group label {
    font-weight: bold;
    color: #666;
}

.filter-group select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* 状态指示器样式 */
.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-indicator.active {
    background-color: #28a745;
}

.status-indicator.inactive {
    background-color: #dc3545;
}

.status-indicator.pending {
    background-color: #ffc107;
}

/* 消息提示样式 */
.message {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: bold;
}

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

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

.message-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.message-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

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

.stat-card {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-value {
    font-size: 36px;
    font-weight: bold;
    color: #6366f1;
    margin-bottom: 5px;
}

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

/* 评价看板样式 */
.evaluation-board {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

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

.board-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.board-actions {
    display: flex;
    gap: 10px;
}

/* 头像样式 */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #eee;
}

.avatar-lg {
    width: 80px;
    height: 80px;
}

.avatar-md {
    width: 60px;
    height: 60px;
}

/* 快速进入按钮样式 */
.quick-entry-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-entry-btn {
    padding: 8px 15px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: calc(50% - 10px);
    max-width: calc(50% - 10px);
    text-align: center;
}

.quick-entry-btn:hover {
    background-color: #45a049;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .quick-entry-btn {
        min-width: calc(50% - 5px);
        max-width: calc(50% - 5px);
        padding: 6px 8px;
        font-size: 13px;
        gap: 5px;
    }
    
    .quick-entry-container {
        gap: 5px;
    }
    .header-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 15px;
    }
    
    .contact-hotline {
        font-size: 13px;
    }
    
    .user-info {
        justify-content: flex-end;
        font-size: 13px;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    @media (max-width: 576px) {
        .header-top {
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
        }
        
        .contact-hotline {
            text-align: left;
            font-size: 12px;
        }
        
        .user-info {
            justify-content: flex-end;
            font-size: 12px;
        }
        
        .user-info a {
            padding: 3px 6px;
        }
    }
    
    .nav {
        flex-wrap: nowrap;
        justify-content: center;
        width: 100%;
        gap: 10px;
        padding: 12px 0;
    }
    
    .nav a {
        padding: 10px 18px;
        font-size: 16px;
        white-space: nowrap;
        border-radius: 25px;
        font-weight: 600;
        background-color: #f8f9fa;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }
    
    @media (max-width: 576px) {
        .nav {
            gap: 8px;
            padding: 10px 0;
        }
        
        .nav a {
            padding: 8px 16px;
            font-size: 14px;
            border-radius: 20px;
        }
    }
    
    .logo-container {
        padding: 0 10px;
    }
    
    .logo img {
        /* 移除手机端高度限制，使用默认大小 */
        max-height: none;
        height: auto;
    }
    
    .header .container {
        padding: 0 10px;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .stats-cards {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .table {
        font-size: 12px;
    }
    
    .table th,
    .table td {
        padding: 8px;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #6366f1;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 隐藏元素 */
.hidden {
    display: none !important;
}

/* 清除浮动 */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* 辅助类 */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

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

.text-danger {
    color: #dc3545;
}

.text-warning {
    color: #ffc107;
}

.text-info {
    color: #17a2b8;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 5px;
}

.mb-2 {
    margin-bottom: 10px;
}

.mb-3 {
    margin-bottom: 15px;
}

.mb-4 {
    margin-bottom: 20px;
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: 5px;
}

.mt-2 {
    margin-top: 10px;
}

.mt-3 {
    margin-top: 15px;
}

.mt-4 {
    margin-top: 20px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.p-0 {
    padding: 0;
}

.p-1 {
    padding: 5px;
}

.p-2 {
    padding: 10px;
}

.p-3 {
    padding: 15px;
}

.p-4 {
    padding: 20px;
}

.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.justify-content-center {
    justify-content: center;
}

.align-items-center {
    align-items: center;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-column {
    flex-direction: column;
}

.gap-1 {
    gap: 5px;
}

.gap-2 {
    gap: 10px;
}

.gap-3 {
    gap: 15px;
}

.gap-4 {
    gap: 20px;
}

.w-100 {
    width: 100%;
}

.h-100 {
    height: 100%;
}
