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

/* 产品头部信息 */
.product-header {
  background: white;
  padding: 30rpx;
  margin-bottom: 20rpx;
}

.product-image {
  position: relative;
  width: 100%;
  height: 300rpx;
  margin-bottom: 30rpx;
  border-radius: 16rpx;
  overflow: hidden;
}

.product-img {
  width: 100%;
  height: 100%;
}

.product-tag {
  position: absolute;
  top: 20rpx;
  right: 20rpx;
  background: #ff4757;
  color: white;
  font-size: 22rpx;
  padding: 8rpx 16rpx;
  border-radius: 20rpx;
}

.product-info {
  padding: 0 10rpx;
}

.product-title {
  font-size: 36rpx;
  font-weight: bold;
  color: #333;
  margin-bottom: 10rpx;
  line-height: 1.4;
}

.product-subtitle {
  font-size: 26rpx;
  color: #666;
  margin-bottom: 20rpx;
  line-height: 1.4;
}

.price-section {
  margin-bottom: 30rpx;
}

.price-main {
  display: flex;
  align-items: baseline;
  margin-bottom: 10rpx;
}

.currency {
  font-size: 28rpx;
  color: #ff4757;
  font-weight: bold;
}

.price {
  font-size: 48rpx;
  color: #ff4757;
  font-weight: bold;
  margin: 0 5rpx;
}

.price-unit {
  font-size: 24rpx;
  color: #999;
}

.price-desc {
  font-size: 22rpx;
  color: #999;
}

.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 20rpx;
}

.feature-item {
  display: flex;
  align-items: center;
  background: #f8f9fa;
  padding: 12rpx 20rpx;
  border-radius: 20rpx;
  font-size: 24rpx;
  color: #666;
}

.feature-icon {
  margin-right: 8rpx;
  font-size: 26rpx;
}

.feature-text {
  font-size: 24rpx;
}

/* 详情标签页 */
.detail-tabs {
  display: flex;
  background: white;
  margin-bottom: 20rpx;
  border-bottom: 1rpx solid #e8e8e8;
}

.tab-item {
  flex: 1;
  text-align: center;
  padding: 30rpx 0;
  font-size: 28rpx;
  color: #666;
  position: relative;
  transition: all 0.3s;
}

.tab-item.active {
  color: #1890ff;
  font-weight: bold;
}

.tab-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60rpx;
  height: 4rpx;
  background: #1890ff;
  border-radius: 2rpx;
}

/* 标签页内容 */
.tab-content {
  background: white;
  padding: 30rpx;
  margin-bottom: 20rpx;
}

.overview-section {
  margin-bottom: 40rpx;
}

.overview-section:last-child {
  margin-bottom: 0;
}

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

.section-content {
  font-size: 28rpx;
  color: #666;
  line-height: 1.6;
}

.target-group {
  display: flex;
  flex-direction: column;
  gap: 15rpx;
}

.group-item {
  display: flex;
  align-items: center;
  font-size: 26rpx;
  color: #666;
}

.group-icon {
  color: #52c41a;
  margin-right: 15rpx;
  font-size: 24rpx;
}

.group-text {
  flex: 1;
}

.highlights {
  display: flex;
  flex-direction: column;
  gap: 25rpx;
}

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

.highlight-icon {
  font-size: 40rpx;
  margin-right: 20rpx;
  margin-top: 5rpx;
}

.highlight-content {
  flex: 1;
}

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

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

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

.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: 26rpx;
  color: #666;
  line-height: 1.5;
  margin-bottom: 10rpx;
  display: block;
}

.coverage-conditions {
  font-size: 24rpx;
  color: #999;
}

.condition-label {
  font-weight: bold;
}

.condition-text {
  margin-left: 10rpx;
}

/* 条款说明 */
.terms-section {
  display: flex;
  flex-direction: column;
  gap: 25rpx;
}

.terms-item {
  padding: 25rpx;
  background: #f8f9fa;
  border-radius: 12rpx;
}

.terms-title {
  font-size: 28rpx;
  font-weight: bold;
  color: #333;
  margin-bottom: 15rpx;
}

.terms-content {
  font-size: 26rpx;
  color: #666;
  line-height: 1.6;
}

/* 投保须知 */
.notice-section {
  background: white;
  padding: 30rpx;
  margin-bottom: 20rpx;
}

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

.notice-list {
  display: flex;
  flex-direction: column;
  gap: 15rpx;
}

.notice-item {
  display: flex;
  align-items: flex-start;
  font-size: 26rpx;
  color: #666;
  line-height: 1.5;
}

.notice-number {
  width: 40rpx;
  height: 40rpx;
  background: #1890ff;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22rpx;
  font-weight: bold;
  margin-right: 20rpx;
  flex-shrink: 0;
  margin-top: 5rpx;
}

.notice-text {
  flex: 1;
}

/* 相关产品推荐 */
.related-products {
  background: white;
  padding: 30rpx;
  margin-bottom: 20rpx;
}

.product-scroll {
  white-space: nowrap;
}

.product-list {
  display: flex;
  gap: 20rpx;
  padding: 10rpx 0;
}

.related-product-item {
  width: 200rpx;
  background: #f8f9fa;
  border-radius: 12rpx;
  overflow: hidden;
  flex-shrink: 0;
}

.related-product-img {
  width: 100%;
  height: 120rpx;
}

.related-product-info {
  padding: 15rpx;
}

.related-product-name {
  font-size: 24rpx;
  color: #333;
  margin-bottom: 8rpx;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-product-price {
  font-size: 22rpx;
  color: #ff4757;
  font-weight: bold;
}

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

.action-left {
  display: flex;
  gap: 15rpx;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15rpx 20rpx;
  background: #f8f9fa;
  border: none;
  border-radius: 12rpx;
  font-size: 20rpx;
  color: #666;
  min-width: 80rpx;
}

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

.btn-icon {
  font-size: 32rpx;
  margin-bottom: 5rpx;
}

.btn-text {
  font-size: 20rpx;
}

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

.apply-btn.active {
  background: #1890ff;
  color: white;
}

.apply-btn.disabled {
  background: #f0f0f0;
  color: #ccc;
}

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

/* 加载状态 */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.loading-content {
  background: white;
  padding: 40rpx;
  border-radius: 16rpx;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20rpx;
}

.loading-spinner {
  width: 60rpx;
  height: 60rpx;
  border: 4rpx solid #f0f0f0;
  border-top: 4rpx solid #1890ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.loading-text {
  font-size: 28rpx;
  color: #666;
}

/* 响应式设计 */
@media (max-width: 750rpx) {
  .product-header {
    padding: 20rpx;
  }
  
  .product-image {
    height: 250rpx;
  }
  
  .tab-content {
    padding: 20rpx;
  }
  
  .bottom-actions {
    padding: 15rpx 20rpx;
  }
}

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

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

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

.related-product-item:active {
  transform: scale(0.95);
}

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