*, ::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; }

/* 走势图首页入口标签（彩通式：密集流式 + 箭头） */
.zst-entry {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 4px 6px; border-radius: 6px;
  font-size: 12px; color: #333333; line-height: 1.3;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.zst-entry:active { background: #fff1f0; color: #d71920; }
.zst-entry-arrow { color: #cccccc; font-size: 13px; line-height: 1; }

/* ===== 走势图首页 · 项目彩民端风格优化 ===== */
.zst-region {
  display: flex; align-items: center; gap: 6px; width: 100%;
  padding: 12px 16px; border-radius: 14px;
  background: linear-gradient(180deg, #e8434a 0%, #d71920 100%);
  border: none;
  box-shadow: 0 4px 12px rgba(215, 25, 32, 0.22);
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.zst-region:active { transform: scale(0.98); opacity: 0.94; }
.zst-region-label { font-size: 12px; color: rgba(255, 255, 255, 0.85); }
.zst-region-name { font-size: 14px; font-weight: 800; color: #ffffff; margin-left: auto; }
.zst-region-caret { color: rgba(255, 255, 255, 0.85); }

.zst-block {
  background: #ffffff; border: 1px solid #eeeeee; border-radius: 16px;
  overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.zst-block-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid #f3f3f3;
}
.zst-block-icon {
  width: 40px; height: 40px; flex: none; border-radius: 12px;
  background: #fff1f0; display: flex; align-items: center; justify-content: center;
}
.zst-block-icon img { width: 30px; height: 30px; object-fit: contain; }
.zst-block-name { font-size: 15px; font-weight: 800; color: #1b1c1c; }
.zst-block-cat {
  font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 9999px;
  background: #f4f4f5; color: #999999;
}
.zst-block-arrow { margin-left: auto; color: #cccccc; flex: none; }
.zst-block:hover { box-shadow: 0 4px 16px rgba(17, 24, 39, 0.12); }
.zst-entry { text-align: left; transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease; }
.zst-entry:hover { border-color: #d71920; color: #d71920; }
.zst-block-entries {
  padding: 12px 12px 14px; display: flex; flex-wrap: wrap; gap: 8px;
}

.zst-entry {
  padding: 6px 12px; border-radius: 8px; border: 1px solid #eeeeee;
  background: #ffffff; color: #555555; font-size: 12px; font-weight: 600; line-height: 1.4;
  transition: all 0.15s ease;
}
.zst-entry:active { background: #d71920; border-color: #d71920; color: #ffffff; transform: scale(0.97); }
.zst-entry:focus-visible { outline: 2px solid #d71920; outline-offset: 2px; }

/* 地区选择弹层 · 紧凑横排网格（每排 3 个） */
.zst-region-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px;
}

/* 地区选择弹层 · 地区卡片（紧凑样式） */
.zst-region-option {
  position: relative; display: flex; align-items: center; justify-content: center;
  padding: 7px 4px; border-radius: 8px; border: 1px solid #eeeeee;
  background: #ffffff; color: #555555; font-size: 12px; font-weight: 600; line-height: 1.2;
  transition: all 0.15s ease;
}
.zst-region-option:active { border-color: #d71920; background: #fff8f8; }
.zst-region-option:focus-visible { outline: 2px solid #d71920; outline-offset: 2px; }
.zst-region-option.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.2);
}
.zst-region-check { position: absolute; top: 4px; right: 4px; }

/* 走势图首页 · 模块间距（拉开留白） */
.zst-list {
  display: flex; flex-direction: column; gap: 20px;
  padding: 20px 16px 28px;
}

/* UI1 顶部栏统一标准：返回键品牌红 + 40px 最小触控 + 20px 图标（2026-08-08） */
body[data-qiushi-page="lottery-trend"] 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"] header [aria-label^="返回"] svg,
body[data-qiushi-page="lottery-trend"] header [aria-label^="返回"] .qs-ui-icon,
body[data-qiushi-page="lottery-trend"] header [aria-label^="返回"] [class*="material-symbols"] {
  color: #d71920;
}
body[data-qiushi-page="lottery-trend"] header [aria-label^="返回"] .qs-ui-icon,
body[data-qiushi-page="lottery-trend"] header [aria-label^="返回"] [class*="material-symbols"] {
  width: 20px;
  height: 20px;
  font-size: 20px;
}

/* UI1-U-003 原页精修：顶部栏标准 + 数字等宽 + 状态反馈（不改结构/文案/数据/图标尺寸） */
body[data-qiushi-page="lottery-trend"] header[class*="h-14"] h1 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}
body[data-qiushi-page="lottery-trend"] .grid-cell,
body[data-qiushi-page="lottery-trend"] .issue-cell,
body[data-qiushi-page="lottery-trend"] .hit-ball,
body[data-qiushi-page="lottery-trend"] .trend-number-row {
  font-variant-numeric: tabular-nums;
}
body[data-qiushi-page="lottery-trend"] [data-region-toggle]:focus-visible,
body[data-qiushi-page="lottery-trend"] [data-trend-list] button:focus-visible {
  outline: 2px solid rgba(215, 25, 32, 0.55);
  outline-offset: 2px;
}

/* Trend entry redesign: scan-first surface */
body[data-qiushi-page="lottery-trend"] .zst-list{gap:14px;padding:16px 16px 28px}
body[data-qiushi-page="lottery-trend"] .zst-block{border:0;border-radius:12px;box-shadow:0 2px 10px rgba(17,24,39,.08);overflow:hidden}
body[data-qiushi-page="lottery-trend"] .zst-block-header{min-height:68px;padding:12px 16px;border-bottom:1px solid #eee}
body[data-qiushi-page="lottery-trend"] .zst-block-icon{width:40px;height:40px;border-radius:10px;background:#f5f5f5}
body[data-qiushi-page="lottery-trend"] .zst-block-name{font-size:16px;line-height:22px}
body[data-qiushi-page="lottery-trend"] .zst-block-entries{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:12px 16px 16px}
body[data-qiushi-page="lottery-trend"] .zst-entry{min-height:40px;padding:8px 10px;border:1px solid #eee;border-radius:6px;color:#333;font-size:13px;line-height:18px;text-align:left;transition:background-color .15s ease,border-color .15s ease,color .15s ease,transform .15s ease}
body[data-qiushi-page="lottery-trend"] .zst-entry:hover{border-color:#d71920;color:#d71920}
body[data-qiushi-page="lottery-trend"] .zst-entry:active{transform:translateY(1px)}
body[data-qiushi-page="lottery-trend"] .zst-entry:focus-visible{outline:2px solid #d71920;outline-offset:2px}
@media (min-width:700px){body[data-qiushi-page="lottery-trend"] .zst-list{width:100%;max-width:860px;margin:0 auto}body[data-qiushi-page="lottery-trend"] .zst-block-entries{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* Restore region selector after scoped Tailwind reset */
body[data-qiushi-page="lottery-trend"] .zst-region{display:flex;align-items:center;gap:6px;width:100%;min-height:48px;padding:12px 16px !important;border:0;border-radius:14px;background:linear-gradient(180deg,#e8434a 0%,#d71920 100%) !important;color:#fff !important;box-shadow:0 4px 12px rgba(215,25,32,.22);}
body[data-qiushi-page="lottery-trend"] .zst-region-label{color:rgba(255,255,255,.85) !important;font-size:12px;}
body[data-qiushi-page="lottery-trend"] .zst-region-name{margin-left:auto;color:#fff !important;font-size:14px;font-weight:800;}
body[data-qiushi-page="lottery-trend"] .zst-region-caret{color:rgba(255,255,255,.85) !important;}
body[data-qiushi-page="lottery-trend"] .zst-region:focus-visible{outline:2px solid #d71920;outline-offset:2px;}
