/* 客户案例页面样式 */

.page-header {
  background: linear-gradient(180deg, #1e88e5 0%, #00d4ff 100%);
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.page-header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* 案例展示区域 */
.cases-section {
  padding: 60px 20px;
  background: #f8f9fa;
}

/* 案例标签 */
.cases-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.cases-tab-btn {
  padding: 12px 35px;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 25px;
  color: #666;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.cases-tab-btn:hover {
  background: #e9ecef;
  border-color: #2c5aa0;
  color: #1890ff;
}

.cases-tab-btn.active {
  background: #1890ff;
  border-color: #2c5aa0;
  color: #fff;
}

/* 标签内容 */
.cases-tab-content {
  display: none;
}

.cases-tab-content.active {
  display: block;
}

/* 聊天容器 */
.chat-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  height: 700px;
}

/* 聊天列表 */
.chat-list {
  background: #f8f9fa;
  border-right: 1px solid #e0e0e0;
  overflow-y: auto;
}

.chat-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
  cursor: pointer;
  transition: all 0.3s;
}

.chat-item:hover {
  background: #fff;
}

.chat-item.active {
  background: #fff;
  border-left: 4px solid #2c5aa0;
}

.chat-avatar {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.chat-info {
  flex: 1;
  min-width: 0;
}

.chat-name {
  font-weight: 500;
  color: #333;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-preview {
  color: #999;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-time {
  color: #999;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* 聊天消息区域 */
.chat-messages {
  padding: 30px;
  overflow-y: auto;
  background: #fff;
}

.message-date {
  text-align: center;
  color: #999;
  font-size: 0.9rem;
  margin: 20px 0;
}

.message {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.message.customer {
  flex-direction: row;
}

.message.service {
  flex-direction: row-reverse;
}

.message-avatar {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.message-content {
  max-width: 60%;
}

.message.customer .message-content {
  text-align: left;
}

.message.service .message-content {
  text-align: right;
}

.message-text {
  background: #f8f9fa;
  padding: 12px 18px;
  border-radius: 10px;
  color: #333;
  line-height: 1.6;
  margin-bottom: 5px;
  display: inline-block;
  text-align: left;
}

.message.service .message-text {
  background: #1890ff;
  color: #fff;
}

.message-time {
  color: #999;
  font-size: 0.85rem;
}

/* 证书展示 */
.certificate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.certificate-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: all 0.3s;
}

.certificate-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(44,90,160,0.15);
}

.certificate-image {
  height: 250px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 3px solid #2c5aa0;
}

.cert-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}

.certificate-info {
  padding: 25px;
}

.certificate-info h3 {
  font-size: 1.3rem;
  color: #1890ff;
  margin-bottom: 20px;
}

.certificate-info p {
  color: #666;
  line-height: 1.8;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.certificate-info strong {
  color: #333;
  font-weight: 500;
}

/* 官方公示 */
.publicity-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.publicity-card {
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.publicity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e0e0e0;
  flex-wrap: wrap;
  gap: 15px;
}

.publicity-header h3 {
  font-size: 1.5rem;
  color: #1890ff;
}

.publicity-badge {
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  background: #ffc107;
  color: #fff;
}

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

.publicity-info {
  margin-bottom: 25px;
}

.publicity-info p {
  color: #666;
  line-height: 1.8;
  margin-bottom: 10px;
}

.publicity-info strong {
  color: #333;
  font-weight: 500;
}

.publicity-table {
  overflow-x: auto;
  margin-bottom: 20px;
}

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

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

.publicity-table th {
  background: #f8f9fa;
  color: #1890ff;
  font-weight: 500;
}

.publicity-table td {
  color: #666;
}

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

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

.view-detail {
  color: #1890ff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.view-detail:hover {
  color: #1e3a70;
}

/* 响应式设计 */
@media (max-width: 968px) {
  .chat-container {
    grid-template-columns: 1fr;
    height: auto;
  }
  
  .chat-list {
    max-height: 300px;
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
  }
  
  .chat-messages {
    min-height: 500px;
  }
}

@media (max-width: 768px) {
  .certificate-grid {
    grid-template-columns: 1fr;
  }
  
  .message-content {
    max-width: 80%;
  }
  
  .publicity-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .publicity-table {
    font-size: 0.9rem;
  }
  
  .publicity-table th,
  .publicity-table td {
    padding: 8px;
  }
}


/* 始终为滚动条保留位置，防止跨页跳转时 navbar 抖动 */
html { overflow-y: scroll; }

