/* ========== 渲染性能优化 ========== */
		.header {
			background: #ffffff !important;
			backdrop-filter: none !important;
			border-radius: 0 !important;
			will-change: auto;
		}
		.toast {
			will-change: transform, opacity;
		}

		* {
			margin: 0;
			padding: 0;
			box-sizing: border-box;
			font-family: 'Arial', 'Microsoft YaHei', sans-serif;
		}

		/* html { height: 100%; } 已移除，避免固定高度导致布局重算 */

		body {
			color: #333;
			line-height: 1.6;
			padding: 0 0 10px;
			min-height: 100vh;
			overscroll-behavior: contain;
                        background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
            /* gradient animation removed for scroll perf */
}

		.container {
			max-width: 1200px;
			margin: 0 auto;
			padding: 0 10px;
			width: 100%;
		}

		.header {
			background: rgba(255, 255, 255, 0.95);
			box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
			border-radius: 8px;
			overflow: hidden;
			position: relative;
			width: 100%;
		}

		@media (max-width: 768px) {
			.header {
				overflow: visible;
			}
		}

		/* 上期开奖号码栏 */
		.last-result {
			background: #f8f9fa;
			padding: 10px 15px;
			border-bottom: 1px solid #dee2e6;
			display: flex;
			align-items: center;
			gap: 15px;
			font-size: 0.9rem;
		}

		.result-period {
			font-weight: bold;
			color: #333;
			white-space: nowrap;
		}

		.result-numbers {
			display: flex;
			flex-wrap: wrap;
			gap: 5px;
			align-items: center;
		}

		.result-ball {
			width: 28px;
			height: 28px;
			line-height: 28px;
			border-radius: 50%;
			text-align: center;
			font-weight: bold;
			font-size: 0.85rem;
			color: white;
			background: #e74c3c; /* 快乐8号码颜色，可以调整 */
		}

		/* 期号 + 工具栏 + 玩法选择 容器 */
		.pick-toolbar-row {
			display: flex;
			flex-direction: column;
			background: #f8f9fa;
			border-bottom: 1px solid #dee2e6;
		}

		/* 期号和投注类型包裹容器 */
		.period-and-bet-wrapper {
			display: flex;
			flex-direction: column;
			align-items: stretch;
			background: transparent;
			border-bottom: none;
		}

		.period-and-bet-wrapper .period-info {
			flex: none;
			border-bottom: 1px solid #e9ecef;
			border-right: none;
			padding: 8px 12px;
		}

		.period-and-bet-wrapper .bet-type-toolbar {
			flex: none;
			width: 100%;
		}

		.period-info {
			background: transparent;
			padding: 8px 12px;
			border-bottom: none;
			font-size: 0.85rem;
			color: #666;
		}

		.period-detail {
			display: flex;
			justify-content: space-between;
			align-items: center;
			flex-wrap: wrap;
			gap: 4px 10px;
		}

		.period-detail span {
			white-space: nowrap;
		}

		.period-detail strong {
			color: #e74c3c;
		}

		/* 投注类型：6 钮 3×2 网格 */
		.bet-type-toolbar {
			display: grid;
			grid-template-columns: repeat(3, minmax(0, 1fr));
			gap: 6px;
			padding: 8px 10px 10px;
			background: transparent;
			border-bottom: none;
		}

		.bet-type-selector {
			display: contents;
		}

		.bet-type-selector--tools {
			border-top: none;
		}

		/* 顶部标题栏 */
		.lottery-header {
			background: linear-gradient(to right, #e74c3c, #c0392b);
			color: white;
			padding: 8px 15px;
			text-align: center;
			display: flex;
			justify-content: space-between;
			align-items: center;
		}

		.lottery-title {
			font-size: 1.4rem;
			font-weight: bold;
			flex: 2;
		}

		.lottery-subtitle {
			font-size: 0.9rem;
			opacity: 0.9;
			flex: 1;
			background-color: #f39c12;
			padding: 4px 10px;
			border-radius: 4px;
			text-align: center;
			margin-left: 10px;
		}

		/* 期号信息栏 */

		.bet-type {
			display: inline-flex;
			align-items: center;
			justify-content: center;
			gap: 4px;
			min-height: 38px;
			padding: 6px 4px;
			border-radius: 6px;
			font-size: 0.82rem;
			cursor: pointer;
			transition: all 0.2s;
			background: white;
			color: #495057;
			border: 1px solid #dee2e6;
			font-weight: 500;
			text-decoration: none;
			white-space: nowrap;
			box-sizing: border-box;
		}

		.bet-type i {
			font-size: 0.78rem;
			flex-shrink: 0;
		}

		.bet-type:hover {
			background: #f8f9fa;
		}

		.bet-type.active {
			background: #e74c3c;
			color: white;
			font-weight: bold;
			border-color: #c0392b;
		}

		/* 玩法类型选择 */
		.play-type-section {
			margin: 10px 0 14px;
		}

		.pick-toolbar-row .play-type-section {
			margin: 8px 10px 10px;
			padding: 0 4px;
		}

		.pick-toolbar-row .dan-settings-status {
			padding: 0 10px 8px;
		}

		.play-type-section-label {
			font-size: 0.78rem;
			color: #888;
			font-weight: 600;
			padding: 0 4px 6px;
		}

		.play-type-selector {
			display: grid;
			grid-template-columns: repeat(3, minmax(0, 1fr));
			gap: 6px;
			margin-bottom: 0;
			background: transparent;
			padding: 0;
		}

		.play-type {
			min-width: 0;
			text-align: center;
			padding: 9px 4px;
			border-radius: 6px;
			font-size: 0.82rem;
			cursor: pointer;
			transition: all 0.2s;
			background: #f8f9fa;
			color: #555;
			font-weight: 500;
			border: 1px solid #e0e0e0;
			box-shadow: none;
			text-decoration: none;
		}

		.play-type.active {
			background: #2ecc71;
			color: white;
			border-color: #27ae60;
			box-shadow: 0 4px 8px rgba(46, 204, 113, 0.3);
		}

		/* 自定义设置区域 */
		.custom-settings {
			background: rgba(248, 249, 250, 0.9);
			border-radius: 10px;
			padding: 15px;
			margin-bottom: 20px;
			display: none;
			box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
		}

		.custom-settings.active {
			display: block;
		}

		.setting-group {
			display: flex;
			justify-content: space-between;
			margin-bottom: 15px;
		}

		.setting-item {
			flex: 1;
			margin: 0 10px;
		}

		.setting-item label {
			display: block;
			font-size: 0.9rem;
			margin-bottom: 8px;
			color: #555;
			font-weight: 500;
		}

		.setting-item input,
		.setting-item select {
			width: 100%;
			padding: 10px;
			border: 2px solid #ddd;
			border-radius: 8px;
			font-size: 1rem;
			background: white;
			transition: all 0.3s;
		}

		.setting-item select:focus {
			border-color: #3498db;
			box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
			outline: none;
		}

		/* 选号区域 */
		.ball-area {
			margin: 25px 0;
		/*	min-height: 120px; */
			padding: 0 15px;
		}

		.balls-container {
			display: flex;
			flex-wrap: wrap;
			gap: 0px;
			margin-bottom: 15px;
			justify-content: center;
		}

		.ball {
			width: 45px;
			height: 45px;
			border-radius: 50%;
			display: flex;
			align-items: center;
			justify-content: center;
			margin: 2px;
			font-weight: bold;
			color: white;
			font-size: 1.2rem;
			box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
			background: #e74c3c;
		}

		.ball.ball-dan {
			background: linear-gradient(145deg, #e53935, #c62828);
			border: 2px solid #f39c12;
			box-shadow: 0 0 0 1px rgba(243, 156, 18, 0.4);
		}

		.ball.ball-tuo {
			background: linear-gradient(145deg, #fb8c00, #e65100);
			border: 1px solid #ffb74d;
		}

		.all-tuo {
			display: inline-flex;
			align-items: center;
			padding: 6px 14px;
			background: #ff9800;
			color: #fff;
			font-weight: bold;
			border-radius: 16px;
			font-size: 0.9rem;
		}

		.dan-label {
			font-size: 1rem;
			color: #555;
			text-align: center;
			margin-bottom: 10px;
			font-weight: 600;
		}

		/* 投注金额显示 */
		.bet-amount {
			text-align: center;
			margin: 20px 0;
			font-size: 1.3rem;
			color: #e74c3c;
			font-weight: bold;
			background: rgba(231, 76, 60, 0.1);
			padding: 15px;
			border-radius: 10px;
			width: 100%;
			max-width: 1200px;
		}

		/* 控制按钮 */
		.control-buttons {
			display: flex;
			justify-content: space-between;
			width: 100%;
			margin-top: 25px;
			gap: 15px;
		}

		.control-buttons button {
			flex: 1;
			white-space: nowrap;
			text-align: center;
		}

		button {
			width: auto;
			white-space: nowrap;
			padding: 15px;
			border: none;
			border-radius: 10px;
			font-size: 1.1rem;
			font-weight: bold;
			cursor: pointer;
			transition: all 0.3s;
			box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
		}

		.generate-btn {
			background: #2ecc71;
			color: white;
		}

		.generate-btn:hover {
			background: #27ae60;
			transform: translateY(-2px);
			box-shadow: 0 6px 12px rgba(46, 204, 113, 0.3);
		}

		.pause-btn {
			background: #e67e22;
			color: white;
		}

		.pause-btn:hover {
			background: #d35400;
			transform: translateY(-2px);
			box-shadow: 0 6px 12px rgba(230, 126, 34, 0.3);
		}

		.copy-btn {
			background: #9b59b6;
			color: white;
		}

		.copy-btn:hover {
			background: #8e44ad;
			transform: translateY(-2px);
			box-shadow: 0 6px 12px rgba(155, 89, 182, 0.3);
		}

		/* 选中号码区域 */
		.selected-numbers.history-panel {
			margin: 16px 0 20px;
			padding: 12px 14px 14px;
			background: #fff;
			border-radius: 10px;
			box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
			border: 1px solid #e9ecef;
		}

		.pick-flow-bar {
			margin-bottom: 12px;
			padding: 12px 14px;
			background: linear-gradient(135deg, #fff8f0 0%, #fff 100%);
			border: 1px solid #f5c6a5;
			border-radius: 10px;
			font-size: 0.82rem;
			color: #5c4033;
		}

		.pick-flow-bar__title {
			font-weight: 700;
			color: #c0392b;
			margin-bottom: 8px;
			font-size: 0.9rem;
		}

		.pick-flow-steps {
			display: grid;
			grid-template-columns: repeat(4, minmax(0, 1fr));
			gap: 6px;
			list-style: none;
			margin: 0 0 8px;
			padding: 0;
		}

		.pick-flow-steps li {
			min-width: 0;
			text-align: center;
			padding: 6px 2px;
			border-radius: 999px;
			background: #f1f3f5;
			color: #666;
			font-size: 0.75rem;
			line-height: 1.3;
			white-space: nowrap;
			overflow: hidden;
			text-overflow: ellipsis;
		}

		.pick-flow-steps li.is-active {
			background: #e74c3c;
			color: #fff;
			font-weight: 600;
		}

		.pick-flow-hint {
			margin: 0;
			line-height: 1.45;
			color: #7f5539;
			font-size: 0.78rem;
		}

		.pick-mobile-bar {
			display: none;
			position: fixed;
			left: 0;
			right: 0;
			bottom: 0;
			z-index: 9000;
			padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
			background: rgba(255, 255, 255, 0.97);
			border-top: 1px solid #dee2e6;
			box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
			align-items: center;
			gap: 8px;
		}

		.pick-mobile-bar.show {
			display: flex;
		}

		.pick-mobile-bar__count {
			flex: 1;
			font-size: 0.82rem;
			color: #555;
			min-width: 0;
			white-space: nowrap;
			overflow: hidden;
			text-overflow: ellipsis;
		}

		.pick-mobile-bar__btn {
			border: none;
			border-radius: 8px;
			padding: 10px 14px;
			font-size: 0.85rem;
			font-weight: 600;
			cursor: pointer;
			white-space: nowrap;
		}

		.pick-mobile-bar__btn--analyze {
			background: #3498db;
			color: #fff;
		}

		.pick-mobile-bar__btn--shouhao {
			background: linear-gradient(135deg, #f39c12, #e67e22);
			color: #fff;
		}

		.shouhao-save-btn {
			background: linear-gradient(135deg, #f39c12, #e67e22) !important;
			color: #fff !important;
			border: none !important;
			font-weight: 600;
		}

		.shouhao-save-btn:hover {
			filter: brightness(1.05);
		}

		.backtest-shouhao-cta {
			padding: 12px 14px 16px;
			border-top: 1px solid #dee2e6;
			background: #fff;
			position: sticky;
			bottom: 0;
		}

		.backtest-shouhao-cta p {
			margin: 0 0 10px;
			font-size: 0.82rem;
			color: #666;
			line-height: 1.45;
		}

		.backtest-shouhao-cta .control-btn {
			width: 100%;
			max-width: none;
			flex: none;
		}

		.selected-numbers .history-header {
			display: flex;
			flex-direction: column;
			align-items: stretch;
			gap: 8px;
			margin-bottom: 10px;
			padding-bottom: 8px;
			border-bottom: 1px solid #dee2e6;
		}

		.selected-numbers .history-header h3 {
			margin: 0;
			font-size: 1rem;
			color: #e74c3c;
			font-weight: bold;
			line-height: 1.3;
			flex: 0 0 auto;
		}

		.selected-numbers-actions {
			display: grid;
			grid-template-columns: repeat(3, minmax(0, 1fr));
			gap: 6px;
			width: 100%;
		}

		.selected-numbers .copy-history-btn,
		.selected-numbers .clear-history-btn {
			flex: 0 0 auto;
			min-height: 0;
			min-width: 0;
			width: 100%;
			padding: 5px 10px;
			border-radius: 6px;
			font-size: 0.78rem;
			font-weight: 600;
			cursor: pointer;
			display: inline-flex;
			align-items: center;
			justify-content: center;
			gap: 4px;
			white-space: nowrap;
			line-height: 1.2;
			transition: background 0.2s, border-color 0.2s;
		}

		.selected-numbers .copy-history-btn {
			background: #fff;
			color: #27ae60;
			border: 1px solid #27ae60;
		}

		.selected-numbers .copy-history-btn:hover {
			background: #eafaf1;
		}

		.selected-numbers .clear-history-btn {
			background: #e74c3c;
			color: #fff;
			border: 1px solid #e74c3c;
		}

		.selected-numbers .clear-history-btn:hover {
			background: #c0392b;
			border-color: #c0392b;
		}

		.history-empty {
			text-align: center;
			color: #999;
			padding: 20px 12px;
			font-size: 0.9rem;
			background: #f8f9fa;
			border-radius: 8px;
			border: 1px dashed #dee2e6;
		}

		/* 历史记录 */
		.history-list {
			display: flex;
			flex-direction: column;
			gap: 15px;
		}

		.history-item {
			background: #f8f9fa;
			border: 1px solid #dee2e6;
			border-radius: 8px;
			padding: 12px;
			box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
		}

        .history-item-header {
			display: flex;
			justify-content: space-between;
			align-items: center;
			gap: 8px;
			margin-bottom: 10px;
			padding-bottom: 8px;
			border-bottom: 1px solid #dee2e6;
		}

		.history-item-actions {
			display: flex;
			align-items: center;
			gap: 6px;
			flex-shrink: 0;
		}

		.copy-history-item-btn {
			padding: 4px 10px;
			background: #fff;
			color: #27ae60;
			border: 1px solid #27ae60;
			border-radius: 6px;
			font-size: 0.75rem;
			line-height: 1.2;
			cursor: pointer;
			white-space: nowrap;
			box-shadow: none;
			font-family: inherit;
			-webkit-appearance: none;
			appearance: none;
		}

		.copy-history-item-btn:hover {
			background: #eafaf1;
		}

		.shouhao-history-item-btn {
			padding: 4px 10px;
			background: #fff;
			color: #d97706;
			border: 1px solid #f59e0b;
			border-radius: 6px;
			font-size: 0.75rem;
			line-height: 1.2;
			cursor: pointer;
			white-space: nowrap;
			box-shadow: none;
			font-family: inherit;
			display: inline-flex;
			align-items: center;
			gap: 4px;
			-webkit-appearance: none;
			appearance: none;
		}

		.shouhao-history-item-btn:hover {
			background: #fffbeb;
			border-color: #d97706;
		}

		.shouhao-history-item-btn i {
			font-size: 0.65rem;
			opacity: 0.9;
		}

		.history-item-title {
			font-size: 0.88rem;
			font-weight: bold;
			color: #e74c3c;
			line-height: 1.3;
		}

		.history-body {
			display: flex;
			flex-direction: column;
			gap: 10px;
		}

		.history-group-label {
			font-size: 0.78rem;
			color: #888;
			font-weight: 600;
			margin-bottom: 6px;
		}

		.history-ball-row {
			display: flex;
			flex-wrap: wrap;
			gap: 5px;
			align-items: center;
		}

		.history-balls {
			display: flex;
			flex-wrap: wrap;
			gap: 5px;
			align-items: center;
		}

		.history-ball {
			width: 28px;
			height: 28px;
			line-height: 28px;
			border-radius: 50%;
			text-align: center;
			font-size: 0.82rem;
			font-weight: bold;
			flex-shrink: 0;
			box-sizing: border-box;
		}

		.history-ball.red {
			color: #c0392b;
			background: #ffebee;
			border: 1px solid #ffcdd2;
		}

		.history-ball.tuo {
			color: #ef6c00;
			background: #fff3e0;
			border: 1px solid #ffcc80;
		}

		.history-ball.dan {
			border: 2px solid #f39c12;
		}

		.history-meta {
			display: flex;
			justify-content: space-between;
			align-items: center;
			padding-top: 8px;
			border-top: 1px dashed #dee2e6;
			font-size: 0.85rem;
		}

		.history-amount {
			font-weight: bold;
			color: #e74c3c;
			white-space: nowrap;
		}

		.history-delete-btn {
			padding: 4px 8px !important;
			font-size: 0.75rem !important;
			white-space: nowrap;
			flex-shrink: 0;
		}

		.history-blue-all {
			display: inline-flex;
			align-items: center;
			padding: 4px 10px;
			background: #ff9800;
			color: #fff;
			font-size: 0.78rem;
			font-weight: bold;
			border-radius: 14px;
		}

		.history-meta-right {
			display: flex;
			align-items: center;
			gap: 8px;
			margin-left: auto;
		}

		.history-analyze-btn {
			border: none;
			background: linear-gradient(135deg, #3498db, #2980b9);
			color: #fff;
			padding: 4px 8px;
			border-radius: 4px;
			font-size: 0.75rem;
			cursor: pointer;
			white-space: nowrap;
			display: inline-flex;
			align-items: center;
			gap: 4px;
		}

		.history-analyze-btn:hover {
			filter: brightness(1.05);
		}

		.history-analyze-btn i {
			font-size: 0.7rem;
		}

		.backtest-history {
			border: none;
			background: linear-gradient(135deg, #3498db, #2980b9);
			color: #fff;
			padding: 5px 10px;
			border-radius: 6px;
			font-size: 0.78rem;
			cursor: pointer;
			min-height: 0;
			white-space: nowrap;
			display: inline-flex;
			align-items: center;
			justify-content: center;
			gap: 4px;
		}

		.backtest-modal {
			position: fixed;
			inset: 0;
			z-index: 12000;
			display: none;
			align-items: flex-end;
			justify-content: center;
			padding: 0;
			background: rgba(0, 0, 0, 0.5);
			overflow: hidden;
			overscroll-behavior: none;
		}

		body.backtest-modal-open {
			position: fixed;
			left: 0;
			right: 0;
			width: 100%;
			overflow: hidden;
		}

		.backtest-modal.open { display: flex; }

		.backtest-modal__card {
			width: 100%;
			max-width: 520px;
			max-height: 92vh;
			overflow: auto;
			background: #f0f2f5;
			border-radius: 16px 16px 0 0;
			padding: 0;
			-webkit-overflow-scrolling: touch;
			overscroll-behavior: contain;
			touch-action: pan-y;
		}

		@media (min-width: 520px) {
			.backtest-modal {
				align-items: center;
				padding: 16px;
			}
			.backtest-modal__card {
				border-radius: 14px;
				max-height: min(88vh, 780px);
			}
		}

		.backtest-modal__head {
			display: flex;
			justify-content: space-between;
			align-items: center;
			padding: 14px 16px;
			background: #fff;
			border-bottom: 1px solid #e8e8e8;
			position: sticky;
			top: 0;
			z-index: 2;
		}

		.backtest-modal__head h3 {
			margin: 0;
			font-size: 1.05rem;
			font-weight: 700;
			color: #1a1a1a;
		}

		#backtestModalBody { padding: 10px 10px 16px; }

		.backtest-modal__close {
			border: none;
			background: #f1f3f5;
			width: 32px;
			height: 32px;
			border-radius: 50%;
			cursor: pointer;
			display: inline-flex;
			align-items: center;
			justify-content: center;
			padding: 0;
			margin: 0;
			line-height: 1;
			font-size: 1.35rem;
			font-weight: 400;
			color: #666;
			flex-shrink: 0;
			-webkit-tap-highlight-color: transparent;
		}

		.bt-panel { display: flex; flex-direction: column; gap: 10px; }

		.bt-pick-card,
		.bt-section {
			background: #fff;
			border-radius: 12px;
			padding: 14px;
			border: 1px solid #ebebeb;
		}

		.bt-pick-meta {
			font-size: 0.84rem;
			color: #666;
			margin-bottom: 10px;
		}

		.bt-pick-balls {
			display: flex;
			flex-wrap: wrap;
			align-items: center;
			gap: 5px;
		}

		.bt-ball {
			display: inline-flex;
			align-items: center;
			justify-content: center;
			width: 28px;
			height: 28px;
			border-radius: 50%;
			font-size: 0.78rem;
			font-weight: 700;
			color: #fff;
			flex-shrink: 0;
		}

		.bt-ball--sm {
			width: 26px;
			height: 26px;
			font-size: 0.72rem;
		}

		.bt-ball--kl8 { background: #e67e22; }

		.bt-kl8-draw-line {
			display: flex;
			flex-wrap: nowrap;
			align-items: center;
			justify-content: space-between;
			gap: 2px;
			width: 100%;
			font-size: 0.68rem;
			font-weight: 700;
			font-variant-numeric: tabular-nums;
			line-height: 1.4;
		}

		.bt-kl8-num {
			flex: 1 1 0;
			min-width: 0;
			text-align: center;
		}

		.bt-kl8-num--hit {
			color: #e67e22;
		}

		.bt-kl8-num--hit-dan {
			color: #c0392b;
			font-weight: 800;
		}

		.bt-kl8-num--hit-tuo {
			color: #e67e22;
			font-weight: 800;
		}

		.bt-kl8-num--miss {
			color: #c8c8c8;
			font-weight: 600;
		}

		.bt-draw-scroll .bt-ball--miss {
			opacity: 0.32;
			filter: grayscale(0.25);
		}

		.bt-ball--hit {
			position: relative;
			z-index: 1;
			transform: scale(1.12);
			box-shadow:
				0 0 0 2px #fff,
				0 0 0 4px #ffb300,
				0 0 10px rgba(255, 152, 0, 0.55);
		}

		.bt-ball--hit.bt-ball--kl8 {
			background: linear-gradient(180deg, #ffb347 0%, #e67e22 100%);
		}

		.bt-ball--dan {
			background: linear-gradient(180deg, #c0392b 0%, #922b21 100%);
			box-shadow: 0 0 0 1px #fff, 0 0 0 2px #f1c40f;
		}

		.bt-ball--tuo {
			background: linear-gradient(180deg, #f39c12 0%, #d35400 100%);
		}

		.bt-pick-balls--dan-tuo { row-gap: 6px; }

		.bt-pick-tag {
			font-size: 0.72rem;
			color: #999;
			margin-right: 2px;
		}

		.bt-pick-tag--full-tuo {
			display: inline-block;
			padding: 2px 8px;
			border-radius: 4px;
			background: #fff3e0;
			color: #e65100;
			font-weight: 600;
			font-size: 0.78rem;
		}

		.bt-section-title {
			margin: 0 0 8px;
			font-size: 0.92rem;
			font-weight: 700;
			color: #1a1a1a;
		}

		.bt-section-head {
			display: flex;
			justify-content: space-between;
			align-items: center;
			gap: 8px;
			margin-bottom: 4px;
		}

		.bt-section-head .bt-section-title { margin: 0; }

		.bt-section-actions {
			display: flex;
			align-items: center;
			gap: 6px;
			flex-shrink: 0;
		}

		.bt-omit-select {
			box-sizing: border-box;
			flex-shrink: 0;
			min-width: 4.6em;
			min-height: 30px;
			padding: 6px 26px 6px 11px;
			font-size: 12px;
			border: 1px solid #ddd;
			border-radius: 999px;
			background-color: #fff;
			cursor: pointer;
			-webkit-appearance: none;
			appearance: none;
			background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23999' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
			background-repeat: no-repeat;
			background-position: right 9px center;
		}

		.bt-summary {
			margin: 0 0 10px;
			padding: 8px 10px;
			background: #f8f9fb;
			border-radius: 8px;
			font-size: 0.84rem;
			color: #555;
			line-height: 1.5;
		}

		.bt-omit-range-note {
			margin: 0 0 8px;
			font-size: 0.68rem;
			color: #bbb;
			line-height: 1.4;
		}

		.bt-prize-list,
		.bt-omit-list {
			list-style: none;
			margin: 0;
			padding: 0;
			display: flex;
			flex-direction: column;
			gap: 8px;
		}

		.bt-prize-item {
			padding: 10px;
			background: #fafbfc;
			border-radius: 10px;
			border: 1px solid #efefef;
		}

		.bt-prize-item__top {
			display: flex;
			align-items: center;
			gap: 8px;
			flex-wrap: wrap;
			margin-bottom: 8px;
		}

		.bt-prize-hint {
			width: 100%;
			margin: 0 0 2px;
			font-size: 0.7rem;
			color: #aaa;
		}

		.bt-prize-badge {
			font-size: 0.78rem;
			font-weight: 700;
			color: #d35400;
			background: #fff3e0;
			padding: 2px 8px;
			border-radius: 4px;
		}

		.bt-prize-count {
			font-size: 0.84rem;
			font-weight: 700;
			color: #333;
		}

		.bt-prize-issue {
			margin-left: auto;
			font-size: 0.75rem;
			color: #999;
		}

		.bt-draw-scroll {
			display: flex;
			align-items: center;
			gap: 4px;
			overflow-x: auto;
			-webkit-overflow-scrolling: touch;
			padding-bottom: 2px;
		}

		.bt-draw-scroll .bt-ball--sm {
			width: 22px;
			height: 22px;
			font-size: 0.68rem;
		}

		.bt-draw-scroll--kl8 {
			flex-wrap: wrap;
			justify-content: flex-start;
			gap: 4px;
			overflow-x: visible;
			padding-bottom: 0;
		}

		.bt-draw-scroll--kl8 .bt-ball--sm {
			width: 24px;
			height: 24px;
			font-size: 0.68rem;
		}

		.bt-hit-legend {
			display: inline-flex;
			align-items: center;
			flex-wrap: wrap;
			gap: 10px;
		}

		.bt-legend-ball {
			display: inline-block;
			width: 12px;
			height: 12px;
			border-radius: 50%;
			margin-right: 4px;
			vertical-align: middle;
		}

		.bt-legend-ball--dan {
			background: linear-gradient(180deg, #c0392b 0%, #922b21 100%);
			box-shadow: 0 0 0 1px #fff, 0 0 0 2px #f1c40f;
		}

		.bt-legend-ball--tuo {
			background: linear-gradient(180deg, #f39c12 0%, #d35400 100%);
		}

		.bt-legend-ball--miss {
			background: #ddd;
		}

		.bt-omit-item {
			display: flex;
			gap: 10px;
			align-items: flex-start;
			padding: 10px;
			background: #fafbfc;
			border-radius: 10px;
			border: 1px solid #efefef;
		}

		.bt-omit-body { flex: 1; min-width: 0; }

		.bt-omit-row {
			display: flex;
			align-items: baseline;
			gap: 6px;
			flex-wrap: wrap;
			margin-bottom: 4px;
		}

		.bt-omit-label { font-size: 0.75rem; color: #888; }

		.bt-omit-current {
			font-size: 1.1rem;
			font-weight: 700;
			color: #e67e22;
			line-height: 1;
		}

		.bt-omit-hit {
			margin-left: auto;
			font-size: 0.75rem;
			color: #666;
		}

		.bt-omit-sub {
			font-size: 0.72rem;
			color: #aaa;
			margin-bottom: 6px;
		}

		.bt-empty-card {
			text-align: center;
			color: #999;
			font-size: 0.84rem;
			padding: 20px 10px;
		}

		.bt-footnote {
			margin: 0;
			padding: 0 4px;
			font-size: 0.72rem;
			color: #aaa;
			line-height: 1.45;
			text-align: center;
		}

		.bt-pattern-legend {
			display: flex;
			flex-wrap: wrap;
			align-items: center;
			gap: 10px 14px;
			margin: 0 0 10px;
			padding: 6px 8px;
			background: #f8f9fb;
			border-radius: 6px;
			font-size: 0.72rem;
			color: #888;
		}

		.bt-pattern-legend span {
			display: inline-flex;
			align-items: center;
			gap: 4px;
		}

		.bt-legend-dot {
			display: inline-block;
			width: 8px;
			height: 8px;
			border-radius: 50%;
			border: 1px solid #ccc;
			background: #fff;
			font-style: normal;
		}

		.bt-legend-dot.is-hit.bt-hit-dot--kl8 {
			background: #e67e22;
			border-color: #e67e22;
		}

		.bt-legend-dir { margin-left: auto; color: #bbb; }

		.bt-hit-pattern {
			display: flex;
			align-items: center;
			gap: 3px;
			flex-wrap: nowrap;
		}

		.bt-hit-dot {
			width: 8px;
			height: 8px;
			border-radius: 50%;
			border: 1px solid #d5d5d5;
			background: #fff;
			flex-shrink: 0;
			box-sizing: border-box;
		}

		.bt-hit-dot.is-hit.bt-hit-dot--red,
		.bt-hit-dot.is-hit.bt-hit-dot--kl8 {
			background: #e67e22;
			border-color: #e67e22;
		}

		.delete-btn {
			background: #e74c3c;
			color: white;
			border: none;
			border-radius: 6px;
			padding: 4px 10px;
			font-size: 0.75rem;
			line-height: 1.2;
			cursor: pointer;
			transition: background-color 0.2s;
			white-space: nowrap;
			width: auto;
			box-shadow: none;
			font-family: inherit;
			-webkit-appearance: none;
			appearance: none;
		}

		.delete-btn:hover {
			background: #c0392b;
		}

		/* 提示信息 */
		.toast {
			position: fixed;
			bottom: 30px;
			left: 50%;
			transform: translateX(-50%);
			background: rgba(0, 0, 0, 0.8);
			color: white;
			padding: 12px 25px;
			border-radius: 25px;
			font-size: 1rem;
			z-index: 1000;
			opacity: 0;
			transition: opacity 0.3s;
			box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
		}

		.toast.show {
			opacity: 1;
		}

		/* 页脚 */
		.footer {
			text-align: center;
			margin-top: 30px;
			opacity: 0.8;
			font-size: 0.9rem;
			background: transparent;
			padding: 15px;
			border-radius: 10px;
			color: white;
			width: 100%;
			max-width: 1200px;
		}

		.all-tuo {
			display: inline-block;
			background: #e74c3c;
			color: white;
			padding: 10px 20px;
			border-radius: 20px;
			font-size: 1rem;
			font-weight: bold;
			margin: 5px;
		}

		/* 新增：定胆按钮样式 */
		.bet-type.fixed-dan {
			background: #f39c12;
			color: white;
			border-color: #e67e22;
		}

		.bet-type.fixed-dan:hover {
			background: #e67e22;
		}

		.bet-type.fixed-dan.active {
			background: #d35400;
			border-color: #a35200;
		}

		.bet-type.kill-dan {
			background: #e74c3c;
			color: white;
			border-color: #c0392b;
		}

		.bet-type.kill-dan:hover {
			background: #c0392b;
		}

		.bet-type.kill-dan.active {
			background: #a93226;
			border-color: #922b21;
		}

		.bet-type {
			position: relative;
		}

		.bet-type-badge {
			position: absolute;
			top: -6px;
			right: -4px;
			min-width: 18px;
			height: 18px;
			padding: 0 5px;
			border-radius: 9px;
			background: #fff;
			font-size: 0.7rem;
			font-weight: bold;
			line-height: 18px;
			text-align: center;
			box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
		}

		.bet-type.fixed-dan .bet-type-badge {
			color: #d35400;
		}

		.bet-type.kill-dan .bet-type-badge {
			color: #c0392b;
		}

		.bet-type.fixed-dan.has-settings:not(.active) {
			box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 0 0 4px rgba(243, 156, 18, 0.55);
		}

		.bet-type.kill-dan.has-settings:not(.active) {
			box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 0 0 4px rgba(231, 76, 60, 0.45);
		}

		.dan-settings-status {
			padding: 6px 10px 8px;
			margin: 0 10px 8px;
			background: #fff;
			border: 1px solid #fdebd0;
			border-radius: 6px;
			font-size: 0.82rem;
			line-height: 1.45;
		}

		.dan-settings-status[hidden] {
			display: none !important;
		}

		.dan-status-row[hidden] {
			display: none !important;
		}

		.dan-status-row {
			display: flex;
			align-items: center;
			flex-wrap: wrap;
			gap: 6px 8px;
			padding: 4px 0;
		}

		.dan-status-row + .dan-status-row {
			border-top: 1px dashed #eee;
			margin-top: 4px;
			padding-top: 8px;
		}

		.dan-status-label {
			flex-shrink: 0;
			font-weight: bold;
			white-space: nowrap;
		}

		.dan-status-row--fixed .dan-status-label {
			color: #d35400;
		}

		.dan-status-row--kill .dan-status-label {
			color: #c0392b;
		}

		.dan-status-nums {
			flex: 1;
			min-width: 0;
			color: #333;
		}

		.dan-status-nums .num-pill {
			display: inline-block;
			padding: 1px 6px;
			margin: 1px 2px;
			border-radius: 10px;
			font-weight: bold;
			font-size: 0.78rem;
		}

		.dan-status-row--fixed .num-pill {
			background: #fff3e0;
			color: #e67e22;
			border: 1px solid #f39c12;
		}

		.dan-status-row--kill .num-pill {
			background: #fdecea;
			color: #c0392b;
			border: 1px solid #e74c3c;
		}

		.dan-status-nums .num-pill.is-clickable {
			cursor: pointer;
		}

		.dan-status-nums .num-pill.is-clickable:active {
			opacity: 0.75;
		}

		.dan-status-clear {
			flex-shrink: 0;
			padding: 2px 10px;
			border-radius: 12px;
			background: transparent;
			font-size: 0.78rem;
			cursor: pointer;
		}

		.dan-status-row--fixed .dan-status-clear {
			border: 1px solid #e67e22;
			color: #e67e22;
		}

		.dan-status-row--kill .dan-status-clear {
			border: 1px solid #e74c3c;
			color: #e74c3c;
		}

		/* 新增：AI预测按钮样式 */
		.bet-type.ai-predict {
			background: #3498db;
			color: white;
			border-color: #2980b9;
		}

		.bet-type.ai-predict:hover {
			background: #2980b9;
		}

		.bet-type.ai-predict.active {
			background: #1e6ea7;
			border-color: #195785;
		}

		/* 新增：AI预测设置区域样式 */
		.ai-container {
			background: #f8f9fa;
			border: 1px solid #dee2e6;
			border-radius: 4px;
			padding: 8px;
			margin: 0px;
			display: none;
			flex-direction: column;
			/* 默认隐藏，点击按钮后显示 */
		}

		.ai-header {
			display: flex;
			justify-content: space-between;
			align-items: center;
			margin-bottom: 10px;
			flex-shrink: 0;
		}

		.ai-title {
			color: #3498db;
			font-size: 1rem;
			font-weight: bold;
		}

		.ai-buttons {
			display: flex;
			gap: 8px;
		}

		.ai-btn {
			padding: 8px 16px;
			border: 1px solid #ced4da;
			border-radius: 4px;
			font-size: 0.9rem;
			cursor: pointer;
			display: flex;
			align-items: center;
			gap: 6px;
			min-height: 40px;
			touch-action: manipulation;
			-webkit-tap-highlight-color: transparent;
			transition: all 0.2s ease;
		}
		
		.ai-btn:active {
			transform: scale(0.98);
		}

		.ai-btn.primary {
			background: #3498db;
			color: white;
			border-color: #2980b9;
		}

		.ai-btn.secondary {
			background: #f8f9fa;
			color: #495057;
			border-color: #ced4da;
		}

		.ai-btn.warning {
			background: #e74c3c;
			color: white;
			border-color: #c0392b;
		}

		.ai-content {
			display: flex;
			flex-direction: column;
			gap: 15px;
			overflow: visible;
		}

		.ai-section {
			margin-bottom: 10px;
		}

		.ai-section-title {
			font-size: 1rem;
			font-weight: 500;
			margin-bottom: 8px;
			color: #495057;
		}

		#aiPredictResult {
			background: #f8f9fa;
			border: 1px solid #dee2e6;
			border-radius: 4px;
			padding: 15px;
			margin-top: 10px;
			font-size: 0.95rem;
			line-height: 1.5;
		}

		/* 新增：开关样式 */
		.switch {
			position: relative;
			display: inline-block;
			width: 40px;
			height: 20px;
		}

		.switch input {
			opacity: 0;
			width: 0;
			height: 0;
		}

		.slider {
			position: absolute;
			cursor: pointer;
			top: 0;
			left: 0;
			right: 0;
			bottom: 0;
			background-color: #ccc;
			transition: 0.4s;
		}

		.slider:before {
			position: absolute;
			content: "";
			height: 16px;
			width: 16px;
			left: 2px;
			top: 2px;
			background-color: white;
			transition: 0.4s;
		}

		input:checked + .slider {
			background-color: #3498db;
		}

		input:focus + .slider {
			box-shadow: 0 0 1px #3498db;
		}

		input:checked + .slider:before {
			transform: translateX(20px);
		}

		.slider.round {
			border-radius: 20px;
		}

		.slider.round:before {
			border-radius: 50%;
		}

		/* 新增：AI预测设置区域样式 */
		.ai-btn {
			padding: 8px 16px;
			border: 1px solid #ced4da;
			border-radius: 4px;
			font-size: 0.9rem;
			cursor: pointer;
			display: flex;
			align-items: center;
			gap: 6px;
			min-height: 40px;
			touch-action: manipulation;
			-webkit-tap-highlight-color: transparent;
			transition: all 0.2s ease;
		}
		
		.ai-btn:active {
			transform: scale(0.98);
		}
		
		.ai-btn.primary {
			background: #3498db;
			color: white;
			border-color: #2980b9;
		}
		
		.ai-btn.secondary {
			background: #f8f9fa;
			color: #495057;
			border-color: #ced4da;
		}
		
		.ai-btn.warning {
			background: #e74c3c;
			color: white;
			border-color: #c0392b;
		}

		/* 响应式布局 */
		@media (max-width: 768px) {
			.ai-header {
				flex-direction: column;
				align-items: flex-start !important;
				gap: 10px;
			}
			
			.ai-buttons {
				width: 100%;
				justify-content: flex-end;
			}
			
			.ai-container {
				margin-left: 2px !important;
				margin-right: 2px !important;
			}
			
			.ai-content {
				padding: 10px;
			}
			
			.ai-section {
				margin-bottom: 15px;
			}
			
			.ai-section-title {
				font-size: 1rem;
				margin-bottom: 10px;
			}
			
			#aiPredictResult {
				padding: 12px;
				font-size: 0.9rem;
			}
		}
		
		@media (max-width: 480px) {
			.ai-btn {
				padding: 10px 14px;
				font-size: 0.85rem;
			}
			
			.ai-title {
				font-size: 1rem;
			}
			
			.ai-title span {
				font-size: 0.75rem;
			}
			
			select {
				font-size: 0.9rem;
				padding: 10px !important;
			}
			
			#aiPredictResult {
				min-height: 120px;
			}
		}

		/* 单式投注界面样式 */
		.single-bet-container {
			padding: 4px 2px;
			max-width: 100%;
			margin: 0 -2px;
		}

		.single-bet-container .bet-table {
			width: 100%;
			border-collapse: collapse;
			margin-bottom: 10px;
			background: white;
			border: 1px solid #dee2e6;
			border-radius: 8px;
			overflow: hidden;
			table-layout: fixed;
			box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
		}

		.single-bet-container .bet-table col.col-no-width {
			width: 36px;
		}

		.single-bet-container .bet-table col.col-op-width {
			width: 72px;
		}

		.single-bet-container .bet-table th {
			background: #f8f9fa;
			border: 1px solid #dee2e6;
			padding: 6px 2px;
			font-size: 0.82rem;
			font-weight: normal;
			color: #666;
			text-align: center;
		}

		.single-bet-container .bet-table td {
			border: 1px solid #dee2e6;
			padding: 4px 2px;
			text-align: center;
			vertical-align: middle;
		}

		.single-bet-row .row-index {
			display: inline-flex;
			align-items: center;
			justify-content: center;
			min-width: 24px;
			height: 24px;
			padding: 0 6px;
			border-radius: 12px;
			background: #f0f0f0;
			color: #666;
			font-size: 0.85rem;
			font-weight: 600;
		}

		.single-bet-container .col-picks {
			text-align: center;
		}

		/* 单式球类单元格样式 */
		.single-bet-container .ball-cell {
			display: block;
			width: 100%;
			padding: 4px 2px;
			text-align: center;
			border: 1px dashed #dee2e6;
			background: #fafafa;
			color: #999;
			font-size: 0.85rem;
			cursor: pointer;
			border-radius: 6px;
			box-sizing: border-box;
			min-width: 0;
			overflow: hidden;
		}

		.single-bet-container .ball-cell:not(.selected):hover {
			border-color: #adb5bd;
			background: #f1f3f5;
		}

		.single-bet-container .ball-cell.selected {
			background: #fffaf5;
			border: 1px solid #fdebd0;
			border-radius: 8px;
			color: #333;
			padding: 5px 6px;
		}

		.pick-placeholder {
			color: #bbb;
			font-size: 0.82rem;
			white-space: nowrap;
		}

		.single-bet-container .pick-numbers {
			display: block;
			width: 100%;
			max-width: 100%;
			white-space: nowrap;
			overflow-x: auto;
			overflow-y: hidden;
			-webkit-overflow-scrolling: touch;
			text-align: center;
			color: #333;
			font-weight: 800;
			font-variant-numeric: tabular-nums;
			font-size: 18px;
			line-height: 1.25;
			letter-spacing: 0;
			word-spacing: 0.02em;
		}

		.single-bet-container .ball-cell.selected .pick-numbers {
			overflow: visible;
		}

		.single-bet-container .pick-balls {
			display: grid;
			grid-template-columns: repeat(var(--pick-count, 8), minmax(0, 1fr));
			gap: 3px;
			align-items: center;
			justify-items: center;
			width: 100%;
			max-width: 100%;
			overflow: hidden;
			padding: 1px 0;
			container-type: inline-size;
		}

		.single-bet-container .pick-ball {
			display: inline-flex;
			align-items: center;
			justify-content: center;
			width: 100%;
			max-width: 36px;
			aspect-ratio: 1;
			height: auto;
			min-width: 0;
			padding: 0;
			border-radius: 50%;
			background: linear-gradient(145deg, #ffb347 0%, #e67e22 55%, #d35400 100%);
			color: #fff;
			container-type: size;
			font-size: clamp(0.62rem, calc((100cqw / var(--pick-count, 8)) * 0.58), 1rem);
			font-weight: 800;
			font-variant-numeric: tabular-nums;
			line-height: 1;
			letter-spacing: -0.03em;
			box-shadow:
				0 1px 2px rgba(211, 84, 0, 0.25),
				inset 0 1px 0 rgba(255, 255, 255, 0.35);
			text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
		}

		@supports (font-size: 1cqmin) {
			.single-bet-container .pick-ball {
				font-size: clamp(0.62rem, 52cqmin, 1rem);
			}
		}

		.single-bet-container .pick-balls[data-count="8"] {
			gap: 2px;
		}

		.single-bet-container .pick-balls[data-count="8"] .pick-ball {
			max-width: 32px;
		}

		.single-bet-container .pick-balls[data-count="9"] {
			gap: 2px;
		}

		.single-bet-container .pick-balls[data-count="9"] .pick-ball {
			max-width: 30px;
		}

		.single-bet-container .pick-balls[data-count="10"] {
			gap: 2px;
		}

		.single-bet-container .pick-balls[data-count="10"] .pick-ball {
			max-width: 28px;
		}

		/* 单式行按钮 */
		.single-bet-container .row-buttons {
			display: flex;
			flex-direction: row;
			flex-wrap: nowrap;
			gap: 3px;
			align-items: center;
			justify-content: center;
		}

		.single-bet-container .row-btn {
			padding: 4px 6px;
			border: 1px solid #ced4da;
			border-radius: 4px;
			font-size: 0.72rem;
			cursor: pointer;
			background: #e9ecef;
			color: #495057;
			white-space: nowrap;
			min-width: 0;
		}

		.row-btn:hover {
			background: #dee2e6;
		}

		.single-bet-container .row-btn.auto {
			background: #3498db;
			color: white;
			border-color: #2980b9;
		}

		.single-bet-container .row-btn.auto:hover {
			background: #2980b9;
		}

		.single-bet-container .row-btn.delete {
			background: #e74c3c;
			color: white;
			border-color: #c0392b;
		}

		.single-bet-container .row-btn.delete:hover {
			background: #c0392b;
		}

		.single-bet-container .control-panel {
			display: flex;
			gap: 6px;
			margin-top: 8px;
			padding: 0;
		}

		.single-bet-container .control-btn {
			padding: 10px 8px;
			font-size: 0.9rem;
		}

		.control-btn {
			flex: 1;
			padding: 12px;
			border: none;
			border-radius: 8px;
			font-size: 1rem;
			font-weight: bold;
			cursor: pointer;
			transition: all 0.3s;
			color: white;
		}

		.control-btn.primary {
			background: #3498db;
		}

		.control-btn.primary:hover {
			background: #2980b9;
		}

		.control-btn.warning {
			background: #e74c3c;
		}

		.control-btn.warning:hover {
			background: #c0392b;
		}

		/* 号码选择器样式 - 已移除 */

		/* 移动端优化 */
		@media (max-width: 480px) {
			.ball-selector-grid {
				grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
				gap: 10px;
				padding: 15px;
			}
			.selector-ball {
				width: 45px;
				height: 45px;
				font-size: 0.9rem;
			}
			.ball-selector-btn {
				padding: 10px;
				font-size: 0.9rem;
			}
			.ball-cell {
				min-width: 0;
				font-size: 0.78rem;
				padding: 3px 1px;
			}
			.single-bet-container {
				padding: 4px 2px;
			}
			.single-bet-container .bet-table thead {
				display: none;
			}
			.single-bet-container .bet-table,
			.single-bet-container .bet-table tbody {
				display: block;
				width: 100%;
			}
			.single-bet-container .bet-table tr.single-bet-row {
				display: flex;
				flex-wrap: nowrap;
				align-items: center;
				gap: 4px;
				padding: 6px 4px;
				margin-bottom: 8px;
				background: #fff;
				border: 1px solid #dee2e6;
				border-radius: 10px;
				box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
			}
			.single-bet-container .bet-table tr.single-bet-row td {
				border: none;
				padding: 0;
			}
			.single-bet-container .bet-table .col-no {
				flex: 0 0 auto;
			}
			.single-bet-container .bet-table .col-op {
				flex: 0 0 auto;
			}
			.single-bet-container .bet-table .col-picks {
				flex: 1 1 auto;
				min-width: 0;
				overflow: hidden;
			}

			.single-bet-container .ball-cell.selected {
				padding: 4px 5px;
				border-radius: 8px;
			}

			.single-bet-container .row-buttons {
				flex-direction: row;
				flex-wrap: nowrap;
				gap: 3px;
			}
			.single-bet-container .row-btn {
				padding: 3px 5px;
				font-size: 0.68rem;
			}
			.single-bet-row .row-index {
				min-width: 20px;
				height: 20px;
				padding: 0 4px;
				font-size: 0.78rem;
			}
			.selected-numbers.history-panel {
				margin: 12px 0 16px;
				padding: 10px 12px 12px;
			}
			.selected-numbers .history-header h3 {
				font-size: 0.92rem;
			}
			.pick-flow-steps {
				grid-template-columns: repeat(2, minmax(0, 1fr));
			}
			.selected-numbers-actions i {
				display: none;
			}
			.selected-numbers .copy-history-btn,
			.selected-numbers .clear-history-btn,
			.selected-numbers .backtest-history {
				min-width: 0;
				width: 100%;
				padding: 8px 4px;
				font-size: 0.75rem;
				justify-content: center;
			}
			.container {
				padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
			}
		}

		/* 新增：定胆设置区域样式 */
		.fixed-dan-container,
		.kill-dan-container {
			background: #f8f9fa;
			border: 1px solid #dee2e6;
			border-radius: 4px;
			padding: 0;
			margin: 0;
			display: none;
			flex-direction: column;
			overflow: visible;
		}

		.fixed-dan-container {
			padding: 8px;
		}

		.kill-dan-content,
		.fixed-dan-content {
			flex: 1 1 auto;
			overflow: visible;
			padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
		}

		.fixed-dan-footer,
		.kill-dan-footer {
			flex-shrink: 0;
			padding: 10px 0 calc(8px + env(safe-area-inset-bottom, 0px));
			border-top: 1px dashed #dee2e6;
			margin-top: 4px;
		}

		.kill-dan-content {
			padding: 15px;
		}

		.fixed-dan-header {
			display: flex;
			justify-content: space-between;
			align-items: center;
			margin-bottom: 10px;
		}

		.fixed-dan-title {
			color: #e74c3c;
			font-size: 1rem;
			font-weight: bold;
		}

		.fixed-dan-buttons {
			display: flex;
			gap: 8px;
		}

		.fixed-dan-btn {
			padding: 5px 12px;
			border: 1px solid #ced4da;
			border-radius: 3px;
			font-size: 0.85rem;
			cursor: pointer;
			display: flex;
			align-items: center;
			gap: 5px;
		}

		.fixed-dan-btn.primary {
			background: #3498db;
			color: white;
			border-color: #2980b9;
		}

		.fixed-dan-btn.secondary {
			background: #f8f9fa;
			color: #495057;
			border-color: #ced4da;
		}

		.fixed-dan-btn.warning {
			background: #e74c3c;
			color: white;
			border-color: #c0392b;
		}

		.fixed-dan-content {
			display: flex;
			flex-direction: column;
			gap: 15px;
		}

		.fixed-dan-section {
			margin-bottom: 10px;
		}

		.fixed-dan-section-title {
			color: #666;
			font-size: 0.9rem;
			margin-bottom: 8px;
			display: flex;
			justify-content: space-between;
			align-items: center;
		}

		.fixed-dan-section-title span:first-child {
			font-weight: bold;
		}

		.fixed-dan-section-title .count {
			color: #e74c3c;
			font-weight: bold;
		}

		.fixed-dan-balls,
		.kill-dan-balls {
			display: grid;
			grid-template-columns: repeat(10, minmax(0, 1fr));
			gap: 6px;
			width: 100%;
			max-width: 100%;
			box-sizing: border-box;
			margin-top: 5px;
			margin-bottom: 10px;
		}

		.fixed-dan-balls .fixed-dan-ball,
		.kill-dan-balls .fixed-dan-ball {
			width: 100%;
			max-width: 100%;
			height: auto;
			aspect-ratio: 1;
			min-width: 0;
			line-height: 1;
			display: inline-flex;
			align-items: center;
			justify-content: center;
			font-size: clamp(0.62rem, 2.6vw, 0.85rem);
			box-sizing: border-box;
			padding: 0;
		}

		.kill-dan-container {
			width: 100%;
			max-width: 100%;
			box-sizing: border-box;
		}

		.kill-dan-header {
			display: flex;
			justify-content: space-between;
			align-items: center;
			flex-wrap: wrap;
			gap: 10px;
			padding: 12px 14px;
			border-bottom: 1px solid #dee2e6;
			background: linear-gradient(to right, #e74c3c, #c0392b);
			color: white;
		}

		.panel-header {
			display: flex;
			align-items: center;
			justify-content: space-between;
			gap: 12px;
			padding: 12px 14px;
		}

		.panel-header-main {
			flex: 1 1 auto;
			min-width: 0;
		}

		.panel-header-title {
			font-size: 1rem;
			font-weight: bold;
			line-height: 1.3;
		}

		.panel-header-title i {
			margin-right: 6px;
		}

		.panel-header-desc {
			margin: 4px 0 0;
			font-size: 0.82rem;
			line-height: 1.45;
			color: #666;
		}

		.panel-header-actions {
			display: flex;
			flex-shrink: 0;
			align-items: center;
			gap: 8px;
		}

		.panel-header--danger {
			background: linear-gradient(to right, #e74c3c, #c0392b);
			color: #fff;
			border-bottom: none;
		}

		.panel-header--danger .panel-header-title {
			color: #fff;
		}

		.panel-header--danger .panel-header-desc {
			color: rgba(255, 255, 255, 0.92);
		}

		.fixed-dan-header.panel-header {
			background: #fff;
			border-bottom: 1px solid #eee;
		}

		.fixed-dan-title {
			color: #e74c3c;
		}

		.kill-dan-title {
			flex: 1 1 auto;
			min-width: 0;
			font-weight: bold;
		}

		.kill-dan-title span {
			display: block;
			font-size: 0.8rem;
			color: rgba(255, 255, 255, 0.9);
			margin-top: 4px;
			margin-left: 0 !important;
			font-weight: normal;
		}

		.kill-dan-buttons {
			display: flex;
			flex-shrink: 0;
			gap: 8px;
		}

		.kill-dan-btn {
			padding: 6px 12px;
			border: none;
			border-radius: 4px;
			cursor: pointer;
			transition: background-color 0.2s;
			font-size: 0.85rem;
		}

		.kill-dan-btn.primary {
			background: #2ecc71;
			color: white;
		}

		.kill-dan-btn.secondary {
			background: #6c757d;
			color: white;
		}

		.kill-dan-section-title {
			display: flex;
			justify-content: space-between;
			align-items: center;
			margin-bottom: 10px;
		}

		.kill-dan-footer {
			padding: 0 14px 14px;
		}

		.kill-dan-footer .kill-dan-btn {
			width: 100%;
			padding: 8px 12px;
		}

		.fixed-dan-ball {
			width: 36px;
			height: 36px;
			line-height: 36px;
			border-radius: 50%;
			text-align: center;
			font-weight: bold;
			cursor: pointer;
			border: 2px solid transparent;
			transition: all 0.2s;
			font-size: 0.9rem;
			background: #ffeaea;
			color: #e74c3c;
			border-color: #ffcccc;
		}

		.fixed-dan-ball.selected {
			background: #e74c3c;
			color: white;
			border-color: #c0392b;
		}

		/* 响应式设计 - 移动端优化 */
		/* 触摸操作优化 */
		button,
		.bet-type,
		.play-type,
		.fixed-dan-ball,
		.ball,
		.history-ball {
			touch-action: manipulation;
			-webkit-tap-highlight-color: transparent;
		}

		/* PC 端定胆/杀号面板优化 */
		@media (min-width: 769px) {
			.fixed-dan-container,
			.kill-dan-container,
			.ai-container {
				background: #fff;
				border-radius: 10px;
				box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
				overflow: visible;
				flex-direction: column;
			}

			.fixed-dan-container {
				padding: 0;
			}

			.kill-dan-content,
			.fixed-dan-content,
			.ai-content {
				overflow: visible;
				padding: 16px 20px;
			}

			.fixed-dan-balls,
			.kill-dan-balls {
				gap: 8px;
			}

			.kill-dan-footer,
			.fixed-dan-footer {
				padding: 12px 20px 16px;
				display: flex;
				justify-content: flex-end;
				border-top: 1px dashed #dee2e6;
				margin-top: 0;
			}

			.panel-header {
				padding: 14px 20px;
			}

			/* PC：一行分栏 — 左：期号+投注工具，右：玩法选择 */
			.pick-toolbar-row {
				display: grid;
				grid-template-columns: minmax(0, 1fr) auto;
				grid-template-rows: auto;
				align-items: center;
				gap: 8px 14px;
				padding: 6px 12px;
			}

			.period-and-bet-wrapper {
				grid-column: 1;
				grid-row: 1;
				display: flex;
				flex-direction: row;
				align-items: center;
				gap: 10px;
				min-width: 0;
				padding: 0;
			}

			.period-and-bet-wrapper .period-info {
				flex: 0 0 auto;
				padding: 0;
				border-bottom: none;
			}

			.period-and-bet-wrapper .bet-type-toolbar {
				display: flex;
				flex-wrap: nowrap;
				align-items: center;
				gap: 6px;
				width: auto;
				flex: 1 1 auto;
				min-width: 0;
				justify-content: flex-end;
				padding: 0;
				grid-template-columns: none;
			}

			.period-and-bet-wrapper .bet-type-selector {
				display: contents;
			}

			.period-and-bet-wrapper .bet-type-selector--tools .bet-type:first-child {
				margin-left: 2px;
				padding-left: 8px;
				border-left: 1px solid #dee2e6;
			}

			.period-and-bet-wrapper .bet-type {
				flex-shrink: 0;
				min-height: 28px;
				padding: 3px 10px;
				font-size: 0.78rem;
			}

			.pick-toolbar-row .play-type-section {
				grid-column: 2;
				grid-row: 1;
				display: flex;
				align-items: center;
				gap: 8px;
				flex: none;
				margin: 0;
				padding: 0 0 0 14px;
				border-left: 1px solid #dee2e6;
				justify-content: flex-end;
			}

			.pick-toolbar-row .play-type-section-label {
				padding: 0;
				margin: 0;
			}

			.pick-toolbar-row .play-type-selector {
				display: flex;
				flex-wrap: nowrap;
				justify-content: flex-end;
				gap: 4px;
			}

			.pick-toolbar-row .dan-settings-status {
				grid-column: 1 / -1;
				grid-row: 2;
				padding: 0 2px 4px;
			}

			.single-bet-container {
				padding: 16px 20px 20px;
				margin: 0;
				max-width: 920px;
			}

			.single-bet-container .bet-table {
				box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
			}

			.single-bet-container .bet-table col.col-no-width {
				width: 52px;
			}

			.single-bet-container .bet-table col.col-op-width {
				width: 148px;
			}

			.single-bet-container .bet-table th {
				padding: 10px 14px;
				font-size: 0.9rem;
				font-weight: 600;
				color: #555;
			}

			.single-bet-container .bet-table td {
				padding: 10px 14px;
				height: auto;
				min-height: 58px;
			}

			.single-bet-container .bet-table tbody tr.single-bet-row:nth-child(even) {
				background: #fafbfc;
			}

			.single-bet-row .row-index {
				min-width: 28px;
				height: 28px;
				font-size: 0.9rem;
			}

			.single-bet-container .ball-cell {
				display: flex;
				align-items: center;
				justify-content: center;
				padding: 8px 12px;
				min-height: 44px;
			}

			.single-bet-container .ball-cell.selected {
				padding: 8px 12px;
				background: #fffaf5;
				border: 1px solid #fdebd0;
				border-radius: 10px;
			}

			.single-bet-container .pick-balls {
				gap: 2px;
			}

			.single-bet-container .pick-balls[data-count="10"] .pick-ball {
				max-width: 26px;
			}

			.single-bet-container .pick-balls[data-count="9"] .pick-ball {
				max-width: 28px;
			}

			.single-bet-container .pick-balls[data-count="8"] .pick-ball {
				max-width: 30px;
			}

			.single-bet-container .pick-ball {
				max-width: 34px;
			}

			.single-bet-container .pick-placeholder {
				font-size: 0.88rem;
			}

			.single-bet-container .row-buttons {
				gap: 8px;
			}

			.single-bet-container .row-btn {
				padding: 8px 14px;
				font-size: 0.85rem;
				min-height: 36px;
				border-radius: 6px;
				min-width: 56px;
			}

			.single-bet-container .control-panel {
				gap: 12px;
				margin-top: 16px;
				justify-content: center;
				max-width: 560px;
				margin-left: auto;
				margin-right: auto;
			}

			.single-bet-container .control-btn {
				flex: 0 1 auto;
				min-width: 120px;
				padding: 12px 22px;
				font-size: 0.95rem;
				border-radius: 8px;
			}
		}

		@media (min-width: 1200px) {
			body {
				justify-content: center;
			}
			.pick-toolbar-row {
				padding: 6px 16px;
			}

			.pick-toolbar-row .play-type-section {
				padding-left: 16px;
			}

			.container {
				max-width: 1200px;
				margin: 0 auto;
				padding: 0 10px;
				width: 100%;
			}
			.header {
				width: 100%;
			}
			.ball {
				width: 50px;
				height: 50px;
				font-size: 1.3rem;
			}
			.fixed-dan-ball {
				width: 40px;
				height: 40px;
				line-height: 40px;
				font-size: 1rem;
			}
			.lottery-title {
				font-size: 1.6rem;
			}
			.lottery-subtitle {
				font-size: 1rem;
			}
			.lottery-header {
				padding: 8px 20px;
			}
			.last-result {
				padding: 10px 20px;
			}
			.period-info {
				padding: 10px 20px;
			}
			.history-item {
				padding: 3px;
			}
			.history-item-header {
				padding: 8px 20px 5px 20px;
			}
			.bet-amount {
				width: 100%;
				padding: 18px;
			}
			.ball-area {
				padding: 0 20px;
			}
			.instructions-panel {
				max-width: 1200px;
				margin: 0 auto;
			}
			.instructions-header {
				padding: 0 20px 10px 20px;
			}
			.instructions-content {
				padding: 0 20px;
			}
			.footer {
				max-width: 1200px;
				margin: 0 auto;
			}

			.single-bet-container {
				max-width: 960px;
				margin-left: auto;
				margin-right: auto;
			}

			.single-bet-container .pick-ball {
				max-width: 40px;
			}

			.single-bet-container .pick-balls[data-count="10"] .pick-ball {
				max-width: 36px;
			}
		}

		/* 平板和中等屏幕 */
		@media (max-width: 768px) {
			body {
				padding: 0 2px 4px;
				animation: none;
			}
			.container {
				margin: 0;
				padding: 0 4px;
			}
			.lottery-title {
				font-size: 1.2rem;
			}
			.lottery-subtitle {
				font-size: 0.85rem;
			}
			.lottery-header {
				padding: 8px 12px;
			}
			.period-info {
				padding: 10px 12px;
			}
			.last-result {
				flex-direction: column;
				align-items: center;
				gap: 10px;
				padding: 8px 12px;
			}
			
			.result-numbers {
				justify-content: center;
			}
			.period-and-bet-wrapper .period-info {
				padding: 8px 10px;
			}

			.period-detail {
				font-size: 0.78rem;
				gap: 4px 8px;
			}

			.bet-type-toolbar {
				padding: 6px 8px 8px;
				gap: 5px;
			}

			.bet-type {
				min-height: 36px;
				font-size: 0.8rem;
				padding: 5px 2px;
			}

			.play-type-selector {
				gap: 5px;
			}

			.play-type {
				padding: 8px 2px;
				font-size: 0.78rem;
			}

			.ball {
				width: 40px;
				height: 40px;
				font-size: 1.2rem;
			}
			.result-ball {
				width: 26px;
				height: 26px;
				line-height: 26px;
				font-size: 0.8rem;
			}
			.result-numbers {
				display: grid;
				grid-template-columns: repeat(10, 1fr);
				gap: 4px;
				align-items: center;
				grid-auto-rows: 26px;
			}
			.play-type {
				min-width: 0;
				font-size: 0.78rem;
				padding: 8px 2px;
			}

			.control-buttons {
				flex-direction: row;
				align-items: stretch;
				gap: 10px;
				width: 100%;
			}
			.control-buttons button {
				flex: 1;
				margin: 0;
				font-size: 1rem;
				padding: 12px 5px;
				min-height: 44px; /* 触摸目标最小高度 */
				text-align: center;
				white-space: nowrap;
			}
			.setting-group {
				flex-direction: column;
				gap: 15px;
			}
			.setting-item {
				margin: 0;
			}
			.fixed-dan-ball {
				width: 32px;
				height: 32px;
				line-height: 32px;
				font-size: 0.85rem;
			}
			.fixed-dan-btn {
				padding: 8px 12px;
				font-size: 0.9rem;
			}
			.fixed-dan-header {
				flex-direction: column;
				align-items: flex-start;
				gap: 8px;
			}
			.fixed-dan-title span {
				display: block;
				margin-left: 0 !important;
				margin-top: 4px;
			}
			.fixed-dan-buttons {
				width: 100%;
				justify-content: flex-end;
			}
			.fixed-dan-container,
			.kill-dan-container {
				margin-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
			}
			.fixed-dan-balls,
			.kill-dan-balls {
				gap: 4px;
			}
			.kill-dan-content {
				padding: 10px 12px;
			}
			.kill-dan-footer {
				padding: 0 12px 12px;
			}
			.footer {
				background: transparent;
			}
		}

		/* 小屏幕手机 */
		@media (max-width: 480px) {
			body {
				padding: 0 5px 5px;
				animation: none;
			}
			.lottery-header {
				padding: 8px 10px;
			}
			.period-info {
				padding: 10px 10px;
			}
			.last-result {
				padding: 8px 10px;
			}
			.history-item {
				padding: 3px;
			}
			.history-item-header {
				padding: 8px 10px 5px 10px;
			}
			.bet-amount {
				padding: 12px;
			}
			.lottery-title {
				font-size: 1.1rem;
			}
			.lottery-subtitle {
				font-size: 0.8rem;
			}
			.ball {
				width: 35px;
				height: 35px;
				font-size: 1.2rem;
			}
			.result-ball {
				width: 24px;
				height: 24px;
				line-height: 24px;
				font-size: 0.75rem;
			}
			.result-numbers {
				display: grid;
				grid-template-columns: repeat(10, 1fr);
				gap: 4px;
				align-items: center;
				grid-auto-rows: 24px;
			}
			.history-ball {
				width: 30px;
				height: 30px;
				font-size: 0.8rem;
			}
			.play-type-selector {
				gap: 5px;
			}
			.play-type {
				font-size: 0.75rem;
				padding: 7px 2px;
			}
			.fixed-dan-ball {
				width: 30px;
				height: 30px;
				line-height: 30px;
				font-size: 0.8rem;
			}
			.fixed-dan-btn {
				padding: 6px 10px;
				font-size: 0.85rem;
			}
			.fixed-dan-balls,
			.kill-dan-balls {
				gap: 3px;
			}
			.kill-dan-content {
				padding: 8px 10px;
			}
			.kill-dan-footer {
				padding: 0 10px 10px;
			}
			.control-buttons button {
				flex: 1;
				padding: 10px 5px;
				font-size: 0.95rem;
				text-align: center;
				white-space: nowrap;
			}
			.lottery-header {
				padding: 8px 10px;
			}
			.period-info {
				padding: 10px 10px;
			}
			.last-result {
				padding: 8px 10px;
			}
			.history-item {
				padding: 3px;
			}
			.history-item-header {
				padding: 8px 10px 5px 10px;
			}
			.bet-amount {
				padding: 12px;
			}
			.ball-area {
				padding: 0 10px;
			}
			.footer {
				background: transparent;
			}
		}

		/* 超小屏幕手机 */
		@media (max-width: 360px) {
			body {
				animation: none;
			}
			.lottery-header {
				padding: 8px 8px;
			}
			.period-info {
				padding: 10px 8px;
			}
			.last-result {
				padding: 8px 8px;
			}
			.history-item {
				padding: 3px;
			}
			.history-item-header {
				padding: 8px 8px 5px 8px;
			}
			.bet-amount {
				padding: 10px;
			}
			.ball-area {
				padding: 0 8px;
			}
			.footer {
				background: transparent;
			}
		}

		/* 超小屏幕手机 */
		@media (max-width: 360px) {
			body {
				animation: none;
			}
			.lottery-header {
				padding: 8px 8px;
			}
			.period-info {
				padding: 10px 8px;
			}
			.last-result {
				padding: 8px 8px;
			}
			.history-item {
				padding: 3px;
			}
			.history-item-header {
				padding: 8px 8px 5px 8px;
			}
			.bet-amount {
				padding: 10px;
			}
			.lottery-title {
				font-size: 1rem;
			}
			.lottery-subtitle {
				font-size: 0.75rem;
			}
			.ball {
				width: 32px;
				height: 32px;
				font-size: 1.1rem;
			}
			.result-ball {
				width: 20px;
				height: 20px;
				line-height: 20px;
				font-size: 0.65rem;
			}
			.result-numbers {
				display: grid;
				grid-template-columns: repeat(10, 1fr);
				gap: 3px;
				align-items: center;
				grid-auto-rows: 20px;
			}
			.history-ball {
				width: 28px;
				height: 28px;
				font-size: 0.75rem;
			}
			.play-type {
				font-size: 0.72rem;
				padding: 6px 1px;
			}
			.fixed-dan-ball {
				width: 28px;
				height: 28px;
				line-height: 28px;
				font-size: 0.75rem;
			}
			.fixed-dan-btn {
				padding: 5px 8px;
				font-size: 0.8rem;
			}
			.control-buttons button {
				flex: 1;
				padding: 8px 5px;
				font-size: 0.9rem;
				text-align: center;
				white-space: nowrap;
			}
			.footer {
				background: transparent;
			}
		}
	
	/* 使用说明 */
	.instructions-panel {
		padding: 15px 0;
		background: #f8f9fa;
		border-radius: 8px;
		box-shadow: 0 2px 12px rgba(0,0,0,0.1);
		border: 1px solid #dee2e6;
		width: 100%;
		max-width: 1200px;
		margin: 0 auto;
	}

	.instructions-header {
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin-bottom: 15px;
		padding: 0 15px 10px 15px;
		border-bottom: 1px solid #dee2e6;
		background: #f8f9fa;
	}

	.instructions-header h3 {
		color: #333;
		font-size: 1.1rem;
		margin: 0;
	}

	.instructions-toggle {
		background: #3498db;
		color: white;
		border: none;
		border-radius: 4px;
		width: auto;
		height: auto;
		padding: 6px 10px;
		display: flex;
		align-items: center;
		justify-content: center;
		cursor: pointer;
		transition: background-color 0.3s, transform 0.2s;
		font-size: 1.2rem;
	}

	.instructions-toggle:hover {
		background: #2980b9;
	}

	.instructions-content {
		max-height: 400px;
		overflow-y: auto;
		transition: max-height 0.3s ease;
		padding: 0 15px;
		background: #f8f9fa;
	}

	.instructions-section h4 {
		color: #333;
		font-size: 0.95rem;
		margin-bottom: 10px;
		display: flex;
		align-items: center;
		gap: 8px;
	}

	.instructions-section ul {
		padding-left: 20px;
		margin: 0;
	}

	.instructions-section li {
		margin-bottom: 8px;
		font-size: 0.85rem;
		line-height: 1.4;
		color: #555;
	}

	.instructions-section li strong {
		color: #333;
	}

	.instructions-content.collapsed {
		max-height: 0;
		overflow: hidden;
		background: #f8f9fa;
	}

	.instructions-section {
		margin-bottom: 20px;
		padding-bottom: 15px;
		border-bottom: 1px dashed #dee2e6;
	}

	.instructions-section:last-child {
		border-bottom: none;
		margin-bottom: 0;
		padding-bottom: 0;
	}

	.instructions-section h4 {
		color: #333;
		font-size: 0.95rem;
		margin-bottom: 10px;
		display: flex;
		align-items: center;
		gap: 8px;
	}

	.instructions-section h4 i {
		color: #3498db;
	}

	.instructions-section ul {
		padding-left: 20px;
		margin: 0;
	}

	.instructions-section li {
		margin-bottom: 8px;
		font-size: 0.85rem;
		line-height: 1.4;
		color: #555;
	}

	.instructions-section li strong {
		color: #333;
	}

		@media (max-width: 768px) {
			.instructions-panel {
				margin-top: 15px;
				padding: 10px 0;
			}

			.instructions-header {
				padding: 0 10px 10px 10px;
			}

			.instructions-content {
				max-height: 300px;
				padding: 0 10px;
			}
			.instructions-toggle {
				width: auto;
				height: auto;
				padding: 5px 8px;
				font-size: 1.1rem;
			}
			.bet-table th {
				padding: 6px 2px;
				font-size: 0.75rem;
			}
			.bet-table td {
				padding: 4px 2px;
			}
			.control-btn {
				padding: 10px;
				font-size: 0.9rem;
			}
		}

		/* 单式选号小窗口样式 */
		.ball-selector-modal {
			display: none;
			position: fixed;
			inset: 0;
			z-index: 10050;
		}

		.ball-selector-modal.active {
			display: block;
		}

		.ball-selector-modal .ball-selector-backdrop {
			position: fixed;
			inset: 0;
			background: rgba(0, 0, 0, 0.55);
			z-index: 10050;
		}

		.ball-selector-modal .ball-selector-wrap {
			position: fixed;
			left: 0;
			right: 0;
			bottom: 0;
			z-index: 10051;
			width: 100%;
			max-width: 520px;
			max-height: min(88vh, 680px);
			margin: 0 auto;
			display: flex;
			flex-direction: column;
			background: #fff;
			border-radius: 12px 12px 0 0;
			overflow: hidden;
			box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.18);
		}

		@media (min-width: 481px) {
			.ball-selector-modal .ball-selector-wrap {
				left: 50%;
				right: auto;
				bottom: auto;
				top: 50%;
				transform: translate(-50%, -50%);
				border-radius: 12px;
				max-height: min(680px, calc(100vh - 24px));
			}
		}

		.ball-selector-modal .ball-selector-actions {
			display: flex;
			justify-content: space-between;
			gap: 10px;
			flex-shrink: 0;
			padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 8px));
			background: #fff;
			border-top: 1px solid #dee2e6;
			box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
			box-sizing: border-box;
		}

		.ball-selector-modal .modal-header {
			display: flex;
			justify-content: space-between;
			align-items: center;
			padding: 15px 20px;
			background: linear-gradient(to right, #e74c3c, #c0392b);
			color: white;
			flex-shrink: 0;
		}

		.ball-selector-modal .modal-header h3 {
			margin: 0;
			font-size: 1.1rem;
		}

		.ball-selector-modal .modal-close {
			background: none;
			border: none;
			color: white;
			font-size: 1.3rem;
			cursor: pointer;
			padding: 5px;
			line-height: 1;
		}

		.ball-selector-modal .modal-info {
			display: flex;
			justify-content: space-between;
			align-items: flex-start;
			gap: 8px;
			padding: 10px 12px;
			background: #f8f9fa;
			border-bottom: 1px solid #eee;
			flex-shrink: 0;
		}

		.ball-selector-modal .modal-info-main {
			display: flex;
			flex-direction: column;
			gap: 4px;
			min-width: 0;
		}

		.ball-selector-modal .modal-fixed-dan-hint {
			display: none;
			font-size: 0.75rem;
			line-height: 1.35;
			color: #2980b9;
		}

		.ball-selector-modal .modal-info-actions {
			display: flex;
			align-items: center;
			gap: 8px;
			flex-shrink: 0;
		}

		.ball-selector-modal .modal-btn.clear {
			flex: 0 0 auto;
			padding: 8px 12px;
			min-width: 56px;
		}

		.ball-selector-modal .modal-body {
			padding: 10px 12px 12px;
			flex: 1 1 auto;
			min-height: 0;
			overflow-x: hidden;
			overflow-y: auto;
			-webkit-overflow-scrolling: touch;
			overscroll-behavior: contain;
		}

		.ball-selector-modal .modal-balls {
			display: grid;
			grid-template-columns: repeat(8, minmax(0, 1fr));
			gap: 8px;
			padding: 4px 0 12px;
		}

		.ball-selector-modal .modal-ball {
			width: 100%;
			max-width: 44px;
			height: auto;
			aspect-ratio: 1;
			margin: 0 auto;
			border-radius: 50%;
			display: flex;
			align-items: center;
			justify-content: center;
			font-weight: bold;
			font-size: 0.85rem;
			color: white;
			background: #e74c3c;
			transition: background-color 0.2s, border-color 0.2s;
			border: 2px solid transparent;
			cursor: pointer;
			touch-action: manipulation;
			-webkit-tap-highlight-color: rgba(0, 0, 0, 0.08);
			user-select: none;
			padding: 0;
			-webkit-appearance: none;
			appearance: none;
			font-family: inherit;
			line-height: 1;
		}

		.ball-selector-modal .modal-ball:hover {
			border-color: rgba(255, 255, 255, 0.35);
		}

		.ball-selector-modal .modal-ball.selected {
			background: #2ecc71;
			border-color: #27ae60;
		}

		.ball-selector-modal .modal-ball.disabled {
			opacity: 0.35;
			cursor: not-allowed;
			background: #e9ecef;
			color: #999;
			border-color: #dee2e6;
			text-decoration: line-through;
			transform: none;
			box-shadow: none;
		}

		.ball-selector-modal .modal-ball.fixed-dan-locked {
			background: #3498db;
			border-color: #2980b9;
			cursor: not-allowed;
			opacity: 1;
		}

		.ball-selector-modal .modal-ball.fixed-dan-locked.selected {
			background: #3498db;
			border-color: #2980b9;
		}

		.ball-selector-modal .modal-ball.disabled:hover {
			transform: none;
			box-shadow: none;
		}

		.ball-selector-modal .modal-btn {
			flex: 1;
			padding: 12px 14px;
			border: none;
			border-radius: 8px;
			font-size: 1rem;
			font-weight: bold;
			cursor: pointer;
			transition: all 0.2s;
			min-height: 44px;
			touch-action: manipulation;
			-webkit-tap-highlight-color: transparent;
		}

		.ball-selector-modal .modal-btn.clear {
			background: #e67e22;
			color: white;
		}

		.ball-selector-modal .modal-btn.clear:hover {
			background: #d35400;
		}

		.ball-selector-modal .modal-btn.cancel {
			background: #95a5a6;
			color: white;
		}

		.ball-selector-modal .modal-btn.cancel:hover {
			background: #7f8c8d;
		}

		.ball-selector-modal .modal-btn.confirm {
			background: #2ecc71;
			color: white;
		}

		.ball-selector-modal .modal-btn.confirm:hover {
			background: #27ae60;
		}

		@media (max-width: 480px) {
			.ball-selector-modal .ball-selector-wrap {
				max-height: 100%;
				border-radius: 12px 12px 0 0;
			}
			.ball-selector-modal .modal-header {
				padding: 10px 12px;
			}
			.ball-selector-modal .modal-header h3 {
				font-size: 0.95rem;
			}
			.ball-selector-modal .modal-info {
				padding: 6px 10px;
			}
			.ball-selector-modal .modal-body {
				padding: 6px 8px;
			}
			.ball-selector-modal .modal-balls {
				grid-template-columns: repeat(8, 28px);
				justify-content: center;
				gap: 3px;
				padding: 2px 0 6px;
			}
			.ball-selector-modal .modal-ball {
				width: 28px;
				height: 28px;
				max-width: none;
				aspect-ratio: auto;
				font-size: 0.62rem;
				border-width: 1px;
			}
			.ball-selector-modal .modal-btn.clear {
				padding: 6px 10px;
				min-width: 48px;
				font-size: 0.85rem;
				min-height: 32px;
			}
			.ball-selector-modal .ball-selector-actions {
				padding: 8px 10px calc(10px + env(safe-area-inset-bottom, 8px));
			}
			.ball-selector-modal .modal-btn {
				padding: 10px 8px;
				font-size: 0.95rem;
				min-height: 40px;
			}
		}
