.junhua-order-data-section {
  font-family: var(--font-family);
}

.junhua-order-data-section .junhua-order-data-section-container-background {
  background-color: var(--bg-color-white);
  padding: calc(2 * var(--spacing-lg));
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-2xl);
}
/* -----------------------------
 * Left: 2x2 metric cards
 * ----------------------------- */
.junhua-order-data-section .junhua-order-data-left {
  flex: 1;
  background: var(--bg-color-white);
}

.junhua-order-data-section .junhua-order-data-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  height: 100%;
  width: 100%;
  background-color: var(--border-color-default);
  gap: var(--border-width-thin);
}

.junhua-order-data-section .junhua-order-data-metric-item {
  background: var(--bg-color-white);
  display: flex;
  align-items: center;
}

.junhua-order-data-section .junhua-order-data-metric-inner {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  width: 100%;
  padding: var(--spacing-5xl);
}

.junhua-order-data-section .junhua-order-data-metric-icon {
  width: 2.4rem;
  height: 2.4rem;
  flex-shrink: 0;
  object-fit: contain;
}

.junhua-order-data-section .junhua-order-data-metric-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.junhua-order-data-section .junhua-order-data-metric-value {
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-h4);
  line-height: var(--line-height-subtitle);
  color: var(--primary-color);
  /* CountUp 时避免数字宽度抖动 */
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

.junhua-order-data-section .junhua-order-data-metric-label {
  font-weight: var(--font-weight-normal);
  font-size: var(--font-size-small);
  line-height: var(--line-height-subtitle);
  color: var(--text-color-light);
}

/* -----------------------------
 * Right: order list panel
 * ----------------------------- */
.junhua-order-data-section .junhua-order-data-right {
  flex-shrink: 0;
  min-width: 0;
}

.junhua-order-data-section .junhua-order-data-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-base);
}

.junhua-order-data-section .junhua-order-data-title {
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-base);
  line-height: var(--line-height-subtitle);
  color: var(--text-color-strong);
  margin: 0;
}

.junhua-order-data-section .junhua-order-data-link {
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-small);
  line-height: var(--line-height-subtitle);
  color: var(--primary-color);
  text-decoration: none;
}

.junhua-order-data-section .junhua-order-data-link:hover {
  text-decoration: underline;
}

.junhua-order-data-section .junhua-order-data-panel {
  border: var(--border-width-thin) solid var(--border-color-default);
  padding: var(--border-width-thin);
  display: flex;
  background: var(--bg-color-white);
}

.junhua-order-data-section .junhua-order-data-panel-left {
  flex-shrink: 0;
  border-right: var(--border-width-thin) solid var(--border-color-default);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-5xl);
}

.junhua-order-data-section .junhua-order-data-panel-left-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-lg);
  padding: var(--spacing-4xl) var(--spacing-base);
}

.junhua-order-data-section .junhua-order-data-panel-icon {
  width: 2.4rem;
  height: 2.4rem;
  object-fit: contain;
}

.junhua-order-data-section .junhua-order-data-panel-value {
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-h4);
  line-height: var(--line-height-subtitle);
  text-align: center;
  color: var(--primary-color);
}

.junhua-order-data-section .junhua-order-data-panel-label {
  font-weight: var(--font-weight-normal);
  font-size: var(--font-size-small);
  line-height: var(--line-height-subtitle);
  text-align: center;
  color: var(--text-color-strong);
}

.junhua-order-data-section .junhua-order-data-panel-right {
  flex: 1;
  min-width: 0;
}

.junhua-order-data-section .junhua-order-data-table-head {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: var(--spacing-lg) var(--spacing-base);
  align-items: center;
}

.junhua-order-data-section .junhua-order-data-th {
  font-weight: var(--font-weight-normal);
  font-size: var(--font-size-small);
  line-height: var(--line-height-subtitle);
  text-align: center;
  color: var(--text-color-strong);
}

.junhua-order-data-section .junhua-order-data-table-body {
  height: 220px;
  overflow: hidden;
}

.junhua-order-data-section .junhua-order-data-table-body-swiper {
  height: 100%;
  width: 100%;
}

.junhua-order-data-section .junhua-order-data-table-body-swiper .swiper-slide {
  height: auto;
  flex-shrink: 0;
}

.junhua-order-data-section .junhua-order-data-tr {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  padding: var(--spacing-base);
}

.junhua-order-data-section .junhua-order-data-td {
  position: relative;
  z-index: 1;
  font-weight: var(--font-weight-normal);
  font-size: var(--font-size-body);
  line-height: var(--line-height-subtitle);
  text-align: center;
  color: var(--text-color-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
}

.junhua-order-data-section .junhua-order-data-flag {
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Style isolation */
.junhua-order-data-section *,
.junhua-order-data-section *::before,
.junhua-order-data-section *::after {
  box-sizing: border-box;
}

.junhua-order-data-table-body-swiper .swiper-wrapper {
  display: flex;
  flex-direction: column !important;
  will-change: transform;
}

@media screen and (max-width: 1024px) {
  .junhua-order-data-section .junhua-order-data-right {
    min-width: 100%;
  }
}

@media screen and (max-width: 576px) {
  .junhua-order-data-section .junhua-order-data-metric-inner {
    padding: var(--spacing-2xl);
  }

  .junhua-order-data-section .junhua-order-data-right {
    flex: auto;
  }
  .junhua-order-data-section .junhua-order-data-panel {
    flex-direction: column;
  }
  .junhua-order-data-section .junhua-order-data-panel-left {
    border-right: none;
    border-bottom: var(--border-width-thin) solid var(--border-color-default);
    padding: 0px;
  }

  .junhua-order-data-section .junhua-order-data-panel-left-inner {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    row-gap: 0px;
    column-gap: var(--spacing-base);
  }

  .junhua-order-data-section .junhua-order-data-panel-icon {
    grid-row: 1 / span 2;
  }

  .junhua-order-data-section .junhua-order-data-panel-value {
    text-align: left;
  }
}
