/* 共享组件样式 - 通用卡片、表格等组件样式 */

/* 配送方式卡片样式 */
.delivery-method-card {
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.delivery-method-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.delivery-method-card img {
  transition: transform 0.3s ease;
}

.delivery-method-card:hover img {
  transform: scale(1.05);
}

/* 对比表格样式 */
table {
  border-collapse: separate;
  border-spacing: 0;
}

table th:first-child {
  border-top-left-radius: 0.5rem;
}

table th:last-child {
  border-top-right-radius: 0.5rem;
}

table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 0.5rem;
}

table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 0.5rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .delivery-method-card {
    margin-bottom: 2rem;
  }

  .hero-section h1 {
    font-size: 2.5rem;
  }

  .hero-section .text-xl {
    font-size: 1.125rem;
  }

  table {
    font-size: 0.875rem;
  }

  table th,
  table td {
    padding: 0.75rem 0.5rem;
  }
}

/* 按钮动画效果 */
button {
  transition: all 0.3s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(178, 62, 63, 0.3);
}

/* 特色图标样式 */
.fas.fa-check {
  font-size: 0.875rem;
}

/* 渐变背景动画 */
.bg-gradient-to-r {
  background-size: 200% 200%;
  animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* 卡片内容对齐 */
.delivery-method-card .p-6 {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.delivery-method-card button {
  margin-top: auto;
}

/* 表格悬停效果 */
tbody tr {
  transition: background-color 0.2s ease;
}

/* 价格图标样式 */
td:nth-child(3) {
  font-size: 1.2em;
  letter-spacing: 2px;
}
