* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, "Microsoft JhengHei", sans-serif;
  font-size: 14px;
  color: #222;
  background: #f5f5f5;
  line-height: 1.4;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: #ee4d2d;
}

.wrap {
  width: 1200px;
  max-width: calc(100% - 32px);
  margin: 0 auto;
}

/* ===== 顶部橙条 ===== */
.topbar {
  background: #ee4d2d;
  color: #fff;
  font-size: 13px;
}

.topbar a,
.topbar-follow {
  color: #fff;
}

.topbar a:hover {
  color: #ffe6e0;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 34px;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.split {
  opacity: 0.45;
}

.social {
  display: inline-flex;
  opacity: 0.95;
}

.notify {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge {
  position: absolute;
  top: -8px;
  left: 8px;
  min-width: 18px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #fff;
  color: #ee4d2d;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.lang,
.user {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  color: #ee4d2d;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ===== 白色页头 ===== */
.header {
  background: #fff;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  min-height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ee4d2d;
}

.brand:hover {
  color: #ee4d2d;
}

.brand-name {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
}

.header-line {
  width: 1px;
  height: 30px;
  margin: 0 18px;
  background: #ee4d2d;
}

.page-title {
  font-size: 20px;
  font-weight: 500;
  color: #222;
}

/* ===== 主体 ===== */
.main {
  padding: 20px 0 96px;
}

.float-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  min-width: 120px;
  height: 48px;
  padding: 0 22px;
  border-radius: 24px;
  background: #ee4d2d;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(238, 77, 45, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.float-btn:hover {
  background: #d73211;
  color: #fff;
}

.float-btn[hidden] {
  display: none;
}

.card {
  background: #fff;
  border-radius: 3px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.order-card {
  overflow: hidden;
}

.order-head,
.shop-row,
.product-row,
.voucher-row,
.ship-block,
.order-foot {
  padding-left: 24px;
  padding-right: 24px;
}

.order-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  padding-bottom: 14px;
}

.order-head h2 {
  font-size: 18px;
  font-weight: 500;
  color: #222;
}

.order-cols {
  display: grid;
  grid-template-columns: 120px 120px 120px;
  text-align: center;
  color: #888;
}

.shop-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 14px;
  padding-bottom: 12px;
  border-top: 1px solid #f2f2f2;
}

.shop-icon {
  flex-shrink: 0;
}

.shop-name {
  font-weight: 600;
}

.chat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border: 1px solid #ee4d2d;
  border-radius: 2px;
  color: #ee4d2d;
  font-size: 12px;
}

.chat:hover {
  background: #fff5f3;
  color: #ee4d2d;
}

.product-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  gap: 16px;
}

.product-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border: 1px solid #eee;
  border-radius: 2px;
  background: #fafafa;
  flex-shrink: 0;
}

.product-title {
  font-size: 14px;
  color: #222;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-spec {
  margin-top: 6px;
  color: #888;
  font-size: 13px;
}

.product-nums {
  color: #222;
  align-items: center;
}

.price-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.35;
}

.old-price {
  color: #bbb;
  text-decoration: line-through;
  font-size: 12px;
}

.now-price {
  color: #222;
}

.line-total {
  font-weight: 500;
}

.voucher-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  padding-bottom: 14px;
  border-top: 1px dashed #eee;
}

.voucher-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #222;
}

.voucher-action {
  display: flex;
  align-items: center;
  gap: 12px;
}

.voucher-action a {
  color: #05a;
}

.voucher-action a:hover {
  color: #0044aa;
}

.discount-tag {
  color: #ee4d2d;
  border: 1px solid #ee4d2d;
  border-radius: 2px;
  padding: 1px 6px;
  font-size: 12px;
}

.ship-block {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 28px;
  padding-top: 18px;
  padding-bottom: 18px;
  background: #fafafa;
  border-top: 1px solid #f0f0f0;
}

.note-col {
  display: flex;
  align-items: center;
  gap: 10px;
}

.note-col label {
  color: #555;
  white-space: nowrap;
}

.note-col input {
  flex: 1;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #e5e5e5;
  border-radius: 2px;
  outline: none;
  background: #fff;
  font: inherit;
}

.note-col input:focus {
  border-color: #ee4d2d;
}

.ship-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.ship-title {
  color: #00bfa5;
  font-weight: 600;
  margin-right: 10px;
}

.ship-method {
  font-weight: 600;
}

.ship-eta,
.ship-receiver,
.ship-addr,
.ship-promo {
  margin-top: 6px;
  color: #888;
  font-size: 13px;
}

.ship-receiver {
  color: #555;
}

.ship-fee {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 64px;
}

.ship-fee a {
  color: #05a;
  font-size: 13px;
}

.order-foot {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 12px;
  padding-top: 16px;
  padding-bottom: 16px;
  background: #fffefb;
  border-top: 1px solid #f2f2f2;
  color: #555;
}

.order-foot strong {
  color: #ee4d2d;
  font-size: 28px;
  font-weight: 500;
}

.strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding: 18px 24px;
}

.strip-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.strip a {
  color: #05a;
}

.coin-hint {
  color: #888;
  font-size: 13px;
}

.coin-check input {
  width: 16px;
  height: 16px;
  accent-color: #ee4d2d;
}

@media (max-width: 900px) {
  .order-cols {
    grid-template-columns: 72px 56px 72px;
  }

  .ship-block {
    grid-template-columns: 1fr;
  }

  .topbar-follow,
  .topbar-left .split:nth-of-type(2),
  .topbar-left a:nth-of-type(2) {
    display: none;
  }
}
