*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
  background: #eef2f8;
  color: #333;
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom);
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 12px;
  padding-top: env(safe-area-inset-top);
  background: #4a90e2;
  color: #fff;
}

.header-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.header-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.header-btn:active {
  opacity: 0.7;
}

.page {
  padding: 10px 12px 16px;
}

.order-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.order-card__main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 12px 10px;
}

.order-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #e8f0fa;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5a6a7a;
}

.order-card__icon svg {
  width: 26px;
  height: 26px;
}

.order-card__body {
  flex: 1;
  min-width: 0;
}

.order-card__title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.order-card__title {
  font-size: 15px;
  font-weight: 600;
  color: #222;
}

.order-card__badge {
  font-size: 11px;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 4px;
  background: #fff3e6;
  color: #e8913a;
  font-weight: 500;
}

.order-card__desc {
  font-size: 13px;
  line-height: 1.45;
  color: #666;
  word-break: break-all;
}

.order-card__aside {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  margin-left: 4px;
}

.order-card__price {
  font-size: 14px;
  font-weight: 600;
  color: #222;
  background: #ffc94d;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.order-card__grab {
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  background: #52c41a;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.order-card__grab:active {
  background: #389e0d;
}

.order-card__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 10px 12px;
  background: #f7f8fa;
  border-top: 1px solid #f0f0f0;
}

.meta-item {
  text-align: center;
}

.meta-item__label {
  font-size: 11px;
  color: #999;
  margin-bottom: 4px;
}

.meta-item__value {
  font-size: 13px;
  color: #333;
  font-weight: 500;
}

.meta-item__value--warn {
  color: #e8913a;
}
