/* 选项卡导航 */
.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5rem;
  padding: 0 2rem;
  background: white;
  border-bottom: 1px solid #eef2f6;
}

.tab-btn {
  background: transparent;
  border: none;
  padding: 1rem 1.8rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: #4b5a75;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  border-radius: 40px 40px 0 0;
  margin-bottom: -1px;
}

.tab-btn:hover {
  color: #1f6e9c;
  background-color: #f8fafd;
}

.tab-btn.active {
  color: #1a6d9e;
  background: #ffffff;
  border-bottom: 2px solid #1a6d9e;
  font-weight: 700;
}

/* 内容区域 */
.tab-content-pane {
  padding: 2rem;
}

/* loading 状态 */
.loading-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  gap: 1rem;
  background: #fbfdff;
  border-radius: 24px;
}

.spinner {
  width: 42px;
  height: 42px;
  border: 4px solid #e2e8f0;
  border-top: 4px solid #2a86b0;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-placeholder p {
  color: #4b6a8b;
  font-size: 0.95rem;
}

/* 表格通用样式 */
.data-table-wrapper {
  overflow-x: auto;
  border: 1px solid #edf2f7;
  background: white;
  margin-top: 0.5rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 580px;
}

.data-table th {
  background-color: #f8fafc;
  color: #1e2f44;
  font-weight: 600;
  padding: 1rem 1rem;
  border-bottom: 1px solid #e2edf2;
  text-align: left;
  font-size: 0.9rem;
}

.data-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #f0f4f9;
  color: #2c3f5c;
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background-color: #fafcff;
}

/* 徽章/状态样式 */
.status-badge {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-success {
  background: #e0f9ef;
  color: #1f7840;
}

.status-pending {
  background: #fff2df;
  color: #b45f06;
}

.status-resolved {
  background: #e6f0ff;
  color: #1e6f9f;
}

.satisfaction {
  color: #d97706;
  font-weight: 600;
}

/* 整体满意率卡片 */
.summary-card {
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: baseline;
  justify-content: flex-end;

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.summary-card .rate {
  font-size: 2rem;
  font-weight: 800;
  color: #166b44;
  letter-spacing: 1px;
}

.summary-card .label {
  font-size: 2rem;
  font-weight: 500;
  color: #2c5a74;
}

.error-message {
  background: #fff5f0;
  border-left: 4px solid #e26d5c;
  padding: 1rem;
  border-radius: 20px;
  color: #b13b2a;
}

/* 小型标题 */
.section-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #255e7e;
  display: flex;
  align-items: center;
  gap: 8px;
}

hr {
  margin: 1rem 0;
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, #e2edf2, transparent);
}

@media (max-width: 700px) {
  body {
    padding: 1rem;
  }
  .tab-btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }
  .tab-content-pane {
    padding: 1.2rem;
  }
}

.line-1 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radio-group {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.radio-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  padding: 0.4rem 0;
}
.radio-item input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #3b82f6;
  margin: 0 !important;
}
.radio-item label {
  font-size: 1.5rem;
  color: #374151;
  cursor: pointer;
  user-select: none;
  margin: 0 !important;
}
