/* 结账页面样式 */
/* 结账容器 */
.checkout-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* 页面标题 */
.page-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-color);
}

/* 结账内容 */
.checkout-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

/* 结账表单 */
.checkout-form {
  flex: 2;
  min-width: 300px;
}

/* 订单摘要 */
.order-summary {
  flex: 1;
  min-width: 300px;
}

/* 表单组 */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-color);
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background-color: var(--input-bg);
  color: var(--text-color);
  font-size: 1rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  border-color: var(--primary-color);
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* 订单项目 */
.order-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.order-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.item-image {
  flex: 0 0 60px;
  height: 60px;
  margin-right: 1rem;
}

.item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.item-details {
  flex: 2;
}

.item-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-color);
}

.item-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-color);
}

.item-quantity {
  font-size: 0.9rem;
  color: var(--text-secondary-color);
}

/* 订单摘要卡片 */
.order-summary-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 2rem;
  height: fit-content;
  transition: all 0.3s ease;
}

.order-summary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.summary-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  text-align: center;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.summary-row.total {
  font-size: 1.25rem;
  font-weight: 700;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.summary-label {
  color: var(--text-secondary-color);
}

.summary-value {
  font-weight: 500;
}

/* 支付按钮 */
.payment-btn {
  display: block;
  width: 100%;
  padding: 1rem;
  background-color: var(--success-color);
  color: var(--btn-text);
  text-align: center;
  text-decoration: none;
  border-radius: var(--border-radius);
  font-size: 1.1rem;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  margin-bottom: 1rem;
}

.payment-btn:hover {
  background-color: #218838;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 步骤指示器 */
.checkout-steps {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  position: relative;
}

.checkout-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--border-color);
  z-index: 1;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  flex: 1;
  max-width: 200px;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.step.active .step-number {
  background-color: var(--primary-color);
  transform: scale(1.1);
}

.step.completed .step-number {
  background-color: var(--success-color);
}

.step-title {
  font-size: 0.9rem;
  text-align: center;
  color: var(--text-secondary-color);
}

.step.active .step-title {
  color: var(--primary-color);
  font-weight: 600;
}

/* 动画主题特殊样式 */
[data-theme="animation"] .order-item {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="animation"] .order-summary-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 深色主题特殊样式 */
[data-theme="dark"] .order-item {
  background: var(--card-bg);
}

[data-theme="dark"] .order-summary-card {
  background: var(--card-bg);
}

[data-theme="dark"] .form-control {
  background-color: #2d3748;
  color: #e2e8f0;
  border: 1px solid #4a5568;
}

[data-theme="dark"] .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* 响应式设计 */
@media (max-width: 992px) {
  .checkout-content {
    flex-direction: column;
  }
  
  .checkout-form,
  .order-summary {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .checkout-container {
    padding: 1rem;
  }
  
  .order-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .item-image {
    margin-right: 0;
    margin-bottom: 1rem;
    width: 100%;
  }
  
  .order-summary-card {
    padding: 1.5rem;
  }
  
  .checkout-steps {
    flex-wrap: wrap;
  }
  
  .step {
    margin-bottom: 1rem;
  }
  
  .checkout-steps::before {
    display: none;
  }
}

@media (max-width: 576px) {
  .page-title {
    font-size: 1.75rem;
  }
  
  .order-item {
    padding: 1rem;
  }
  
  .order-summary-card {
    padding: 1rem;
  }
  
  .step {
    max-width: none;
    flex: 1;
  }
}