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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* 管理员容器 */
.admin-container {
    display: flex;
    height: 100vh;
}

/* 侧边栏 */
.sidebar {
    width: 250px;
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 1000;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.sidebar-header i {
    margin-right: 10px;
    color: #3498db;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.sidebar-nav ul {
    list-style: none;
}

.nav-item {
    margin-bottom: 5px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-item.active .nav-link {
    background-color: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border-left-color: #3498db;
}

.nav-link i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.logout-btn {
    width: 100%;
    padding: 10px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.logout-btn i {
    margin-right: 8px;
}

/* 主内容区 */
.main-content {
    flex: 1;
    margin-left: 250px;
    display: flex;
    flex-direction: column;
}

/* 头部 */
.header {
    background: white;
    padding: 0 30px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header h1 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
}

.user-info {
    display: flex;
    align-items: center;
    color: #7f8c8d;
}

.user-info i {
    margin-right: 8px;
}

/* 内容区域 */
.content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.page-content {
    display: none;
}

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

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

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card.clickable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.stat-card.clickable:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-card.clickable:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 24px;
    color: white;
}

.stat-card:nth-child(1) .stat-icon {
    background: linear-gradient(45deg, #3498db, #2980b9);
}

.stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
}

.stat-card:nth-child(3) .stat-icon {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
}

.stat-card:nth-child(4) .stat-icon {
    background: linear-gradient(45deg, #f39c12, #e67e22);
}

.stat-info h3 {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.stat-info p {
    color: #7f8c8d;
    font-size: 14px;
}

/* 图表容器 */
.chart-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.chart-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.chart-card h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 18px;
}

/* 页面头部 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

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

.search-box {
    display: flex;
    gap: 10px;
}

.search-box input,
.search-box select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

/* 按钮样式 */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-success {
    background: #27ae60;
    color: white;
}

.btn-success:hover {
    background: #229954;
}

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

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

.btn-warning {
    background: #f39c12;
    color: white;
}

.btn-warning:hover {
    background: #e67e22;
}

/* 表格样式 */
.table-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

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

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.data-table tr:hover {
    background: #f8f9fa;
}

.data-table img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

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

.pagination button {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.pagination button:hover {
    background: #f8f9fa;
}

.pagination button.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.modal-content {
    background-color: white;
    margin: 3% auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: #2c3e50;
    display: flex;
    align-items: center;
}

.modal-header h2 i {
    margin-right: 10px;
    color: #3498db;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    text-align: right;
    border-top: 1px solid #eee;
    background-color: #f8f9fa;
}

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

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

/* 二维码网格 */
.qrcode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.qrcode-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.qrcode-item img {
    width: 150px;
    height: 150px;
    margin-bottom: 15px;
    border: 1px solid #eee;
}

.qrcode-item h4 {
    margin-bottom: 5px;
    color: #2c3e50;
}

.qrcode-item p {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 15px;
}

/* 统计页面样式 */
.stats-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    background: #f8f9fa;
}

.stat-item h3 {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.stat-item p {
    color: #7f8c8d;
    font-size: 14px;
}

.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.chart-wrapper {
    text-align: center;
}

.chart-wrapper h3 {
    margin-bottom: 20px;
    color: #2c3e50;
}

/* 配置页面样式 */
.config-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(149, 157, 165, 0.2);
    padding: 30px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease forwards;
}

.config-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(149, 157, 165, 0.3);
}

.config-section h3 {
    margin-bottom: 25px;
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
    position: relative;
    padding-bottom: 12px;
    display: flex;
    align-items: center;
}

.config-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #3498db, rgba(52, 152, 219, 0.2));
}

.config-section h3 i {
    margin-right: 10px;
    color: #3498db;
}

.config-form {
    max-width: 800px;
}

.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.config-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.config-card:hover {
    background-color: #f0f2f5;
}

.satisfaction-option {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    transition: all 0.3s ease;
}

.satisfaction-option:hover {
    background: #f0f2f5;
    transform: translateX(5px);
}

.satisfaction-option input {
    flex: 1;
    margin: 0;
    padding: 10px 15px;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.satisfaction-option input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.satisfaction-option button {
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 6px;
}

.satisfaction-option .drag-handle {
    cursor: move;
    color: #95a5a6;
    padding: 5px;
}

.satisfaction-option .drag-handle:hover {
    color: #3498db;
}

.config-form .form-group {
    margin-bottom: 25px;
}

.config-form .form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #2c3e50;
}

.config-form .form-group input,
.config-form .form-group select,
.config-form .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.config-form .form-group input:focus,
.config-form .form-group select:focus,
.config-form .form-group textarea:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
}

.config-form .form-group .hint {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #7f8c8d;
}

.config-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 25px;
}

.config-actions .btn {
    padding: 10px 20px;
    font-size: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* 加载动画 */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 消息提示 */
.message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    color: white;
    font-weight: 500;
    z-index: 9999;
    display: none;
    min-width: 300px;
}

.message.success {
    background: #27ae60;
}

.message.error {
    background: #e74c3c;
}

.message.warning {
    background: #f39c12;
}

.message.info {
    background: #3498db;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .admin-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .chart-container {
        grid-template-columns: 1fr;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .banner-grid {
        grid-template-columns: 1fr;
    }
}

/* 轮播图管理样式 */
.banner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.banner-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.banner-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.banner-image {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9比例，可根据需要调整 */
    position: relative;
    overflow: hidden;
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid #eee;
}

.banner-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* 保持原比例完整显示图片 */
    display: block;
    transition: transform 0.3s ease;
}

.banner-item:hover .banner-image img {
    transform: scale(1.03);
}

.banner-inactive .banner-image {
    opacity: 0.6;
    filter: grayscale(0.5);
}

.banner-content {
    padding: 15px;
}

.banner-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.banner-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    color: #7f8c8d;
}

.banner-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 2;
}

.banner-status.active {
    background-color: #e1f5e9;
    color: #27ae60;
}

.banner-status.inactive {
    background-color: #f8f9fa;
    color: #95a5a6;
}

.banner-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.banner-sort {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 12px;
    z-index: 2;
}

#banner-preview {
    margin-top: 10px;
    text-align: center;
}

#banner-preview img {
    max-width: 100%;
    max-height: 220px;
    border-radius: 4px;
    border: 1px solid #ddd;
    object-fit: contain;
    background-color: #f8f9fa;
}

#evaluation-details-content .complaint-content {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 10px;
    margin-top: 5px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

#evaluation-details-content .complaint-images {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#evaluation-details-content .complaint-images img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: transform 0.2s;
}

#evaluation-details-content .complaint-images img:hover {
    transform: scale(1.05);
    cursor: pointer;
}

/* 评价详情模态框样式 */
.evaluation-detail {
  max-height: 70vh;
  overflow-y: auto;
  padding: 10px;
}

.detail-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 20px;
  margin-bottom: 20px;
}

.detail-card h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #2c3e50;
  font-size: 18px;
  font-weight: 600;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.detail-card h3 i {
  margin-right: 8px;
  color: #3498db;
}

.detail-item {
  display: flex;
  margin-bottom: 12px;
}

.detail-item.full-width {
  flex-direction: column;
}

.detail-label {
  font-weight: 500;
  color: #555;
  width: 100px;
  flex-shrink: 0;
}

.detail-value {
  color: #333;
  flex: 1;
}

/* 满意度颜色 */
.satisfaction-very_satisfied {
  color: #27ae60;
  font-weight: 600;
}

.satisfaction-satisfied {
  color: #2ecc71;
  font-weight: 600;
}

.satisfaction-neutral {
  color: #f39c12;
  font-weight: 600;
}

.satisfaction-dissatisfied {
  color: #e67e22;
  font-weight: 600;
}

.satisfaction-very_dissatisfied {
  color: #e74c3c;
  font-weight: 600;
}

/* 状态标签 */
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  color: white;
}

.badge-success {
  background-color: #2ecc71;
}

.badge-warning {
  background-color: #f39c12;
}

.badge-info {
  background-color: #3498db;
}

.badge-secondary {
  background-color: #95a5a6;
}

/* 投诉内容和图片 */
.complaint-content {
  background-color: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 4px;
  padding: 15px;
  margin-top: 8px;
  white-space: pre-wrap;
  word-wrap: break-word;
  color: #333;
  font-size: 14px;
  line-height: 1.6;
}

.complaint-images {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.complaint-image-link {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.complaint-image-link:hover {
  transform: scale(1.05);
}

.complaint-images img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  display: block;
}

/* 满意度徽章样式 */
.satisfaction-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 4px;
    color: white;
    font-weight: 500;
    text-align: center;
    min-width: 80px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.satisfaction-badge::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.2);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.satisfaction-badge:hover::before {
    transform: translateX(0);
}

.satisfaction-very_satisfied {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.satisfaction-satisfied {
    background: linear-gradient(135deg, #2ecc71, #3498db);
}

.satisfaction-neutral {
    background: linear-gradient(135deg, #f39c12, #f1c40f);
}

.satisfaction-dissatisfied {
    background: linear-gradient(135deg, #e67e22, #f39c12);
}

.satisfaction-very_dissatisfied {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

/* 评价列表中的满意度图标 */
.satisfaction-badge::after {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-left: 5px;
}

.satisfaction-very_satisfied::after {
    content: "\f584"; /* 笑脸 */
}

.satisfaction-satisfied::after {
    content: "\f118"; /* 微笑 */
}

.satisfaction-neutral::after {
    content: "\f11a"; /* 一般 */
}

.satisfaction-dissatisfied::after {
    content: "\f119"; /* 不满 */
}

.satisfaction-very_dissatisfied::after {
    content: "\f567"; /* 生气 */
}

/* 医生列表中的头像样式 */
.data-table img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* 表格文本居中 */
.text-center {
    text-align: center;
}

/* 暂无数据样式 */
.no-data {
    color: #95a5a6;
    font-style: italic;
    font-size: 13px;
}

.config-description {
    margin-bottom: 20px;
    color: #7f8c8d;
    font-size: 15px;
    line-height: 1.6;
}

.satisfaction-options-container {
    margin-bottom: 20px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

/* 评价项配置样式 */
.evaluation-categories-container {
    margin-bottom: 20px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}

.evaluation-category {
    background: #f8f9fa;
    border: 1px solid #e1e4e8;
    border-radius: 12px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.evaluation-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-color: #3498db;
}

.category-header {
    background: white;
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid #e1e4e8;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.category-header .drag-handle {
    cursor: move;
    color: #95a5a6;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.category-header .drag-handle:hover {
    color: #3498db;
    background: rgba(52, 152, 219, 0.1);
}

.category-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.category-name-input {
    flex: 1;
}

.category-name-field {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    transition: all 0.3s ease;
    background: #fff;
}

.category-name-field:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
}

.category-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.required-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.required-checkbox:hover {
    background: rgba(52, 152, 219, 0.1);
}

.required-checkbox input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
    accent-color: #3498db;
}

.category-satisfaction-options {
    padding: 20px;
    background: white;
    border-radius: 0 0 12px 12px;
}

.category-satisfaction-options h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.category-satisfaction-options h4::before {
    content: '⭐';
    margin-right: 8px;
}

.satisfaction-options-list {
    margin-bottom: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e9ecef;
}

.satisfaction-option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e1e4e8;
    transition: all 0.3s ease;
}

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

.satisfaction-option-item:hover {
    border-color: #3498db;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
    transform: translateX(3px);
}

.satisfaction-option-item input {
    flex: 1;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.satisfaction-option-item input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
    outline: none;
}

.satisfaction-option-item input:first-child {
    font-weight: 500;
}

.satisfaction-option-item input:last-of-type {
    font-family: monospace;
    color: #666;
}

.satisfaction-options-actions {
    text-align: center;
}

.satisfaction-options-actions .btn {
    padding: 8px 16px;
    font-size: 13px;
}

/* 空状态提示 */
.satisfaction-options-list:empty::before {
    content: '暂无满意度选项，点击下方按钮添加';
    display: block;
    text-align: center;
    color: #95a5a6;
    font-style: italic;
    padding: 20px;
}

/* 评价项拖拽状态 */
.evaluation-category.sortable-drag {
    opacity: 0.8;
    transform: rotate(2deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.evaluation-category.sortable-ghost {
    opacity: 0.3;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .category-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .category-info {
        flex-direction: column;
        align-items: stretch;
    }
    
    .category-controls {
        justify-content: space-between;
    }
    
    .satisfaction-option-item {
        flex-direction: column;
        gap: 8px;
    }
    
    .satisfaction-option-item input {
        width: 100%;
    }
}

.image-preview {
    margin-top: 15px;
    width: 200px;
    height: 60px;
    border: 1px dashed #ddd;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #95a5a6;
    font-size: 13px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.image-preview.has-image {
    border: 1px solid #3498db;
    color: transparent;
}

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

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

.config-section:nth-child(1) {
    animation-delay: 0.1s;
}

.config-section:nth-child(2) {
    animation-delay: 0.2s;
}

.config-section:nth-child(3) {
    animation-delay: 0.3s;
}

.config-section:nth-child(4) {
    animation-delay: 0.4s;
}

/* 统计页面样式 - 新设计 */
.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 20px;
}

.stats-title h2 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.stats-title h2 i {
    margin-right: 10px;
    color: #3498db;
}

.stats-title p {
    color: #7f8c8d;
    font-size: 14px;
}

.stats-filter {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.date-picker {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.date-input {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.date-input label {
    font-size: 13px;
    color: #7f8c8d;
    display: flex;
    align-items: center;
}

.date-input label i {
    margin-right: 5px;
}

.date-input input {
    padding: 8px 12px;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    font-size: 14px;
}

.stats-dashboard {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

.stat-card:nth-child(1)::before {
    background: linear-gradient(90deg, #3498db, #45aaf2);
}

.stat-card:nth-child(2)::before {
    background: linear-gradient(90deg, #2ecc71, #26de81);
}

.stat-card:nth-child(3)::before {
    background: linear-gradient(90deg, #e74c3c, #fc5c65);
}

.stat-card:nth-child(4)::before {
    background: linear-gradient(90deg, #f39c12, #fa8231);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 24px;
    color: white;
}

.stat-card:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, #3498db, #45aaf2);
}

.stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, #2ecc71, #26de81);
}

.stat-card:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, #e74c3c, #fc5c65);
}

.stat-card:nth-child(4) .stat-icon {
    background: linear-gradient(135deg, #f39c12, #fa8231);
}

.stat-info {
    flex: 1;
}

.stat-info h3 {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.stat-info p {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 8px;
}

.stat-trend {
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.stat-trend.positive {
    color: #2ecc71;
}

.stat-trend.negative {
    color: #e74c3c;
}

.stat-trend i {
    margin-right: 5px;
}

.stat-badge {
    display: inline-block;
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.stats-charts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.chart-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.chart-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

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

.chart-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
}

.chart-header h3 i {
    margin-right: 8px;
    color: #3498db;
}

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

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    background: #f8f9fa;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: #e9ecef;
    color: #2c3e50;
}

.chart-body {
    padding: 20px 25px 30px;
    height: 300px;
}

.stats-table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

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

.table-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
}

.table-header h3 i {
    margin-right: 8px;
    color: #3498db;
}

.table-actions select {
    padding: 8px 12px;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    font-size: 14px;
    background-color: #f8f9fa;
}

.table-body {
    padding: 0;
    overflow-x: auto;
}

.table-body .data-table {
    margin: 0;
    border-collapse: collapse;
    width: 100%;
}

.table-body .data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #e1e4e8;
}

.table-body .data-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #f1f2f6;
}

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

.table-body .data-table tr:hover td {
    background-color: #f8f9fa;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .stats-charts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .stats-header {
        flex-direction: column;
    }
    
    .stats-filter {
        width: 100%;
    }
    
    .date-picker {
        flex-direction: column;
    }
}

/* 导入模态框样式 */
.import-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.import-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.step-number {
    width: 30px;
    height: 30px;
    background-color: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #2c3e50;
}

.step-content p {
    margin: 0 0 10px 0;
    color: #7f8c8d;
    font-size: 14px;
}

.file-upload {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.file-upload input[type="file"] {
    display: none;
}

#selected-file-name {
    color: #7f8c8d;
    font-size: 14px;
    margin-left: 10px;
}

.import-preview {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

.import-preview h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #2c3e50;
}

.import-preview .table-container {
    max-height: 200px;
    overflow-y: auto;
}

.import-error {
    color: #e74c3c;
    font-size: 14px;
    padding: 10px;
    background-color: rgba(231, 76, 60, 0.1);
    border-radius: 5px;
    display: none;
}

.import-error.show {
    display: block;
}

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

@media (max-width: 768px) {
    .import-container {
        flex-direction: column;
    }
}

/* 头像单元格样式 */
.avatar-cell {
    width: 60px;
    height: 60px;
    padding: 5px !important;
}

.avatar-cell img, 
.avatar-cell svg {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 0 auto;
}

/* 科室输入建议样式 */
.input-with-suggestions {
    position: relative;
    width: 100%;
}

.suggestions-container {
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 120px;
    overflow-y: auto;
    background-color: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    z-index: 100;
    display: none;
    padding: 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.suggestions-container.show {
    display: flex;
}

.suggestion-item {
    padding: 4px 8px;
    cursor: pointer;
    background-color: #f0f4f8;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 13px;
    white-space: nowrap;
    display: inline-block;
    margin: 2px;
    transition: background-color 0.2s;
}

.suggestion-item:hover {
    background-color: #e0e7f1;
}

/* 图片预览模态框 */
.image-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.image-preview-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.image-preview-content img {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    margin: 0 auto;
}

.image-preview-content .close-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e74c3c;
    color: white;
    border: 2px solid white;
    font-size: 18px;
    line-height: 26px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.image-preview-content .close-btn:hover {
    background: #c0392b;
}

/* ==========================================================================
   Evaluation Filter Styles
   ========================================================================== */

.filter-container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end; /* Aligns items to the bottom, useful for labels and inputs */
    gap: 1.25rem; /* 20px */
    padding: 1.25rem; /* 20px */
    margin-bottom: 1.5rem; /* 24px */
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 6px; /* Spacing between label and input */
    flex: 1 1 180px; /* Flex-grow, flex-shrink, flex-basis */
}

.filter-item label {
    font-size: 0.875rem; /* 14px */
    font-weight: 500;
    color: #495057;
    margin-left: 2px;
}

.filter-item select,
.filter-item input[type="date"] {
    height: 38px;
    padding: 0 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    background-color: #f8f9fa;
    color: #495057;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    width: 100%;
    box-sizing: border-box; /* Ensures padding is included in the width/height */
}

.filter-item select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem; /* Make space for the arrow */
}

.filter-item input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.2s ease-in-out;
}

.filter-item input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.filter-item select:focus,
.filter-item input[type="date"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.25);
    background-color: #fff;
}

.filter-item.filter-item-date-range {
    flex-grow: 1.5; /* Give more space to the date range filter */
}

.date-range-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-range-inputs span {
    color: #6c757d;
    padding-bottom: 2px; /* Vertically align with input text */
}

.filter-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0; /* Prevent buttons from shrinking */
}

.filter-actions .btn {
    height: 38px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .filter-container {
        align-items: stretch;
    }
    .date-range-inputs {
        flex-direction: column;
        align-items: stretch;
    }
    .date-range-inputs span {
        display: none;
    }
    .filter-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    .filter-actions .btn {
        width: 100%;
        margin-bottom: 5px;
    }
}

/* 评价内容单元格样式 */
.evaluation-content-cell {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
}

.evaluation-content-cell:hover {
    white-space: normal;
    overflow: visible;
    z-index: 10;
}

/* 满意度显示优化 */
.satisfaction-badge {
    padding: 5px 10px;
    border-radius: 15px;
    font-weight: 500;
    display: inline-block;
    text-align: center;
    min-width: 80px;
}

.satisfaction-5 {
    background-color: #2ecc71;
    color: white;
}

.satisfaction-4 {
    background-color: #3498db;
    color: white;
}

.satisfaction-3 {
    background-color: #f1c40f;
    color: #333;
}

.satisfaction-2 {
    background-color: #e67e22;
    color: white;
}

.satisfaction-1 {
    background-color: #e74c3c;
    color: white;
}

/* 评价详情样式优化 */
.evaluation-detail .detail-card {
    margin-bottom: 20px;
}

.evaluation-detail .detail-item {
    margin-bottom: 10px;
    display: flex;
}

.evaluation-detail .detail-label {
    font-weight: 600;
    min-width: 100px;
}

.evaluation-detail .detail-value {
    flex: 1;
}

.evaluation-detail .full-width {
    flex-direction: column;
}

.evaluation-detail .full-width .detail-label {
    margin-bottom: 5px;
}

.evaluation-content {
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    min-height: 60px;
    white-space: pre-wrap;
}

/* 评价详情模态框 */
#evaluation-detail-container {
    max-height: 80vh;
    overflow-y: auto;
    padding: 0 10px;
}

/* 满意度选项配置样式 */
.satisfaction-option-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}

.satisfaction-label-input {
    flex: 2;
}

.satisfaction-value-input {
    width: 80px;
}

.satisfaction-preview {
    flex: 1;
    text-align: center;
}

/* 实时预览样式变化 */
.category-satisfaction-options {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-top: 10px;
}

.satisfaction-options-list {
    margin-bottom: 15px;
}

/* 评价详情模态框样式优化 */
.modal-content {
    max-width: 800px;
    width: 90%;
}

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

.modal-header h2:before {
    content: '\f4ad';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

.evaluation-detail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.evaluation-detail .detail-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.evaluation-detail .detail-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #333;
    font-size: 18px;
}

.evaluation-detail .complaint-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.evaluation-detail .complaint-image-link img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.2s;
}

.evaluation-detail .complaint-image-link img:hover {
    transform: scale(1.05);
}

/* 医生评价列表样式 */
.doctor-evaluations-container {
    padding: 20px 0;
}

.section-title {
    margin-bottom: 20px;
    font-size: 20px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.satisfaction-summary {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.satisfaction-summary h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    color: #555;
}

.satisfaction-bars {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.satisfaction-bar-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.satisfaction-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.satisfaction-count {
    font-size: 14px;
    color: #666;
}

.satisfaction-bar-container {
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.satisfaction-bar {
    height: 100%;
    border-radius: 5px;
    transition: width 0.3s ease;
}

.evaluations-list {
    margin-top: 30px;
}

.evaluations-list h4 {
    margin-bottom: 15px;
    font-size: 16px;
    color: #555;
}

/* 大型模态框 */
.large-modal {
    max-width: 90%;
    width: 1000px;
}

/* 评价内容样式 */
.evaluation-content-cell {
    max-width: 250px;
    overflow: hidden;
}

.evaluation-content-text {
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    white-space: normal;
    word-break: break-word;
    color: #333;
    line-height: 1.4;
}

/* 评价详情模态框 */
.large-modal {
    width: 80%;
    max-width: 900px;
}

.doctor-evaluations-container {
    padding: 0 10px;
}

.satisfaction-summary {
    background-color: #f5f8fa;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.satisfaction-summary h4 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 16px;
}

.satisfaction-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.satisfaction-bar-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.satisfaction-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.satisfaction-count {
    font-size: 13px;
    color: #666;
}

.satisfaction-bar-container {
    height: 8px;
    background-color: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.satisfaction-bar {
    height: 100%;
    border-radius: 4px;
}

.satisfaction-bar.satisfaction-5 {
    background-color: #10b981;
}

.satisfaction-bar.satisfaction-4 {
    background-color: #60a5fa;
}

.satisfaction-bar.satisfaction-3 {
    background-color: #f59e0b;
}

.satisfaction-bar.satisfaction-2 {
    background-color: #f97316;
}

.satisfaction-bar.satisfaction-1 {
    background-color: #ef4444;
}

.evaluations-list {
    margin-top: 20px;
}

.evaluations-list h4 {
    margin-bottom: 16px;
    font-size: 16px;
}

/* 悬停效果 */
.data-table tbody tr:hover {
    background-color: #f5f8fa;
}

.data-table tbody tr:hover .evaluation-content-text {
    color: #1a73e8;
}

/* 满意度标签 */
.satisfaction-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: white;
    text-align: center;
}

.satisfaction-badge.satisfaction-5 {
    background-color: #10b981;
}

.satisfaction-badge.satisfaction-4 {
    background-color: #60a5fa;
}

.satisfaction-badge.satisfaction-3 {
    background-color: #f59e0b;
}

.satisfaction-badge.satisfaction-2 {
    background-color: #f97316;
}

.satisfaction-badge.satisfaction-1 {
    background-color: #ef4444;
}

/* 投诉内容和图片 */
.complaint-content {
    padding: 10px;
    background-color: #f5f8fa;
    border-radius: 4px;
    margin-top: 4px;
    white-space: pre-wrap;
    color: #333;
}

.complaint-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.complaint-image-link {
    display: block;
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.complaint-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.complaint-image-link:hover img {
    transform: scale(1.05);
}

/* 搜索输入框容器 */
.search-input-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

/* 搜索图标 */
.search-icon {
    position: absolute;
    left: 12px;
    color: #6c757d;
    font-size: 14px;
    pointer-events: none; /* 确保图标不会干扰输入框的点击 */
}

/* 搜索输入框 */
.search-input-container input[type="text"] {
    height: 38px;
    padding: 0 12px 0 36px; /* 左侧留出空间放置图标 */
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    background-color: #f8f9fa;
    color: #495057;
    transition: all 0.2s ease-in-out;
    width: 100%;
    box-sizing: border-box;
}

/* 搜索输入框焦点状态 */
.search-input-container input[type="text"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.25);
    background-color: #fff;
}

/* 搜索输入框悬停状态 */
.search-input-container input[type="text"]:hover {
    border-color: #adb5bd;
    background-color: #f1f3f5;
}

/* 搜索框响应式样式 */
@media (max-width: 768px) {
    .search-input-container {
        width: 100%;
    }
    
    .search-input-container input[type="text"] {
        width: 100%;
    }
}