.statistics-taobao-page {
  --tb-orange: #ff8a00;
  --tb-orange-deep: #ff6a00;
  --tb-yellow: #ffc03d;
  --tb-yellow-soft: #fff1ba;
  --tb-page: #f3f3f5;
  --tb-card: #ffffff;
  --tb-line: #ffe7c4;
  --tb-line-soft: #fff0d8;
  --tb-text: #2c2926;
  --tb-muted: #817970;
  --tb-shadow: none;
  min-height: calc(100vh - 136px);
  min-height: calc(100dvh - 136px);
  padding: 10px 0 14px;
  overflow-x: hidden;
  box-sizing: border-box;
  background: var(--tb-page);
  color: var(--tb-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
}

.statistics-taobao-page *,
.statistics-taobao-page *::before,
.statistics-taobao-page *::after {
  box-sizing: border-box;
}

body:has(.statistics-taobao-page) {
  --dtt-main-header-height: 64px;
  --dtt-main-footer-height: 72px;
}

body:has(.statistics-taobao-page) .q-layout {
  background: #f3f3f5 !important;
}

html:has(.statistics-taobao-page),
body:has(.statistics-taobao-page),
body:has(.statistics-taobao-page) #q-app,
body:has(.statistics-taobao-page) .q-page-container {
  background: #f3f3f5 !important;
}

body:has(.statistics-taobao-page) .q-page-container {
  padding-top: var(--dtt-main-header-height) !important;
}

body:has(.statistics-taobao-page) .q-page {
  min-height: calc(100vh - var(--dtt-main-header-height) - var(--dtt-main-footer-height)) !important;
  min-height: calc(100dvh - var(--dtt-main-header-height) - var(--dtt-main-footer-height)) !important;
  background: #f3f3f5 !important;
}

body:has(.statistics-taobao-page) .header {
  min-height: var(--dtt-main-header-height);
  border-bottom: 0 !important;
  background: #ffffff !important;
  box-shadow: none;
}

body:has(.statistics-taobao-page) .header .q-toolbar {
  height: var(--dtt-main-header-height);
  min-height: var(--dtt-main-header-height);
}

body:has(.statistics-taobao-page) .header .q-toolbar__title {
  color: #1f1b13 !important;
  font-weight: 800;
  letter-spacing: 0;
}

.statistics-filter-card,
.statistics-link-card,
.statistics-data-card {
  border: 0;
  border-radius: 8px !important;
  background: #ffffff;
  box-shadow: none;
}

.statistics-filter-card {
  margin: 0 10px 12px;
  overflow: hidden;
}

.statistics-filter-row {
  display: grid;
  grid-template-columns: 28px auto minmax(0, 1fr) auto;
  min-height: 50px;
  align-items: center;
  column-gap: 7px;
  padding: 8px 10px;
}

.statistics-filter-row + .statistics-filter-row {
  border-top: 1px solid var(--tb-line-soft);
}

.statistics-filter-project {
  cursor: pointer;
}

.statistics-filter-project:active {
  background: #ffffff;
}

.statistics-filter-icon,
.statistics-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--tb-orange);
  background: #ffffff;
}

.statistics-filter-icon {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}

.statistics-filter-label {
  min-width: 66px;
  color: var(--tb-text);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.statistics-filter-value {
  min-width: 0;
  justify-self: end;
  color: var(--tb-muted);
  font-size: 14px;
  line-height: 1.3;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.statistics-chevron {
  color: var(--tb-muted);
}

.statistics-date-button {
  width: 30px;
  height: 30px;
  color: #ffffff !important;
  background: linear-gradient(180deg, #ffab19 0%, #ff7a00 100%) !important;
  box-shadow: none;
}

.statistics-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  margin: 0 10px 12px;
  padding: 0 12px;
  cursor: pointer;
}

.statistics-link-card:active {
  background: #ffffff;
}

.statistics-link-title {
  min-width: 0;
  overflow: hidden;
  color: var(--tb-text);
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.statistics-link-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--tb-orange);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.statistics-data-card {
  overflow: hidden;
  margin-bottom: 12px;
}

.statistics-card-top {
  padding: 12px 12px 8px;
}

.statistics-card-header,
.statistics-card-title-wrap {
  display: flex;
  align-items: center;
}

.statistics-card-header {
  justify-content: space-between;
  gap: 10px;
}

.statistics-card-title-wrap {
  min-width: 0;
  gap: 8px;
}

.statistics-title-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
}

.statistics-card-title {
  min-width: 0;
  color: #30343a;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.statistics-detail-btn {
  min-width: 70px;
  min-height: 30px;
  border-radius: 8px;
  color: #ffffff !important;
  background: linear-gradient(180deg, #ff9f16 0%, #ff7600 100%) !important;
  box-shadow: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.statistics-grid-section {
  padding: 0 8px 10px;
}

.statistics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--tb-line);
  border-radius: 8px;
  background: #ffffff;
}

.statistics-metric {
  display: flex;
  min-width: 0;
  min-height: 74px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 8px 3px;
  border-right: 1px solid var(--tb-line-soft);
  border-bottom: 1px solid var(--tb-line-soft);
}

.statistics-metric:nth-child(3n) {
  border-right: 0;
}

.statistics-metric:nth-child(n + 4) {
  border-bottom: 0;
}

.statistics-metric-value {
  color: #ff7800;
  font-size: 23px;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0;
}

.statistics-metric-label {
  margin-top: 6px;
  color: #25292f;
  font-size: 13px;
  line-height: 1.25;
  letter-spacing: 0;
  text-align: center;
}

body:has(.statistics-taobao-page) .my-footer {
  border-top: 1px solid #ffe7c4;
  background: #ffffff !important;
  box-shadow: none;
}

body:has(.statistics-taobao-page) .my-footer .q-tab--active,
body:has(.statistics-taobao-page) .my-footer .q-tab--active .text {
  color: #ff8a00 !important;
}

body:has(.statistics-taobao-page) .my-footer .q-tab--active .text {
  font-weight: 600;
}

body:has(.statistics-taobao-page) .my-footer .q-tab--active .q-tab__indicator {
  background: #ff8a00 !important;
}

body:has(.statistics-taobao-page) .my-footer .q-tab--active .tongji_icon {
  background: #ff8a00 !important;
  filter: none;
  -webkit-mask: url(/h5/assets/footer_tongji_fill_icon.17596308.png) center / cover no-repeat;
  mask: url(/h5/assets/footer_tongji_fill_icon.17596308.png) center / cover no-repeat;
}

body:has(.statistics-taobao-page) button:focus-visible,
body:has(.statistics-taobao-page) [role="button"]:focus-visible {
  outline: 2px solid #ffb65f;
  outline-offset: 2px;
}

@media (max-width: 360px) {
  .statistics-filter-row {
    grid-template-columns: 26px auto minmax(0, 1fr) auto;
    column-gap: 6px;
    padding-right: 9px;
    padding-left: 9px;
  }

  .statistics-filter-label,
  .statistics-filter-value {
    font-size: 13px;
  }

  .statistics-card-title {
    font-size: 15px;
  }

  .statistics-detail-btn {
    min-width: 66px;
    font-size: 12px;
  }

  .statistics-metric-value {
    font-size: 22px;
  }

  .statistics-metric-label {
    font-size: 12px;
  }
}
