@import url("/shared-web/design-system/qiushi-ui-1.0/tokens.generated.css");
@import url("/shared-web/design-system/qiushi-ui-1.0/components.css");
*, ::before, ::after { box-sizing: border-box; }
        html { -webkit-text-size-adjust: 100%; }
        a { color: inherit; text-decoration: inherit; }
        button, input { font: inherit; }
        button { appearance: none; background: transparent; border: 0; cursor: pointer; }
        .fixed { position: fixed; }
        .top-0 { top: 0; }
        .z-50 { z-index: 50; }
        .flex { display: flex; }
        .grid { display: grid; }
        .flex-1 { flex: 1 1 0%; }
        .flex-col { flex-direction: column; }
        .flex-shrink-0, .shrink-0 { flex-shrink: 0; }
        .items-center { align-items: center; }
        .items-start { align-items: flex-start; }
        .justify-center { justify-content: center; }
        .justify-between { justify-content: space-between; }
        .grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
        .grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .gap-1 { gap: 4px; }
        .gap-2 { gap: 8px; }
        .gap-3 { gap: 12px; }
        .h-12 { height: 48px; }
        .h-3\.5 { height: 14px; }
        .h-7 { height: 28px; }
        .h-8 { height: 32px; }
        .h-\[34px\] { height: 34px; }
        .h-\[54px\] { height: 54px; }
        .min-h-screen { min-height: 100vh; }
        .min-w-\[110px\] { min-width: 110px; }
        .min-w-\[130px\] { min-width: 130px; }
        .w-3\.5 { width: 14px; }
        .w-8 { width: 32px; }
        .w-full { width: 100%; }
        .overflow-hidden { overflow: hidden; }
        .overflow-x-auto { overflow-x: auto; }
        .overflow-x-hidden { overflow-x: hidden; }
        .overflow-y-auto { overflow-y: auto; }
        .whitespace-nowrap { white-space: nowrap; }
        .cursor-pointer { cursor: pointer; }
        .rounded { border-radius: 2px; }
        .rounded-sm { border-radius: 2px; }
        .rounded-lg { border-radius: 4px; }
        .rounded-xl { border-radius: 8px; }
        .rounded-full { border-radius: 9999px; }
        .border { border: 1px solid #e0e0e0; }
        .border-b { border-bottom: 1px solid #eeeeee; }
        .border-t { border-top: 1px solid #e0e0e0; }
        .border-r { border-right: 1px solid #e0e0e0; }
        .border-outline { border-color: #e0e0e0; }
        .border-outline-variant { border-color: #eeeeee; }
        .border-primary\/20 { border-color: rgba(215, 25, 32, 0.2); }
        .bg-white { background-color: #ffffff; }
        .bg-primary { background-color: #d71920; }
        .bg-tertiary { background-color: #00588f; }
        .bg-surface-variant { background-color: #f5f5f5; }
        .bg-surface-variant\/45 { background-color: rgba(245, 245, 245, 0.45); }
        .bg-primary-fixed\/35 { background-color: rgba(255, 218, 214, 0.35); }
        .bg-primary-fixed\/50 { background-color: rgba(255, 218, 214, 0.5); }
        .bg-tertiary-fixed\/35 { background-color: rgba(208, 228, 255, 0.35); }
        .bg-tertiary-fixed\/60 { background-color: rgba(208, 228, 255, 0.6); }
        .p-2 { padding: 8px; }
        .p-3 { padding: 12px; }
        .px-2 { padding-left: 8px; padding-right: 8px; }
        .px-3 { padding-left: 12px; padding-right: 12px; }
        .px-4 { padding-left: 16px; padding-right: 16px; }
        .px-margin { padding-left: 16px; padding-right: 16px; }
        .py-1 { padding-top: 4px; padding-bottom: 4px; }
        .py-1\.5 { padding-top: 6px; padding-bottom: 6px; }
        .py-2 { padding-top: 8px; padding-bottom: 8px; }
        .py-2\.5 { padding-top: 10px; padding-bottom: 10px; }
        .pt-12 { padding-top: 48px; }
        .pb-24 { padding-bottom: 96px; }
        .mx-margin { margin-left: 16px; margin-right: 16px; }
        .mt-1 { margin-top: 4px; }
        .mt-2 { margin-top: 8px; }
        .mt-3 { margin-top: 12px; }
        .mb-4 { margin-bottom: 16px; }
        .text-center { text-align: center; }
        .text-\[10px\] { font-size: 10px; }
        .text-\[12px\] { font-size: 12px; }
        .text-\[14px\] { font-size: 14px; }
        .text-\[15px\] { font-size: 15px; }
        .text-\[20px\] { font-size: 20px; }
        .text-label-sm { font-size: 10px; line-height: 12px; letter-spacing: 0.3px; font-weight: 500; }
        .text-label-md { font-size: 12px; line-height: 16px; letter-spacing: 0.3px; font-weight: 500; }
        .text-body-sm { font-size: 11px; line-height: 16px; font-weight: 400; }
        .text-headline-sm { font-size: 15px; line-height: 20px; font-weight: 700; }
        .text-headline-md { font-size: 18px; line-height: 24px; font-weight: 700; }
        .font-headline-md { font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif; }
        .font-mono { font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif; }
        .font-normal { font-weight: 400; }
        .font-bold { font-weight: 700; }
        .leading-3 { line-height: 12px; }
        .leading-5 { line-height: 20px; }
        .tracking-tight { letter-spacing: -0.01em; }
        .text-primary { color: #d71920; }
        .text-tertiary { color: #00588f; }
        .text-white { color: #ffffff; }
        .text-on-surface { color: #212121; }
        .text-on-surface-variant { color: #757575; }
        .text-on-secondary-fixed-variant { color: #424242; }
        .opacity-20 { opacity: 0.2; }
        .shadow-sm { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
        .shadow-\[0_-2px_10px_rgba\(0\,0\,0\,0\.02\)\] { box-shadow: 0 -2px 10px rgba(0,0,0,0.02); }
        .scale-90 { transform: scale(0.9); }
        .transition-colors { transition-property: color, background-color, border-color; transition-duration: 150ms; }
        .hover\:bg-surface-variant:hover { background-color: #f5f5f5; }
        .focus\:ring-primary:focus { outline: 2px solid rgba(215, 25, 32, 0.35); outline-offset: 2px; }
        .fill-1 { font-variation-settings: 'FILL' 1; }
        body { font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif; background-color: #FFFFFF; }
        .no-scrollbar::-webkit-scrollbar { display: none; }
        .no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

        .grid-cell {
            width: 30px;
            height: 34px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-right: 1px solid #EEEEEE;
            border-bottom: 1px solid #EEEEEE;
            font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
            font-size: 12px;
            background-color: #FFFFFF;
        }
        .issue-cell {
            width: 72px;
            flex-shrink: 0;
            background: #FFFFFF;
            z-index: 12;
            border-right: 1px solid #DDDDDD;
            border-bottom: 1px solid #EEEEEE;
        }
        .trend-grid-shell {
            height: min(65vh, 600px);
            min-height: 300px;
            border-bottom: 1px solid #EEEEEE;
            overflow: hidden;
        }
        .trend-grid-viewport {
            height: 100%;
            overflow: auto;
            background: #FFFFFF;
        }
        .trend-grid-header {
            position: sticky;
            top: 0;
            z-index: 20;
            background: #FFFFFF;
        }
        .trend-issue-sticky {
            position: sticky;
            left: 0;
        }
        .hit-ball {
            width: 22px;
            height: 22px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 700;
            font-size: 11px;
            box-shadow: 0 1px 2px rgba(0,0,0,0.1);
        }
        .trend-line-canvas {
            position: absolute;
            top: 0;
            left: 0;
            pointer-events: none;
            z-index: 5;
        }
        .section-divider {
            width: 2px;
            background-color: #DDDDDD;
            height: 100%;
        }
        .trend-grid-viewport[data-line-visible="false"] .hit-ball {
            box-shadow: none;
        }
        .trend-grid-viewport[data-line-visible="false"] .grid-cell.opacity-20 {
            opacity: 0.12;
        }
        .trend-focus-card {
            outline: 2px solid rgba(215, 25, 32, 0.18);
            box-shadow: 0 0 0 4px rgba(215, 25, 32, 0.08);
        }
        .trend-feedback[hidden] {
            display: none;
        }
        .trend-area-label {
            height: 26px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-right: 1px solid #EEEEEE;
            border-bottom: 1px solid #EEEEEE;
            font-size: 11px;
            line-height: 14px;
            font-weight: 700;
            white-space: nowrap;
        }
        .trend-number-row {
            height: 28px;
            display: flex;
        }
        .trend-scroll-area {
            min-width: var(--trend-scroll-width, 1432px);
        }
        .trend-front-group {
            width: var(--trend-front-width, 1050px);
        }
        .trend-back-group {
            width: var(--trend-back-width, 360px);
        }
    .local-icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}


/* ===== 走势图表格结构（复刻新浪布局） ===== */

/* 主表格 */
.zst-table-wrap {
  min-width: 100%;
  display: inline-block;
  overflow: visible;
}

.zst-table {
  font-size: 12px;
  line-height: 24px;
  border-collapse: collapse;
  text-align: center;
  width: 100%;
  background: #ffffff;
}

.zst-table td {
  text-align: center;
  vertical-align: middle;
  border: 1px solid #eeeeee;
  height: 24px;
  padding: 0 2px;
  font-size: 12px;
  font-family: inherit;
}

.zst-table th {
  text-align: center;
  vertical-align: middle;
  border: 1px solid #e0e0e0;
  font-weight: normal;
  font-size: 12px;
  background: #f5f5f5;
  padding: 2px 1px;
  font-family: inherit;
  color: #757575;
}

.zst-table tbody tr:nth-child(odd) td {
  background-color: #ffffff;
}
.zst-table tbody tr:nth-child(even) td {
  background-color: #fafafa;
}

.zst-table td:first-child,
.zst-table th:first-child {
  width: 72px;
  min-width: 72px;
  position: sticky;
  left: 0;
  z-index: 5;
  background: #fff;
  font-weight: 700;
  color: #212121;
  border-right: 1px solid #d0d0d0;
}
.zst-table tbody tr:nth-child(even) td:first-child {
  background-color: #fafafa;
}

.zst-table .wdh {
  width: 20px;
  min-width: 20px;
  max-width: 20px;
  padding: 0;
}

.zst-table .br01,
.zst-table .br02,
.zst-table .br03 {
  width: 3px;
  min-width: 3px;
  max-width: 3px;
  padding: 0;
  background: #e8e8e8;
  border-left: none;
  border-right: none;
  overflow: hidden;
}

.zst-table .chartball01 {
  color: #fff;
  font-weight: 700;
  display: inline-block;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  font-size: 11px;
  border-radius: 50%;
  background: #d71920;
}

.zst-table .chartball02 {
  color: #fff;
  font-weight: 700;
  display: inline-block;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  font-size: 11px;
  border-radius: 50%;
  background: #00588f;
}

.zst-table .yl01 {
  color: #a3c3ef;
  font-size: 11px;
}
.zst-table .yl02 {
  color: #f6a0af;
  font-size: 11px;
}

.zst-table .stat-cell {
  color: #757575;
  font-size: 11px;
  white-space: nowrap;
  min-width: 36px;
}

.zst-table thead tr.thbg th {
  background: #f0f0f0;
  border: 1px solid #e0e0e0;
  font-weight: 700;
  color: #424242;
  font-size: 11px;
  padding: 2px 3px;
  white-space: nowrap;
}

/* 走势图表格补充样式 */
.zst-table .sort_top {
  font-weight: 700;
  color: #424242;
  font-size: 11px;
  white-space: nowrap;
}

.zst-table .zone-label {
  font-weight: 700;
  color: #d71920;
  font-size: 11px;
  white-space: nowrap;
  text-align: center;
  padding: 2px 4px;
}

/* 走势图底部助选工具模块 */
.trend-tool-icon {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: #fff1f0; color: #d71920;
}
.trend-tool-icon svg { width: 20px; height: 20px; }

/* 走势图详情页 · 分析 tab 条（精致横滑） */
.zst-detail-tab {
  padding: 10px 14px; font-size: 13px; font-weight: 600; color: #666666;
  white-space: nowrap; border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
}
.zst-detail-tab:active { color: #d71920; }
.zst-detail-tab.is-active {
  color: #d71920; font-weight: 800;
  border-bottom-color: #d71920;
  background: linear-gradient(180deg, #fff7f7 0%, #fff0f0 100%);
}

/* 走势图详情页 · 期数胶囊 */
.trend-period-chip {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  padding: 6px 14px; border-radius: 9999px; border: 1px solid #eeeeee;
  background: #ffffff; color: #666666; font-size: 12px; font-weight: 600;
  transition: all 0.15s ease;
}
.trend-period-chip:active { border-color: #d71920; color: #d71920; }
.trend-period-chip.is-active {
  background: linear-gradient(180deg, #e8434a 0%, #d71920 100%);
  border-color: #d71920; color: #ffffff; font-weight: 800;
  box-shadow: 0 3px 8px rgba(215, 25, 32, 0.18);
}

/* 走势图详情页 · 助选工具网格 */
.trend-tools-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
}
.trend-tool-item {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 12px 4px; border-radius: 14px; border: 1px solid #f0f0f0; background: #ffffff;
  transition: all 0.15s ease;
}
.trend-tool-item:active { transform: scale(0.96); border-color: #d71920; background: #fff8f8; }
.trend-tool-item-name { font-size: 11px; font-weight: 600; color: #666666; }

/* 走势图详情页 · 筛选条右侧（折线/排序）紧凑样式 */
.trend-filter-label {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; color: #888888; cursor: pointer; white-space: nowrap;
}
.trend-filter-checkbox { width: 14px; height: 14px; accent-color: #d71920; margin: 0; }
.trend-filter-btn {
  display: flex; align-items: center; gap: 3px;
  font-size: 11px; color: #888888; padding: 5px 10px;
  border-radius: 8px; background: #ffffff; border: 1px solid #eeeeee; white-space: nowrap;
  transition: all 0.15s ease;
}
.trend-filter-btn:active { border-color: #d71920; color: #d71920; }

/* 走势图详情页 · 助选工具标题（紧凑） */
.trend-tools-title {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 800; color: #1b1c1c;
}
.trend-tools-sub { font-size: 11px; color: #999999; }

/* 走势图折线：表格容器相对定位 + canvas 覆盖 */
.zst-table-wrap { position: relative; }
.trend-line-canvas { position: absolute; top: 0; left: 0; pointer-events: none; z-index: 5; }

/* UI1 顶部栏统一标准：返回键品牌红 + 40px 最小触控 + 20px 图标（2026-08-08） */
body[data-qiushi-page="lottery-trend-detail"] header [aria-label^="返回"] {
  color: #d71920;
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
}
body[data-qiushi-page="lottery-trend-detail"] header [aria-label^="返回"] svg,
body[data-qiushi-page="lottery-trend-detail"] header [aria-label^="返回"] .qs-ui-icon,
body[data-qiushi-page="lottery-trend-detail"] header [aria-label^="返回"] [class*="material-symbols"] {
  color: #d71920;
}
body[data-qiushi-page="lottery-trend-detail"] header [aria-label^="返回"] .qs-ui-icon,
body[data-qiushi-page="lottery-trend-detail"] header [aria-label^="返回"] [class*="material-symbols"] {
  width: 20px;
  height: 20px;
  font-size: 20px;
}
/* Standard trend navigation and period control */
body[data-qiushi-page="lottery-trend-detail"] .trend-period-selector{flex:1 1 auto;min-width:0;align-items:center;padding:4px;gap:2px;border:1px solid #eee;border-radius:10px;background:#f5f5f5}
body[data-qiushi-page="lottery-trend-detail"] .trend-period-selector .trend-period-chip{min-height:36px;flex:1 1 0;padding:6px 8px;border:1px solid transparent;border-radius:7px;background:transparent;color:#5d3f3c;font-size:12px;font-weight:600;white-space:nowrap;transition:color 150ms ease,background-color 150ms ease,box-shadow 150ms ease}
body[data-qiushi-page="lottery-trend-detail"] .trend-period-selector .trend-period-chip.is-active{background:#fff;color:#d71920;box-shadow:0 1px 2px rgba(17,24,39,.08)}
body[data-qiushi-page="lottery-trend-detail"] .trend-period-selector .trend-period-chip:focus-visible{outline:2px solid #d71920;outline-offset:1px}
body[data-qiushi-page="lottery-trend-detail"] .zst-detail-tabs{width:100%;border-bottom:1px solid #f0f0f0}
body[data-qiushi-page="lottery-trend-detail"] .zst-detail-tabs button{min-height:44px;padding-inline:12px;font-size:13px}
body[data-qiushi-page="lottery-trend-detail"] .zst-detail-tabs button:focus-visible{outline:2px solid #d71920;outline-offset:-2px}
body[data-qiushi-page="lottery-trend-detail"] .zst-detail-tabs{position:relative}
body[data-qiushi-page="lottery-trend-detail"] .zst-detail-tabs.qs-standard-tabs--overflowing::after{position:absolute;z-index:2;top:50%;right:8px;padding:4px 8px;border:1px solid #d71920;border-radius:999px;background:#fff;box-shadow:0 2px 8px rgb(15 23 42 / 10%);color:#d71920;content:'右滑查看更多 \2192';font-size:10px;line-height:14px;white-space:nowrap;transform:translateY(-50%);pointer-events:none}
body[data-qiushi-page="lottery-trend-detail"] .zst-detail-tabs.qs-standard-tabs--hint-hidden::after{display:none}
body[data-qiushi-page="lottery-trend-detail"] .trend-filter-label,body[data-qiushi-page="lottery-trend-detail"] .trend-filter-btn{min-height:40px}
@media (max-width:520px){body[data-qiushi-page="lottery-trend-detail"] main>div:first-child{gap:8px;padding-block:8px}body[data-qiushi-page="lottery-trend-detail"] .trend-period-selector .trend-period-chip{min-width:48px;padding-inline:6px}body[data-qiushi-page="lottery-trend-detail"] .trend-filter-label span,body[data-qiushi-page="lottery-trend-detail"] .trend-filter-btn span[data-sort-label]{display:none}body[data-qiushi-page="lottery-trend-detail"] .trend-filter-btn{width:40px;justify-content:center;padding-inline:0}}
/* Trend control bar: primary range control with separated utilities */
body[data-qiushi-page="lottery-trend-detail"] .trend-control-bar{display:grid !important;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:10px 16px;background:#fff;border-bottom:1px solid #eee}
body[data-qiushi-page="lottery-trend-detail"] .trend-control-bar .trend-period-selector{width:100%;}
body[data-qiushi-page="lottery-trend-detail"] .trend-control-bar>div:last-child{display:flex;align-items:center;gap:6px;padding-left:10px;border-left:1px solid #eee}
body[data-qiushi-page="lottery-trend-detail"] .trend-control-bar .trend-filter-label{padding-inline:4px;color:#5d3f3c}
body[data-qiushi-page="lottery-trend-detail"] .trend-control-bar .trend-filter-btn{border:0;background:transparent;color:#5d3f3c}
body[data-qiushi-page="lottery-trend-detail"] .trend-control-bar .trend-filter-btn:hover{color:#d71920;background:#f5f5f5}
@media (max-width:520px){body[data-qiushi-page="lottery-trend-detail"] .trend-control-bar{grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:8px 12px}body[data-qiushi-page="lottery-trend-detail"] .trend-control-bar>div:last-child{padding-left:6px;gap:2px}}
body[data-qiushi-page="lottery-trend-detail"] .trend-control-bar{margin-top:12px}
body[data-qiushi-page="lottery-trend-detail"] header>div>svg{display:none !important}
