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

:root {
  --red: #e60012;
  --text: #1a1a1a;
  --text-muted: #999;
  --bg: #f5f5f5;
  --tab-height: 56px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  padding-bottom: calc(var(--tab-height) + env(safe-area-inset-bottom, 0px));
}

.page {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
}

/* ===== 顶栏搜索 ===== */
.order-header {
  background: linear-gradient(180deg, #e60012 0%, #d40011 100%);
  padding: 10px 12px 14px;
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  padding: 2px 2px 2px 12px;
}

.search-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.icon-search {
  width: 16px;
  height: 16px;
  color: #bbb;
  flex-shrink: 0;
}

.search-box input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  width: 100%;
  color: var(--text);
}

.search-box input::placeholder {
  color: #bbb;
}

.search-btn {
  flex-shrink: 0;
  border: none;
  background: var(--red);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* ===== 订单状态 Tab ===== */
.order-tabs {
  display: flex;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.order-tabs::-webkit-scrollbar {
  display: none;
}

.order-tab {
  flex: 1;
  min-width: 72px;
  padding: 14px 8px;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.order-tab.active {
  color: var(--red);
  font-weight: 600;
}

/* ===== 内容区 ===== */
.order-content {
  min-height: calc(100vh - 160px);
  background: #fff;
}

.login-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  padding: 40px 24px;
}

.login-btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--red);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  border-radius: 999px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.login-btn:active {
  opacity: 0.9;
}

.order-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
  font-size: 14px;
}

.order-list {
  padding: 0 12px;
}

.order-card {
  padding: 14px 0;
  border-bottom: 1px dashed #e8e8e8;
}

.order-card:last-child {
  border-bottom: none;
}

.order-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
}

.order-no {
  color: var(--text-muted);
}

.order-status {
  color: var(--red);
  font-weight: 500;
}

.order-card-body {
  display: flex;
  gap: 10px;
}

.order-thumb {
  width: 72px;
  height: 72px;
  border-radius: 6px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-color: #eee;
}

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

.order-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.order-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.order-price {
  margin-top: 6px;
  font-size: 15px;
  color: var(--red);
  font-weight: 700;
}
