/* ===========================================================
 * 数字组合系统 - 移动端 UI 框架
 * 主题：简约米白色 / 移动优先 / 无表情图标
 * 兼容主流移动端浏览器
 * ========================================================= */

:root {
    --bg: #e8f3e6;          /* 浅绿底（与图1一致） */
    --bg-2: #dcecd9;        /* 稍深浅绿（标题条/表头） */
    --card: #ffffff;
    --line: #b8d6b3;        /* 浅绿边框 */
    --text: #1a1a1a;
    --text-2: #555555;
    --text-3: #8a8a8a;
    --primary: #2196f3;     /* 蓝色按钮 */
    --primary-2: #1976d2;
    --accent: #2e7d32;      /* 绿色强调 */
    --accent-2: #1b5e20;
    --red: #b71c1c;         /* 图2红色强调文字 */
    --success: #2e7d32;
    --warn: #e65100;
    --danger: #c62828;
    --kbd-bg: #2e5024;      /* 深橄榄绿键盘背景 */
    --kbd-text: #f4d03f;    /* 金黄色键盘文字 */
    --radius: 8px;
    --radius-sm: 5px;
    --shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.10);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* 容器：移动端固定宽度，居中模拟移动屏幕 */
.app-shell {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg);
    position: relative;
    box-shadow: 0 0 30px rgba(0,0,0,0.04);
}

/* ============ 顶部绿色状态栏 ============ */
.status-bar {
    background: #43a047;
    padding: 8px 14px 6px;
    text-align: center;
}
.status-bar__title {
    color: #ffeb3b;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
}
.status-bar__info {
    display: flex;
    justify-content: space-between;
    color: #fff;
    font-size: 12px;
    margin-top: 4px;
    font-weight: 600;
}

/* ============ 顶部功能标签 ============ */
.toptab {
    display: flex;
    background: #fff;
    border-bottom: 2px solid var(--line);
}
.toptab__item {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    color: var(--text-3);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    border: none;
    background: transparent;
    font-family: inherit;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.15s;
}
.toptab__item.is-active {
    color: #e53935;
    border-bottom-color: #e53935;
}

/* 菜单列表（更多功能） */
.menu-list {
    display: flex;
    flex-direction: column;
}
.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    cursor: pointer;
    font-size: 15px;
    color: var(--text-1);
    transition: background 0.15s;
}
.menu-item:last-child { border-bottom: none; }
.menu-item:active { background: var(--bg-2); }
.menu-item span { flex: 1; }
.menu-item .icon--muted { color: var(--text-3); }

/* 更多下拉菜单 */
.more-dropdown {
    position: absolute;
    top: 100px;
    right: 8px;
    background: #e53935;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
    overflow: hidden;
    border: 1px solid #fff;
}
.more-item {
    padding: 5px 10px;
    border-bottom: 1px solid #fff;
    cursor: pointer;
    transition: background 0.15s;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}
.more-item:last-child { border-bottom: none; }
.more-item:active { background: #c62828; }
.more-item--danger { color: #fff; font-weight: 700; }

/* 历史账单标题 */
.bill-title {
    text-align: center;
    font-size: 18px;
    font-weight: 800;
    color: var(--text-1);
    padding: 12px 0 8px;
}
/* 历史账单表格 */
.bill-tbl th, .bill-tbl td {
    padding: 8px 6px;
    text-align: center;
    font-size: 14px;
}
.bill-tbl tfoot td {
    border-top: 2px solid var(--text-1);
    font-weight: 700;
    background: var(--bg-2);
}

/* 明细页标题栏 */
.detail-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    background: #fff;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
}
.detail-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-1);
    margin-right: auto;
}
.detail-btn {
    padding: 5px 12px;
    border: 1px solid var(--primary);
    background: #fff;
    color: var(--primary);
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
}
.detail-btn:active { background: var(--primary); color: #fff; }
.detail-btn--danger {
    border-color: var(--danger);
    color: var(--danger);
}
.detail-btn--danger:active { background: var(--danger); color: #fff; }

/* 明细分页 */
.detail-pager {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 8px;
    font-size: 13px;
    color: var(--text-2);
    flex-wrap: wrap;
}
.pager-btn {
    padding: 4px 10px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text-2);
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-family: inherit;
}
.pager-btn:active { background: var(--bg-2); }
.pager-input {
    width: 50px;
    padding: 4px 6px;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-size: 12px;
    text-align: center;
}
.detail-tbl th, .detail-tbl td {
    padding: 8px 6px;
    text-align: center;
}

/* ============ 主体内容 ============ */
.page { padding: 12px; padding-bottom: 80px; }

/* ============ 卡片 ============ */
.card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 14px;
}
.card__header {
    padding: 10px 14px;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    letter-spacing: 0.5px;
}
.acc__header { cursor: pointer; user-select: none; }
.acc__header:hover { background: var(--line); }
.acc__chev { color: var(--text-muted); font-size: 12px; transition: transform 0.2s; }
.card__body { padding: 14px; }
.card__footer {
    padding: 10px 14px;
    border-top: 1px dashed var(--line);
    background: #fbfaf6;
    font-size: 12px;
    color: var(--text-2);
}

/* ============ SVG 图标通用样式 ============ */
.icon { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.icon--sm { width: 14px; height: 14px; }
.icon--lg { width: 22px; height: 22px; }

/* ============ 底部 Tab 导航 ============ */
.tabbar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: var(--card);
    border-top: 1px solid var(--line);
    display: flex;
    z-index: 90;
}
.tabbar__item {
    flex: 1;
    text-align: center;
    padding: 10px 0 12px;
    color: var(--text-3);
    font-size: 11px;
    cursor: pointer;
    transition: color 0.2s;
    user-select: none;
    border: none;
    background: transparent;
    font-family: inherit;
}
.tabbar__item .icon { display: inline-block; margin-bottom: 3px; color: currentColor; }
.tabbar__item.is-active { color: var(--primary); }
.tabbar__item.is-active .icon { color: var(--accent); }

/* ============ 按钮 ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}
.btn:hover { background: var(--bg-2); }
.btn--primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn--primary:hover { background: var(--primary-2); }
.btn--accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--accent:hover { background: var(--accent-2); }
.btn--danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn--ghost { background: transparent; color: var(--text-2); border-color: var(--line); }
.btn--block { display: flex; width: 100%; }
.btn--sm { padding: 6px 12px; font-size: 12px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ============ 表单 ============ */
.field { margin-bottom: 12px; }
.field__label {
    display: block;
    font-size: 12px;
    color: var(--text-2);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}
.input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--card);
    font-size: 14px;
    color: var(--text);
    font-family: inherit;
    transition: border 0.15s;
}
.input:focus { outline: none; border-color: var(--accent); }
.input--lg { padding: 14px; font-size: 16px; }

/* ============ 表格 ============ */
.tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.tbl th, .tbl td {
    padding: 8px 10px;
    text-align: center;
    border-bottom: 1px solid var(--line);
}
.tbl th {
    background: var(--bg-2);
    color: var(--text-2);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.3px;
}
.tbl tr:last-child td { border-bottom: none; }

/* ============ 数字键盘（6列3行：绿底按键+白边框+黄字） ============ */
.keypad {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
    background: #2e7d32;
    padding: 4px;
    border-radius: var(--radius);
}
.key {
    background: #2e7d32;
    color: #ffeb3b;
    border: 1px solid #fff;
    border-radius: 6px;
    padding: 10px 0;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.1s;
    font-family: inherit;
    text-align: center;
    outline: 1px solid #1b5e20;
}
.key:hover { background: #388e3c; }
.key:active { transform: scale(0.93); background: #1b5e20; }
.key--fn {
    background: #2e7d32;
    color: #ffeb3b;
    border: 1px solid #fff;
    outline: 1px solid #1b5e20;
}
.key--fn:active { background: #1b5e20; }
/* X 万能键 */
.key--x {
    background: #2e7d32;
    color: #ffeb3b;
    border: 1px solid #fff;
}
.key--x:active { background: #1b5e20; }
/* 确定键：横跨6列 */
.key--ok {
    background: #2e7d32;
    color: #ffeb3b;
    border: 1px solid #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
}
.key--ok:active { background: #1b5e20; }

/* ============ 开关 / 复选 ============ */
.check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
    font-size: 13px;
    color: var(--text);
}
.check__box {
    width: 16px; height: 16px;
    border: 1.5px solid var(--text-3);
    border-radius: 3px;
    background: var(--card);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s;
}
.check__box::after {
    content: "";
    width: 9px; height: 5px;
    border-left: 2px solid transparent;
    border-bottom: 2px solid transparent;
    transform: rotate(-45deg) translate(1px,-1px);
    transition: all 0.15s;
}
.check.is-on .check__box {
    background: var(--primary);
    border-color: var(--primary);
}
.check.is-on .check__box::after {
    border-color: #fff;
}
.check__text { letter-spacing: 0.3px; }
.check--inline { margin-right: 14px; margin-bottom: 6px; }

/* 单/双 大小 4 位方框 */
.digit-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    flex-wrap: wrap;
}
.digit-row__label {
    font-size: 13px;
    color: var(--accent-2);
    min-width: 56px;
    font-weight: 600;
}
.digit-box {
    width: 22px; height: 22px;
    border: 1px solid var(--line);
    background: var(--card);
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.1s;
}
.digit-box.is-on {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ============ 标签 / Badge ============ */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 99px;
    background: var(--bg-2);
    color: var(--text-2);
    font-size: 11px;
    letter-spacing: 0.3px;
}
.tag--primary { background: rgba(44,62,80,0.08); color: var(--primary); }
.tag--accent { background: rgba(200,150,91,0.18); color: var(--accent-2); }
.tag--success { background: rgba(79,138,91,0.18); color: var(--success); }
.tag--danger { background: rgba(176,70,60,0.18); color: var(--danger); }

/* ============ 数字组合结果展示 ============ */
.combs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 280px;
    overflow-y: auto;
    padding: 4px;
}
.comb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    padding: 8px 10px;
    background: var(--bg-2);
    color: var(--text);
    border-radius: var(--radius-sm);
    font-family: "Courier New", monospace;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    border: 1px solid var(--line);
}

/* ============ 状态条 ============ */
.stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 13px;
}
.stat-row:last-child { border-bottom: none; }
.stat-row__label { color: var(--text-2); }
.stat-row__value { color: var(--text); font-weight: 600; }

/* ============ 登录页 ============ */
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(180deg, #f4f1ea 0%, #e8e1d0 100%);
}
.login-card {
    width: 100%;
    max-width: 360px;
    background: var(--card);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.login-card__head {
    padding: 30px 24px 18px;
    text-align: center;
    background: linear-gradient(180deg, var(--card) 0%, #fbf7ed 100%);
    border-bottom: 1px solid var(--line);
}
.login-card__logo {
    width: 52px; height: 52px;
    margin: 0 auto 12px;
    background: var(--primary);
    color: #fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-card__logo .icon { width: 26px; height: 26px; stroke-width: 1.6; }
.login-card__title { font-size: 19px; font-weight: 700; letter-spacing: 1px; color: var(--text); }
.login-card__desc { font-size: 12px; color: var(--text-3); margin-top: 4px; letter-spacing: 0.5px; }
.login-card__body { padding: 22px; }

/* ============ 提示 ============ */
.toast {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30,30,30,0.92);
    color: #fff;
    padding: 10px 18px;
    border-radius: 99px;
    font-size: 13px;
    z-index: 999;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
}
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast--error { background: rgba(176,70,60,0.95); }
.toast--success { background: rgba(79,138,91,0.95); }

/* ============ 加载动画 ============ */
.spinner {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
.spinner--dark {
    border-color: rgba(0,0,0,0.15);
    border-top-color: var(--primary);
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
@keyframes marquee2 {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(244,241,234,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 998;
    backdrop-filter: blur(1px);
}

/* ============ 列表 ============ */
.list { padding: 0; margin: 0; list-style: none; }
.list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    background: var(--card);
}
.list__item:last-child { border-bottom: none; }

/* ============ 管理后台 PC 样式扩展 ============ */
.admin-shell {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}
.admin-topbar {
    background: var(--card);
    border-bottom: 1px solid var(--line);
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.admin-topbar__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}
.admin-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.admin-nav__item {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--text-2);
    cursor: pointer;
    font-size: 13px;
    text-decoration: none;
}
.admin-nav__item.is-active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* 表格 - 大屏 */
.table-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 16px; }
.table-card__header { padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.table-scroll { overflow-x: auto; }

/* 网格统计 */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.stat-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px;
}
.stat-card__label { font-size: 12px; color: var(--text-3); letter-spacing: 0.5px; }
.stat-card__value { font-size: 22px; font-weight: 700; color: var(--text); margin-top: 4px; }
.stat-card__hint { font-size: 11px; color: var(--text-3); margin-top: 4px; }

/* 隐藏类 */
.hidden { display: none !important; }

/* 工具类 */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-2); }
.text-small { font-size: 12px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.flex { display: flex; }
.flex--between { justify-content: space-between; align-items: center; }
.flex--center { align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }

/* ============ 图1 快打页专属 ============ */
.section-title {
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    letter-spacing: 0.5px;
}
.section-title--left {
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.section-title__right {
    font-size: 12px;
    color: var(--text-2);
    font-weight: 400;
}
/* 蓝色操作按钮（图1风格：截图/全截/退码/删除） */
.btn-blue {
    background: #2196f3;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 5px 14px;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}
.btn-blue:hover { background: #1976d2; }
.btn-blue:active { background: #1565c0; }
.btn-blue--block { width: 100%; padding: 8px; }
.btn-blue--sm { padding: 3px 10px; font-size: 12px; }
/* 下注框表格 */
.bet-table { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; }
.bet-table th, .bet-table td { border: 1px solid var(--line); padding: 6px 8px; text-align: center; }
.bet-table th { background: #f5f5f5; font-weight: 600; color: #333; }
.bet-table td { color: #2e7d32; font-weight: 600; }
/* 号码/金额输入行（同一排：标签+输入框 | 标签+输入框） */
.qp-inputs {
    display: flex;
    gap: 0;
    background: #fff;
    border: 1px solid var(--line);
}
.qp-input-cell {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    cursor: pointer;
    transition: background .15s;
    border-right: 1px solid var(--line);
}
.qp-input-cell:last-child { border-right: none; }
.qp-input-cell.active { background: #e8f5e9; box-shadow: inset 0 2px 0 var(--primary); }
.qp-input-label {
    font-size: 14px;
    font-weight: 700;
    color: #000;
    white-space: nowrap;
    flex-shrink: 0;
}
.qp-input-box {
    flex: 1;
    min-height: 28px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 8px;
    font-size: 16px;
    font-family: Courier New, monospace;
    font-weight: 700;
    letter-spacing: 2px;
    color: #000;
    background: #fafafa;
    text-align: center;
    line-height: 18px;
}
.qp-input-cell.active .qp-input-box {
    border-color: var(--primary);
    background: #fff;
}
/* 统计行：笔数/总金额 */
.stats-line {
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 700;
    color: #000;
    background: #fff;
    border-top: 1px dashed var(--line);
}
.stats-line span { margin-right: 16px; }

/* 快打分页 */
.qp-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: #fff;
    border-top: 1px solid var(--line);
}
.qp-page-btn {
    padding: 5px 14px;
    border: 1px solid var(--primary);
    background: #fff;
    color: var(--primary);
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
}
.qp-page-btn:active { background: var(--primary); color: #fff; }
.qp-page-btn.disabled { opacity: 0.35; cursor: not-allowed; border-color: #ccc; color: #999; }
.qp-page-info { font-size: 13px; font-weight: 700; color: #333; }

/* ============ 图2 快选页专属 ============ */
.filter-line {
    display: flex;
    align-items: center;
    padding: 7px 10px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    flex-wrap: wrap;
    gap: 6px;
}
.filter-line--title {
    font-size: 13px;
    font-weight: 700;
}
.filter-red { color: var(--red); font-weight: 700; }
.check-mini {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
    color: #000;
}
.check-mini__box {
    width: 15px; height: 15px;
    border: 1.5px solid #999;
    border-radius: 2px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.check-mini.is-on .check-mini__box {
    background: #2196f3;
    border-color: #2196f3;
}
.check-mini.is-on .check-mini__box::after {
    content: "";
    width: 8px; height: 4px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translate(1px, -1px);
}
/* 数字选择方框（4格） */
.digit-cells {
    display: inline-flex;
    gap: 4px;
    vertical-align: middle;
}
.digit-cell {
    width: 22px; height: 22px;
    border: 1px solid #bbb;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    border-radius: 2px;
    color: #333;
}
.digit-cell.is-on {
    background: #2196f3;
    color: #fff;
    border-color: #2196f3;
}
/* 生成/复位按钮 */
.btn-gen-row { display: flex; justify-content: center; gap: 12px; padding: 12px; }
.btn-gen {
    background: linear-gradient(180deg, #42a5f5 0%, #1976d2 100%);
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 8px 28px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.btn-gen:active { transform: translateY(1px); }
.btn-reset {
    background: linear-gradient(180deg, #42a5f5 0%, #1976d2 100%);
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 8px 28px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.btn-reset:active { transform: translateY(1px); }
/* 生成结果框 */
.result-box {
    border: 1px solid var(--line);
    background: #fff;
    min-height: 80px;
    max-height: 180px;
    overflow-y: auto;
    padding: 8px;
}
.result-box .comb {
    display: inline-block;
    margin: 3px;
    padding: 4px 8px;
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 3px;
    font-family: "Courier New", monospace;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #1b5e20;
}
/* 发送框 */
.send-box {
    border: 1px solid var(--line);
    background: #fff;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 10px;
}
.send-box__label { font-size: 16px; font-weight: 700; color: #000; }
.send-box__input {
    border: 1px solid #ccc;
    padding: 6px;
    font-size: 14px;
    width: 80px;
    font-family: inherit;
}
.send-box__info { font-size: 13px; color: #000; line-height: 1.8; }
.send-box__info b { font-weight: 700; }
.btn-bet {
    background: linear-gradient(180deg, #42a5f5 0%, #1976d2 100%);
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
/* 号码选择行（1. □□□□ 2. □□□□ ...） */
.num-row {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    gap: 8px;
}
.num-row__idx { font-size: 13px; font-weight: 700; color: #000; min-width: 20px; }

/* ============ 快选（6种模式） ============ */
.qk-tabs {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}
.qk-tabs__row { display: flex; }
.qk-tabs__row + .qk-tabs__row { border-top: 1px solid var(--line); }
.qk-tab {
    flex: 1;
    background: #fff;
    border: none;
    padding: 10px 4px;
    font-size: 14px;
    font-weight: 700;
    color: #666;
    cursor: pointer;
    font-family: inherit;
    transition: all .15s;
}
.qk-tab + .qk-tab { border-left: 1px solid var(--line); }
.qk-tab.is-active {
    background: var(--accent-2);
    color: #fff;
}

.qk-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
    margin-bottom: 6px;
    overflow: hidden;
}
.qk-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px 10px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}
.qk-row:last-child { border-bottom: none; }

.qk-red { color: #c62828; font-weight: 700; }

/* 除/取 复选框 */
.ck-qk {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    user-select: none;
    font-size: 11px;
    color: #333;
}
.ck-qk__box {
    width: 12px;
    height: 12px;
    border: 1px solid #999;
    border-radius: 2px;
    background: #fff;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
}
.ck-qk__box.is-on {
    background: var(--accent-2);
    border-color: var(--accent-2);
}
.ck-qk__box.is-on::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 0px;
    width: 4px;
    height: 7px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* 输入框 - 容纳10位数字，字体小 */
.qk-input {
    border: 1px solid #bbb;
    padding: 2px 3px;
    font-size: 10px;
    font-family: inherit;
    border-radius: 2px;
    outline: none;
    width: 80px;
    min-width: 80px;
}
.qk-input:focus { border-color: var(--accent-2); }

/* 对数输入框 - 更短，只放2位数字 */
.qk-input--log {
    width: 28px !important;
    min-width: 28px !important;
    text-align: center;
    padding: 2px 1px !important;
}

/* 定位置网格 */
.qk-pos-grid {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 4px;
    padding: 6px 8px;
    font-size: 10px;
}
.qk-pos-grid span { text-align: center; color: #666; width: 14px; }
.qk-pos-grid .qk-input {
    width: 68px !important;
    min-width: 68px !important;
    padding: 2px 2px !important;
    font-size: 10px;
}

/* 方框（合分行/乘号位置/单双大小） */
.qk-boxes { display: inline-flex; gap: 3px; }
.qk-box, .qk-digit {
    width: 14px;
    height: 14px;
    border: 1px solid #999;
    border-radius: 2px;
    background: #fff;
    display: inline-block;
    cursor: pointer;
    flex-shrink: 0;
}
.qk-box.is-on, .qk-digit.is-on {
    background: var(--accent-2);
    border-color: var(--accent-2);
}

/* 单双大小行 */
.qk-digits { display: inline-flex; gap: 4px; margin-left: 4px; }

/* 生成/复位按钮 */
.qk-btn-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 12px;
}
.qk-btn-gen, .qk-btn-reset {
    background: linear-gradient(180deg, #42a5f5 0%, #1976d2 100%);
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 8px 28px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.qk-btn-reset {
    background: linear-gradient(180deg, #90a4ae 0%, #607d8b 100%);
}
.qk-btn-gen:active, .qk-btn-reset:active { transform: translateY(1px); }
.qk-btn-gen:disabled { opacity: .6; cursor: not-allowed; }

/* 生成号码框 */
.qk-section-title {
    background: #e8f3e6;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-2);
    border: 1px solid var(--line);
    border-bottom: none;
    margin-top: 8px;
}
.qk-result {
    background: #fff;
    border: 1px solid var(--line);
    padding: 10px;
    min-height: 60px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-content: flex-start;
}
.qk-comb {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    background: #f1f8e9;
    border: 1px solid #c5e1a5;
    padding: 2px 6px;
    border-radius: 2px;
    letter-spacing: 1px;
}
.qk-stats {
    padding: 8px 12px;
    font-size: 13px;
    color: #666;
    background: #fafafa;
    border: 1px solid var(--line);
    border-top: none;
}
.qk-stats b { color: var(--accent-2); }

/* 发送框 */
.qk-send {
    background: #fff;
    border: 1px solid var(--line);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.qk-send__label { font-size: 15px; font-weight: 700; color: #000; }
.qk-send__input {
    border: 1px solid #ccc;
    padding: 6px;
    font-size: 14px;
    width: 80px;
    font-family: inherit;
    border-radius: 2px;
}
.qk-send__btn {
    background: linear-gradient(180deg, #42a5f5 0%, #1976d2 100%);
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.qk-send__btn:disabled { opacity: .5; cursor: not-allowed; }
.qk-send__info { font-size: 13px; color: #000; line-height: 1.8; margin-left: auto; }
.qk-send__info b { font-weight: 700; color: var(--accent-2); }

/* ============ 开奖号码页面（圆球样式） ============ */
.lh-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 6px;
    border-bottom: 1px solid #eee;
    font-size: 12px;
}
.lh-row--pending {
    background: #fff7e6;
    border-bottom: 2px solid #ffaa00;
}
.lh-time {
    color: #888;
    width: 90px;
    flex-shrink: 0;
    font-size: 11px;
}
.lh-issue {
    color: #333;
    font-weight: 600;
    width: 70px;
    flex-shrink: 0;
}
.lh-row--pending .lh-issue {
    color: #d9534f;
}
.lh-balls {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 1;
}
.lh-ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #8a2be2;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    font-family: Arial, sans-serif;
    flex-shrink: 0;
    box-sizing: border-box;
}
.lh-ball--extra {
    background: #aaa;
    color: #fff;
}
.lh-ball--sep {
    background: transparent;
    color: #999;
    font-size: 14px;
    width: 10px;
}
.lh-ball--pending {
    background: #d9534f;
}
