@import url("./style.css");

/* ===== 订单支付页 ===== */
.order-page .page-main {
  /* 本页无内页大 banner，需自己留出固定 header 的高度 */
  padding-top: 128px;
}

.order-section {
  padding-bottom: 90px;
}

/* 窄栏居中，订单信息不需要铺满整行 */
.order-shell {
  width: min(680px, calc(100% - 48px));
}

.order-panel {
  background: #f7f7f7;
  padding: 26px 30px;
}

.order-amount {
  font-size: 15px;
  color: #333333;
}

.order-amount strong {
  font-size: 20px;
  font-weight: 700;
  color: #e60012;
}

.order-divider {
  border-top: 1px dashed #d5d5d5;
  margin: 18px 0;
}

.order-line {
  font-size: 14px;
  line-height: 26px;
  color: #555555;
  overflow-wrap: anywhere;
}

.pay-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-top: 40px;
}

.pay-label {
  padding-top: 16px;
  font-size: 14px;
  color: #666666;
}

.pay-options {
  width: min(280px, 100%);
}

.pay-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 52px;
  padding: 0 14px;
  border: 1px solid #e6e6e6;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.25s ease;
}

.pay-option + .pay-option {
  margin-top: 10px;
}

.pay-option.active {
  border-color: #3d9bfb;
}

.pay-logo {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
}

.pay-logo svg {
  width: 100%;
  height: 100%;
  display: block;
}

.pay-name {
  flex: 1 1 auto;
  text-align: left;
  font-size: 15px;
  color: #bbbbbb;
  transition: color 0.25s ease;
}

.pay-option.active .pay-name {
  color: #333333;
}

/* 未选中时对勾隐藏，选中后显示 */
.pay-check {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.pay-check svg {
  width: 100%;
  height: 100%;
  display: block;
}

.pay-option.active .pay-check {
  opacity: 1;
}

.order-confirm {
  width: 100%;
  height: 56px;
  margin-top: 46px;
  border: 0;
  background: #3d9bfb;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s ease;
}

.order-confirm:hover {
  background: #2b8be8;
}

.order-confirm:active {
  transform: translateY(1px);
}

@media (max-width: 1100px) {
  .order-section {
    padding-bottom: 70px;
  }
}

@media (max-width: 640px) {
  .order-section {
    padding-bottom: 50px;
  }

  .order-panel {
    padding: 20px 18px;
  }

  .pay-row {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 30px;
  }

  .pay-label {
    padding-top: 0;
  }

  .pay-options {
    width: 100%;
  }

  .order-confirm {
    height: 48px;
    margin-top: 34px;
    font-size: 16px;
  }
}
