/* pages/policy-detail/policy-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.active {
  background: #f6ffed;
  color: #52c41a;
}

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

.status-icon.expired {
  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,
.insured-section,
.beneficiary-section,
.coverage-section,
.payment-section,
.claims-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,
.insured-card,
.beneficiary-card {
  display: flex;
  flex-direction: column;
  gap: 20rpx;
}

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

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

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

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

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

/* 保障内容 */
.coverage-list {
  display: flex;
  flex-direction: column;
  gap: 20rpx;
}

.coverage-item {
  padding: 25rpx;
  background: #f8f9fa;
  border-radius: 12rpx;
  border-left: 4rpx solid #1890ff;
}

.coverage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15rpx;
}

.coverage-name {
  font-size: 28rpx;
  font-weight: bold;
  color: #333;
}

.coverage-amount {
  font-size: 32rpx;
  font-weight: bold;
  color: #ff4757;
}

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

/* 缴费记录 */
.payment-list {
  display: flex;
  flex-direction: column;
  gap: 15rpx;
}

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

.payment-info {
  flex: 1;
}

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

.payment-amount {
  font-size: 24rpx;
  color: #666;
}

.payment-status {
  padding: 8rpx 16rpx;
  border-radius: 20rpx;
  font-size: 22rpx;
  font-weight: bold;
  margin-right: 20rpx;
}

.payment-status.paid {
  background: #f6ffed;
  color: #52c41a;
}

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

.payment-status.overdue {
  background: #fff2f0;
  color: #ff4d4f;
}

.status-text {
  font-size: 22rpx;
}

.payment-date {
  font-size: 22rpx;
  color: #999;
  min-width: 120rpx;
  text-align: right;
}

/* 理赔记录 */
.claims-list {
  display: flex;
  flex-direction: column;
  gap: 15rpx;
}

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

.claim-info {
  flex: 1;
}

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

.claim-amount {
  font-size: 24rpx;
  color: #666;
}

.claim-status {
  padding: 8rpx 16rpx;
  border-radius: 20rpx;
  font-size: 22rpx;
  font-weight: bold;
  margin-right: 20rpx;
}

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

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

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

.claim-date {
  font-size: 22rpx;
  color: #999;
  min-width: 120rpx;
  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: 15rpx;
  z-index: 100;
}

.action-btn {
  flex: 1;
  height: 80rpx;
  border-radius: 40rpx;
  font-size: 26rpx;
  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::after {
  border: none;
}

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

/* 响应式设计 */
@media (max-width: 750rpx) {
  .status-card,
  .info-section,
  .insured-section,
  .beneficiary-section,
  .coverage-section,
  .payment-section,
  .claims-section {
    margin: 15rpx;
    padding: 20rpx;
  }
  
  .bottom-actions {
    padding: 15rpx 20rpx;
  }
}

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

.coverage-item:hover {
  transform: translateY(-2rpx);
  box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.1);
}

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

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

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

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