/* 订单中心 · 20260930 与团队/抽奖同系蓝色顶区 */

.oc-page.oc-v2 {
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  background: #eef2f8;
}

.oc-hero-wrap {
  position: relative;
  padding-bottom: 18px;
  color: #fff;
  background: linear-gradient(165deg, #0a4a9e 0%, #1565cc 38%, #1d84ff 72%, #4da3ff 100%);
  overflow: hidden;
}

.oc-hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image: radial-gradient(circle at 20% 30%, #fff 0 1px, transparent 1px),
    radial-gradient(circle at 70% 60%, #fff 0 1px, transparent 1px);
  background-size: 28px 28px, 36px 36px;
  pointer-events: none;
}

.oc-hero-nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 8px;
}

.oc-hero-back {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 26px;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}

.oc-hero-nav-center {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.oc-hero-brand {
  display: block;
  font-size: 11px;
  letter-spacing: 0.06em;
  opacity: 0.88;
}

.oc-hero-nav-title {
  margin: 2px 0 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.oc-hero-spacer {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
}

.oc-hero-pill {
  flex-shrink: 0;
  max-width: 88px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  -webkit-tap-highlight-color: transparent;
}

.oc-ticket-fab {
  position: fixed;
  z-index: 880;
  right: 14px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(145deg, #1d84ff, #1565cc);
  box-shadow: 0 8px 24px rgba(21, 101, 204, 0.42);
  -webkit-tap-highlight-color: transparent;
}

.oc-ticket-fab-ico {
  font-size: 16px;
  line-height: 1;
}

.oc-ticket-fab-txt {
  letter-spacing: 0.02em;
}

.oc-hero-copy {
  position: relative;
  z-index: 1;
  padding: 6px 18px 14px;
}

.oc-hero-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 11px;
  font-weight: 600;
}

.oc-hero-title {
  margin: 10px 0 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
}

.oc-hero-sub {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  max-width: 340px;
}

.oc-hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0 14px;
  padding: 14px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
}

.oc-hero-stat {
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.08);
}

.oc-hero-stat--main {
  grid-column: span 2;
  background: rgba(255, 255, 255, 0.12);
}

.oc-hero-stat .k {
  display: block;
  font-size: 11px;
  opacity: 0.88;
}

.oc-hero-stat .v {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.oc-hero-stat .v.sm {
  font-size: 16px;
  font-weight: 700;
}

.oc-hero-stat .v small {
  font-size: 12px;
  font-weight: 600;
  margin-left: 2px;
}

.oc-main {
  margin-top: -8px;
  padding: 0 14px 8px;
  position: relative;
  z-index: 2;
}

.oc-card {
  padding: 16px 14px 18px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(21, 101, 204, 0.1);
}

.oc-card-hd h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #1a2a3a;
}

.oc-card-sub {
  margin: 6px 0 0;
  font-size: 12px;
  color: #8a96a8;
  line-height: 1.45;
}

.oc-tabs-scroll {
  display: flex;
  gap: 8px;
  margin: 14px 0 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.oc-tabs-scroll::-webkit-scrollbar {
  display: none;
}

.oc-tab-pill {
  flex-shrink: 0;
  border: 1px solid #dce8f8;
  background: #f4f8fd;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #5a6a7e;
  border-radius: 999px;
  -webkit-tap-highlight-color: transparent;
}

.oc-tab-pill.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(145deg, #1d84ff, #1565cc);
  box-shadow: 0 4px 14px rgba(29, 132, 255, 0.35);
}

.oc-order-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.oc-order-card {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #e4edf8;
  background: linear-gradient(180deg, #fafcff 0%, #fff 100%);
}

.oc-order-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.oc-order-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: #1565cc;
  background: linear-gradient(145deg, #e8f3ff, #d4e8ff);
}

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

.oc-order-title {
  font-size: 15px;
  font-weight: 700;
  color: #222;
  line-height: 1.35;
}

.oc-order-no {
  margin-top: 4px;
  font-size: 11px;
  color: #8a96a8;
  line-height: 1.4;
  word-break: break-all;
}

.oc-order-badge {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
}

.oc-order-badge.live {
  color: #1565cc;
  background: #e8f3ff;
}

.oc-order-badge.done {
  color: #6b7280;
  background: #f3f4f6;
}

.oc-order-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #dce8f8;
}

.oc-metric {
  text-align: center;
}

.oc-metric .k {
  display: block;
  font-size: 10px;
  color: #aaa;
}

.oc-metric .v {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #333;
}

.oc-metric .v.accent {
  font-size: 14px;
  color: #1565cc;
}

.oc-metric .v.muted {
  font-weight: 600;
  font-size: 11px;
  color: #666;
}

.oc-gift-tip {
  margin: 10px 0 0;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11px;
  color: #0d6e5a;
  background: #e8f8f3;
  line-height: 1.4;
}

.oc-empty {
  text-align: center;
  padding: 32px 16px 24px;
  border: 2px dashed #dce8f8;
  border-radius: 14px;
  margin-top: 4px;
}

.oc-empty-icon {
  font-size: 32px;
  line-height: 1;
}

.oc-empty-title {
  margin: 10px 0 0;
  font-size: 18px;
  font-weight: 800;
  color: #1565cc;
}

.oc-empty-sub {
  margin: 8px 0 0;
  font-size: 13px;
  color: #9ca3af;
  line-height: 1.5;
}

.oc-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}

.oc-pager-btn {
  flex: 1;
  max-width: 120px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(145deg, #1d84ff, #1565cc);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  -webkit-tap-highlight-color: transparent;
}

.oc-pager-btn:disabled {
  background: #e5e7eb;
  color: #9ca3af;
  opacity: 1;
}

.oc-pager-num {
  flex: 1;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.oc-traits {
  margin: 14px 4px 0;
  padding: 0;
  list-style: none;
  font-size: 11px;
  color: #9aa8b8;
  line-height: 1.6;
}

.oc-traits li {
  position: relative;
  padding-left: 12px;
  margin-top: 4px;
}

.oc-traits li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: #1d84ff;
  font-weight: 700;
}

/* 兼容未升级 DOM 的旧版结构（若有缓存组件） */
.oc-page:not(.oc-v2) {
  min-height: 100vh;
  background: #eef2f8;
}
