/* pages/claim-detail/claim-detail.wxss */
.container {
  background: #f5f5f5;
  min-height: 100vh;
  padding-bottom: 120rpx;
}

/* 理赔状态卡片 */
.status-card {
  background: white;
  margin: 20rpx;
  border-radius: 16rpx;
  padding: 40rpx 30rpx;
  display: flex;
  align-items: center;
  box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.1);
}

.status-icon {
  width: 100rpx;
  height: 100rpx;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 30rpx;
  font-size: 50rpx;
  font-weight: bold;
}

.status-icon.pending {
  background: #fff7e6;
  color: #d48806;
}

.status-icon.processing {
  background: #e6f7ff;
  color: #1890ff;
}

.status-icon.completed {
  background: #f6ffed;
  color: #52c41a;
}

.status-icon.rejected {
  background: #fff2f0;
  color: #ff4d4f;
}

.icon-text {
  font-size: 50rpx;
}

.status-content {
  flex: 1;
}

.status-title {
  font-size: 36rpx;
  font-weight: bold;
  color: #333;
  margin-bottom: 10rpx;
  display: block;
}

.status-desc {
  font-size: 24rpx;
  color: #666;
  line-height: 1.4;
}

/* 信息区域 */
.info-section,
.progress-section,
.detail-section,
.materials-section,
.records-section {
  background: white;
  margin: 20rpx;
  border-radius: 16rpx;
  padding: 30rpx;
  box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.1);
}

.section-title {
  font-size: 32rpx;
  font-weight: bold;
  color: #333;
  margin-bottom: 25rpx;
  padding-bottom: 15rpx;
  border-bottom: 2rpx solid #f0f0f0;
}

.info-card,
.detail-card {
  display: flex;
  flex-direction: column;
  gap: 20rpx;
}

.info-item,
.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15rpx 0;
  border-bottom: 1rpx solid #f5f5f5;
}

.info-item:last-child,
.detail-item:last-child {
  border-bottom: none;
}

.info-label,
.detail-label {
  font-size: 26rpx;
  color: #666;
  min-width: 150rpx;
}

.info-value,
.detail-value {
  font-size: 26rpx;
  color: #333;
  font-weight: 500;
  text-align: right;
  flex: 1;
}

.info-value.amount,
.detail-value.amount {
  color: #ff4757;
  font-weight: bold;
  font-size: 28rpx;
}

/* 理赔进度 */
.progress-timeline {
  position: relative;
  padding-left: 40rpx;
}

.progress-timeline::before {
  content: '';
  position: absolute;
  left: 20rpx;
  top: 0;
  bottom: 0;
  width: 2rpx;
  background: #e8e8e8;
}

.timeline-item {
  position: relative;
  margin-bottom: 40rpx;
  display: flex;
  align-items: flex-start;
}

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

.timeline-dot {
  position: absolute;
  left: -30rpx;
  top: 0;
  width: 40rpx;
  height: 40rpx;
  border-radius: 50%;
  background: #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.timeline-item.active .timeline-dot {
  background: #1890ff;
  color: white;
}

.timeline-item.active .timeline-dot .dot-icon {
  color: white;
}

.dot-icon {
  font-size: 20rpx;
  font-weight: bold;
  color: #999;
}

.timeline-content {
  flex: 1;
  padding-left: 20rpx;
}

.timeline-title {
  font-size: 28rpx;
  font-weight: bold;
  color: #333;
  margin-bottom: 8rpx;
  display: block;
}

.timeline-desc {
  font-size: 24rpx;
  color: #666;
  margin-bottom: 5rpx;
  display: block;
  line-height: 1.4;
}

.timeline-time {
  font-size: 22rpx;
  color: #999;
}

/* 相关材料 */
.materials-list {
  display: flex;
  flex-direction: column;
  gap: 15rpx;
}

.material-item {
  display: flex;
  align-items: center;
  padding: 20rpx;
  background: #f8f9fa;
  border-radius: 12rpx;
}

.material-icon {
  font-size: 40rpx;
  margin-right: 20rpx;
}

.material-info {
  flex: 1;
}

.material-name {
  font-size: 26rpx;
  color: #333;
  margin-bottom: 5rpx;
  display: block;
}

.material-status {
  font-size: 22rpx;
  padding: 4rpx 12rpx;
  border-radius: 12rpx;
  display: inline-block;
}

.material-status.uploaded {
  background: #f6ffed;
  color: #52c41a;
}

.material-status.pending {
  background: #fff7e6;
  color: #d48806;
}

.material-status.rejected {
  background: #fff2f0;
  color: #ff4d4f;
}

.material-actions {
  margin-left: 20rpx;
}

/* 处理记录 */
.records-list {
  display: flex;
  flex-direction: column;
  gap: 20rpx;
}

.record-item {
  display: flex;
  align-items: flex-start;
  padding: 20rpx;
  background: #f8f9fa;
  border-radius: 12rpx;
}

.record-time {
  font-size: 22rpx;
  color: #999;
  margin-right: 20rpx;
  min-width: 120rpx;
}

.record-content {
  flex: 1;
  margin-right: 20rpx;
}

.record-title {
  font-size: 26rpx;
  font-weight: bold;
  color: #333;
  margin-bottom: 5rpx;
  display: block;
}

.record-desc {
  font-size: 24rpx;
  color: #666;
  line-height: 1.4;
}

.record-operator {
  font-size: 22rpx;
  color: #999;
  min-width: 80rpx;
  text-align: right;
}

/* 底部操作栏 */
.bottom-actions {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  padding: 20rpx 30rpx;
  border-top: 1rpx solid #e8e8e8;
  display: flex;
  gap: 20rpx;
  z-index: 100;
}

.action-btn {
  flex: 1;
  height: 80rpx;
  border-radius: 40rpx;
  font-size: 28rpx;
  font-weight: bold;
  border: none;
  transition: all 0.3s;
}

.action-btn.primary {
  background: #1890ff;
  color: white;
}

.action-btn.secondary {
  background: #f0f0f0;
  color: #666;
}

.action-btn.small {
  padding: 12rpx 24rpx;
  font-size: 22rpx;
  border-radius: 20rpx;
  min-width: 100rpx;
  height: auto;
}

.action-btn::after {
  border: none;
}

.action-btn:active {
  transform: scale(0.95);
}

/* 响应式设计 */
@media (max-width: 750rpx) {
  .status-card,
  .info-section,
  .progress-section,
  .detail-section,
  .materials-section,
  .records-section {
    margin: 15rpx;
    padding: 20rpx;
  }
  
  .bottom-actions {
    padding: 15rpx 20rpx;
  }
}

/* 动画效果 */
.timeline-item {
  transition: all 0.3s ease;
}

.material-item {
  transition: all 0.3s ease;
}

.material-item:active {
  background: #e6f7ff;
  transform: scale(0.98);
}

.record-item {
  transition: all 0.3s ease;
}

.record-item:active {
  background: #e6f7ff;
  transform: scale(0.98);
}