/* ============================================================
   H5 移动端全局样式（包含登录页 + 主页面所有样式）
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", "PingFang SC", -apple-system, BlinkMacSystemFont, sans-serif;
}

html, body {
    background: #f5f7fa;
    min-height: 100vh;
    padding: 0;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

/* ===== 登录页样式 ===== */
.login-container {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    width: 100%;
    max-width: 480px;
    margin: 20px auto;
    padding: 30px 25px;
    position: relative;
    overflow: hidden;
}
.login-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, #f7971e, #ffd200);
}
.login-container .logo { text-align: center; margin-bottom: 25px; }
.login-container .logo img { max-width: 120px; margin-bottom: 10px; }
.login-container .logo h1 { font-size: 24px; color: #1e3c72; }

.tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 25px;
    border-bottom: 2px solid #e2e8f0;
    flex-wrap: wrap;
}
.tab-btn {
    flex: 1;
    padding: 12px 5px;
    text-align: center;
    font-weight: 600;
    color: #718096;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: 0.3s;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-size: 14px;
    min-width: 50px;
}
.tab-btn:hover { color: #2d3748; }
.tab-btn.active { color: #f7971e; border-bottom-color: #f7971e; }
.tab-content { display: none; }
.tab-content.active { display: block; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; color: #2d3748; font-size: 14px; }
.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    transition: 0.3s;
    background: #f7fafc;
}
.form-group input:focus { border-color: #f7971e; outline: none; background: #fff; }

.btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #f7971e, #ffd200);
    color: #1e3c72;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 8px;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(247,151,30,0.4); }
.btn-secondary { background: linear-gradient(135deg, #667eea, #764ba2); color: white; }
.btn-secondary:hover { box-shadow: 0 8px 20px rgba(102,126,234,0.4); }

.message {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: none;
    font-size: 14px;
}
.message.error { background: #fed7d7; color: #c53030; border-left: 4px solid #e53e3e; display: block; }
.message.success { background: #c6f6d5; color: #276749; border-left: 4px solid #38a169; display: block; }

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 15px;
}
.checkbox-group input { width: 18px; height: 18px; accent-color: #f7971e; }

.footer-note { text-align: center; margin-top: 20px; font-size: 13px; color: #a0aec0; }
.back-to-login { text-align: center; margin-top: 15px; }
.back-to-login a { color: #f7971e; cursor: pointer; text-decoration: none; font-weight: 600; }

/* ===== 使用教程框 ===== */
.tutorial-box {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 0;
    max-height: 420px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s;
    margin-top: 4px;
    overflow: hidden;
}
.tutorial-box:hover { border-color: #f7971e; }
.tutorial-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 22px 10px 22px;
    font-size: 14px;
    line-height: 1.8;
    color: #2d3748;
    font-weight: bold;
    white-space: normal;
    word-wrap: break-word;
}
.tutorial-body::-webkit-scrollbar { width: 6px; }
.tutorial-body::-webkit-scrollbar-track { background: #edf2f7; border-radius: 10px; }
.tutorial-body::-webkit-scrollbar-thumb { background: #cbd5e0; border-radius: 10px; }
.tutorial-body::-webkit-scrollbar-thumb:hover { background: #a0aec0; }
.tutorial-footer {
    flex-shrink: 0;
    padding: 12px 0 18px 0;
    text-align: center;
    border-top: 1px solid #edf2f7;
    background: #f8fafc;
}
.tutorial-footer .btn-tutorial {
    display: inline-block;
    padding: 10px 30px;
    background: linear-gradient(135deg, #f7971e, #ffd200);
    color: #1e3c72;
    font-weight: 700;
    font-size: 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 2px 8px rgba(247,151,30,0.3);
}
.tutorial-footer .btn-tutorial:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(247,151,30,0.5);
}
.tutorial-loading, .tutorial-error, .tutorial-empty {
    text-align: center;
    padding: 30px 0;
    font-size: 15px;
    font-weight: bold;
}
.tutorial-loading { color: #a0aec0; }
.tutorial-error   { color: #e53e3e; }
.tutorial-empty   { color: #a0aec0; }
.tutorial-loading .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #e2e8f0;
    border-top-color: #f7971e;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 10px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== 响应式登录页 ===== */
@media (max-width:480px) {
    .login-container { padding: 20px; }
    .tab-btn { font-size: 12px; padding: 10px 0; }
    .tutorial-box { max-height: 300px; }
    .tutorial-body { padding: 16px 18px 8px 18px; font-size: 13px; }
    .tutorial-footer { padding: 10px 0 14px 0; }
    .tutorial-footer .btn-tutorial { padding: 8px 20px; font-size: 14px; }
}

/* ===== 顶部用户卡片 ===== */
.h5-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    padding: 8px 12px 4px 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-bottom: 1px solid #e8ecf0;
}
.h5-user-card {
    background: #d4e9ff;
    background: linear-gradient(145deg, #e3f2fd, #bbdefb);
    border-radius: 12px;
    padding: 10px 14px;
    border: 1px solid rgba(66, 165, 245, 0.3);
    box-shadow: 0 2px 8px rgba(13, 71, 161, 0.1);
}
.h5-user-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.h5-user-label { font-size: 18px; }
.h5-user-name {
    font-weight: 700;
    color: #800080;
    background: rgba(255,255,255,0.5);
    padding: 0 12px;
    border-radius: 20px;
    font-size: 15px;
    backdrop-filter: blur(2px);
}
.h5-user-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 2px 12px;
    border-radius: 20px;
    display: inline-block;
}
.h5-user-badge.status-normal { color: #2e7d32; background: rgba(46, 125, 50, 0.15); }
.h5-user-badge.status-warning { color: #e65100; background: rgba(230, 81, 0, 0.15); }
.h5-user-badge.status-expired { color: #b71c1c; background: rgba(183, 28, 28, 0.15); }
.h5-header-toggle {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 16px;
    color: #0d47a1;
    cursor: pointer;
    padding: 0 6px;
    min-width: auto !important;
}
.h5-user-detail {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(13, 71, 161, 0.15);
    display: block;
}
.h5-user-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #1a237e;
    padding: 2px 0;
}
.h5-user-info strong { color: #b71c1c; }
.h5-logout-btn {
    margin-top: 8px;
    width: 100%;
    padding: 6px 0;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #e53935, #b71c1c);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
    transition: all 0.25s ease;
    min-width: auto !important;
}
.h5-logout-btn:active { transform: scale(0.96); }

.h5-main-content { padding-bottom: 70px; }

.tab-panel {
    display: none;
    padding: 12px 12px 20px 12px;
    background: #f5f7fa;
    min-height: 60vh;
}
.tab-panel.active { display: block; }

/* ===== 底部导航 ===== */
.h5-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    display: flex;
    background: #fff;
    border-top: 1px solid #e8ecf0;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
    padding: 4px 0 env(safe-area-inset-bottom, 4px) 0;
    backdrop-filter: blur(8px);
}
.h5-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px 0;
    color: #999;
    font-size: 11px;
    cursor: pointer;
    transition: color 0.2s ease;
    border: none;
    background: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}
.h5-nav-item i { font-size: 22px; margin-bottom: 2px; transition: transform 0.2s ease; }
.h5-nav-item span { font-size: 11px; font-weight: 500; }
.h5-nav-item.active { color: #2c5282; }
.h5-nav-item.active i { transform: scale(1.05); }
.h5-nav-item:active { transform: scale(0.92); }

/* ===== 模块标题 ===== */
.module-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8f4f8;
    margin-bottom: 12px;
    position: relative;
}
.module-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(135deg, #4299e1, #38b2ac);
}

/* ===== 按钮通用 ===== */
button {
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    min-width: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
button:active { transform: scale(0.96); }

.btn-secondary { background: linear-gradient(135deg, #718096, #4a5568); color: #fff; }
.btn-danger { background: linear-gradient(135deg, #e53e3e, #c53030); color: #fff; }
.btn-success { background: linear-gradient(135deg, #38a169, #2f855a); color: #fff; }
.btn-feidan { background: linear-gradient(135deg, #d69e2e, #b7791f); color: #fff; }
.btn-open-check { background: linear-gradient(135deg, #805ad5, #6b46c1); color: #fff; }

/* ===== 输入框 ===== */
input[type="text"], input[type="number"], textarea, .multi-line-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
    resize: vertical;
}
input:focus, textarea:focus {
    border-color: #4299e1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}
.multi-line-input { min-height: 120px; line-height: 1.6; }

/* ===== 多选按钮 ===== */
.checkbox-button-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #cbd5e0;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    color: #333;
    transition: all 0.2s ease;
    min-width: 32px;
    user-select: none;
}
.checkbox-button-item.active { background: #2c5282; color: #FFD700; border-color: #2c5282; }
.checkbox-button-item input { display: none; }

/* ===== 生肖按钮组 ===== */
.zodiac-button-group {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    margin-bottom: 8px;
}
.zodiac-button-group .checkbox-button-item { font-size: 13px; padding: 4px 4px; }

/* ----- 新增：一行4列（用于平特连肖） ----- */
.zodiac-button-group.cols-4 {
    grid-template-columns: repeat(4, 1fr) !important;
}

/* ===== 头尾行 ===== */
.headtail-row {
    display: grid;
    gap: 4px;
    margin-bottom: 4px;
}
/* 各列数由 .cols-* 类控制，不设固定列数 */
.headtail-row .checkbox-button-item {
    font-size: 12px;
    padding: 3px 2px;
    min-height: 28px;
    font-weight: bold;
    border-radius: 16px;
}
.headtail-spacer { visibility: hidden; }

/* 自定义列数 */
.headtail-row.cols-2 { grid-template-columns: repeat(2, 1fr); }
.headtail-row.cols-3 { grid-template-columns: repeat(3, 1fr); }
.headtail-row.cols-4 { grid-template-columns: repeat(4, 1fr); }
.headtail-row.cols-5 { grid-template-columns: repeat(5, 1fr); }

/* ===== 手动添加区 Tabs ===== */
.manual-tab-group {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 8px;
    overflow-x: auto;
}
.manual-tab {
    padding: 6px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
}
.manual-tab.active { background: #4299e1; color: #fff; border-color: #4299e1; }
.manual-content { display: none; flex-direction: column; gap: 12px; }
.manual-content.active { display: flex; }

/* ===== 手动添加区紧凑布局 ===== */
.manual-content .group-container {
    padding: 0.5rem 0.6rem;
    margin-bottom: 0.6rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}
.manual-content .zodiac-button-group {
    gap: 4px;
}
.manual-content .checkbox-button-item {
    padding: 4px 6px;
    font-size: 13px;
}

/* 单双选择按钮统一尺寸 */
.selection-buttons .checkbox-button-item {
    font-size: 12px;
    padding: 3px 6px;
    min-height: 28px;
    font-weight: bold;
    border-radius: 16px;
}
.selection-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

/* 手动添加区内的 headtail 行（不设固定列数，由 .cols-* 控制） */
.manual-content .headtail-row {
    gap: 0.4rem;
}
.manual-content .headtail-row .checkbox-button-item {
    font-size: 0.7rem;
    padding: 0.3rem 0.1rem;
    min-height: 26px;
    font-weight: bold;
}

/* ===== 开奖区 Tabs ===== */
.lottery-settle-tab-group {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 8px;
    overflow-x: auto;
    flex-wrap: nowrap;
}
.lottery-settle-tab {
    padding: 6px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.lottery-settle-tab.active { background: #4299e1; color: #fff; border-color: #4299e1; }
.lottery-settle-content { display: none; flex-direction: column; gap: 12px; }
.lottery-settle-content.active { display: flex; }

/* ===== 投注记录表 ===== */
.record-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -6px;
}
.record-table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    font-size: 12px;
}
.record-table th, .record-table td {
    padding: 6px 8px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    font-size: 12px;
    white-space: nowrap;
}
.record-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #2d3748;
    position: sticky;
    top: 0;
    z-index: 2;
}
.record-table tr:hover { background: #f0f8fb; }

/* ===== 球体 ===== */
.football-ball {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    border: 2px solid #000;
    background: radial-gradient(circle at 30% 30%, #FFF 0%, #F0F0F0 30%, #D3D3D3 100%);
    box-shadow: inset 0 0 6px rgba(0,0,0,0.2), 0 3px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    color: #000;
}
.football-ball .ball-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-weight: bold;
    font-size: 14px;
    border-radius: 50%;
}
.football-ball.special-ball {
    border-color: #8B0000;
    background: radial-gradient(circle at 30% 30%, #FFD700 0%, #FFA500 30%, #FF4500 100%);
}
.football-ball.red-ball {
    border-color: #B22222;
    background: radial-gradient(circle at 30% 30%, #FFB6C1 0%, #FF69B4 30%, #DC143C 100%);
}
.football-ball.green-ball {
    border-color: #006400;
    background: radial-gradient(circle at 30% 30%, #98FB98 0%, #32CD32 30%, #228B22 100%);
}
.football-ball.blue-ball {
    border-color: #000080;
    background: radial-gradient(circle at 30% 30%, #ADD8E6 0%, #1E90FF 30%, #0000CD 100%);
}
.lottery-balls-container {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}
.lottery-ball-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.lottery-ball-label {
    font-size: 10px;
    color: #4a5568;
    text-align: center;
    font-weight: 600;
    background: #f8fafc;
    padding: 2px 6px;
    border-radius: 4px;
    min-height: 18px;
    border: 1px solid #e2e8f0;
    width: 100%;
}

/* ===== 开奖信息网格 ===== */
.new-lottery-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 10px;
    padding: 12px 10px;
    background: #f8f8fb;
    border-radius: 8px;
    border: 1px solid #e8e2f0;
}
.new-lottery-info-grid .full-width { grid-column: 1 / -1; }
.new-lottery-info-row {
    display: flex;
    align-items: center;
    gap: 4px;
}
.new-lottery-info-label {
    font-size: 12px;
    font-weight: 600;
    color: #4a5568;
    white-space: nowrap;
    flex: 0 0 auto;
}
.new-lottery-info-value {
    flex: 1;
    min-width: 50px;
    padding: 4px 6px;
    font-size: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background: #fff;
    text-align: center;
}

/* ===== 风险表 ===== */
.risk-table-container { width: 100% !important; margin: 0 !important; }
.risk-table-wrapper { display: block !important; }
.risk-table-toggle { display: none !important; }
.risk-table {
    width: 100% !important;
    max-height: 600px !important;
    display: block !important;
    border-radius: 8px !important;
    background: #fff !important;
}
.risk-table-header {
    background: linear-gradient(135deg, #2c5282, #2c5282);
    color: #fff;
    padding: 10px;
    font-weight: 600;
    text-align: center;
    font-size: 16px;
}
.risk-table-content { max-height: 500px; overflow-y: auto; }
.risk-table-row {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
}
.risk-table-cell {
    flex: 1;
    padding: 6px 4px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.risk-table-cell:first-child { flex: 0.8; text-align: left; padding-left: 8px; }
.risk-table-row.high-risk { background: #fce4ec !important; }
.risk-radio-item {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #4a5568;
}
.risk-radio-item.active { color: #2c5282; font-weight: 600; }
.risk-radio-item input { width: 16px; height: 16px; accent-color: #4299e1; }

/* ===== 飞单 ===== */
.feidan-display-box {
    min-height: 60px;
    max-height: 120px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
    background: #f8f8fb;
    padding: 8px;
    border: 1px solid #e8e2f0;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.6;
}
.feidan-scope-group { flex-wrap: wrap !important; gap: 6px 12px !important; font-size: 14px !important; }

/* ===== 汇总统计 ===== */
.table-summary-box {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px;
    background: #e8f4f8;
    border-radius: 8px;
    border: 1px solid #4299e1;
    margin-bottom: 12px;
}
.table-summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.table-summary-label { font-size: 12px; color: #4a5568; }
.table-summary-value { font-size: 15px; color: #2c5282; font-weight: bold; }

/* ===== 彩种筛选 ===== */
.lottery-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    padding: 6px 10px;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    align-items: center;
}
.lottery-filter-label { font-size: 14px !important; font-weight: 600; color: #4a5568; }
.lottery-filter-item {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
}
.lottery-filter-item input { width: 16px; height: 16px; accent-color: #4299e1; }
.lottery-filter-item.active { color: #2c5282; font-weight: 600; }

/* ===== 彩种选择 ===== */
.lottery-type-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 8px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    align-items: center;
}
.lottery-type-option {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-size: 15px;
}
.lottery-type-option input { width: 16px; height: 16px; accent-color: #4299e1; }

/* ===== 模态框 ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 16px;
    backdrop-filter: blur(4px);
}
.modal-overlay.active { display: flex; }
.modal-content {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}
.modal-header {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f7fafc;
    flex-shrink: 0;
}
.modal-title { font-size: 16px; font-weight: 700; color: #2d3748; }
.modal-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #718096;
    cursor: pointer;
    padding: 0 6px;
    line-height: 1;
    min-width: auto !important;
}
.modal-close-btn:hover { color: #e53e3e; }
.modal-body { flex: 1; padding: 16px; overflow-y: auto; }
.modal-body textarea {
    min-height: 150px;
    width: 100%;
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
}
.modal-footer {
    padding: 12px 16px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    background: #f7fafc;
    border-radius: 0 0 16px 16px;
    flex-shrink: 0;
}
.modal-footer .btn-group-left { margin-right: auto; display: flex; gap: 8px; }

/* ===== 下载对话框 ===== */
.download-dialog {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 92%;
    max-width: 400px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 10000;
    padding: 18px;
}
.download-dialog.active { display: block; }
.download-dialog-header {
    font-size: 16px;
    font-weight: 600;
    color: #2c5282;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}
.download-lottery-options, .download-options {
    margin-bottom: 12px;
    padding: 8px;
    background: #f8fafc;
    border-radius: 8px;
}
.download-lottery-group, .download-option-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.download-lottery-item, .download-option-item {
    display: flex;
    align-items: center;
    gap: 4px;
}
.download-lottery-item input, .download-option-item input {
    width: 16px;
    height: 16px;
    accent-color: #4299e1;
}
.download-dialog-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}

/* ===== 其他 ===== */
.submit-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.lianxiao-submit-group {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    flex-wrap: wrap;
}
.lianxiao-input-group {
    flex: 1;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.lianxiao-btn { flex: 0 0 auto; }
.input-group-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.remark-input-inline {
    flex: 1;
    min-width: 100px;
    padding: 6px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
}
.amount-remark-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: flex-end;
}
.amount-option-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}
.amount-option {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}
.amount-option input { width: 16px; height: 16px; accent-color: #4299e1; }
.small-amount-input { flex: 1; min-width: 80px; }

.red-color { color: #e53e3e !important; }
.green-color { color: #38a169 !important; }
.blue-color { color: #3182ce !important; }

/* ===== 状态提示 ===== */
.submit-status {
    margin-top: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    text-align: center;
    display: none;
}
.submit-error { background: #fed7d7; color: #e53e3e; border-left: 3px solid #c53030; display: block; }
.submit-success { background: #c6f6d5; color: #38a169; border-left: 3px solid #38a169; display: block; }
.error-message {
    color: #e53e3e;
    font-size: 13px;
    padding: 6px 10px;
    background: #fed7d7;
    border-radius: 6px;
    border-left: 3px solid #c53030;
    display: none;
}
.success-message {
    color: #38a169;
    font-size: 13px;
    padding: 6px 10px;
    background: #c6f6d5;
    border-radius: 6px;
    border-left: 3px solid #38a169;
    display: none;
}
.auto-success-message {
    color: #38a169;
    font-size: 13px;
    padding: 6px 10px;
    background: #c6f6d5;
    border-radius: 6px;
    border-left: 3px solid #38a169;
    display: none;
    text-align: center;
}

/* ===== 中奖状态 ===== */
.winning-yes { color: #e53e3e !important; font-weight: bold; }
.winning-no { color: #000 !important; font-weight: bold; }
.winning-not-open { color: #718096 !important; font-weight: bold; }
.banker-win { color: #38a169 !important; font-weight: bold; }
.banker-lose { color: #e53e3e !important; font-weight: bold; }

/* ===== 倍率配置 ===== */
.beilv-config-container {
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}
.beilv-tab-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
}
.beilv-tab-btn {
    padding: 4px 14px;
    background: #edf2f7;
    border: 1px solid #cbd5e0;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    border-bottom: none;
    min-width: 60px;
}
.beilv-tab-btn.active { background: #4299e1; color: #fff; border-color: #4299e1; }
.beilv-current-hint {
    font-size: 14px;
    font-weight: 600;
    padding: 6px 10px;
    background: #ebf8ff;
    border-radius: 6px;
    border-left: 4px solid #4299e1;
    margin: 8px 0;
}
.beilv-config-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;  /* 两列等宽 */
    gap: 0.5rem 1rem;
}
.beilv-config-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.beilv-config-label {
    flex: 0 0 90px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #4a5568;
    white-space: nowrap;
}
.beilv-config-input {
    flex: 1;
    padding: 0.35rem 0.6rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 0.8rem;
    background: #fff;
    min-width: 60px;
}
.beilv-config-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

/* ===== 上传区 ===== */
.upload-area {
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    padding: 20px 12px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s;
    background: #f8fafc;
}
.upload-area.dragover { border-color: #4299e1; background: #ebf8ff; }
.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 8px;
}
.preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #fff;
}
.preview-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
}
.preview-item .remove-preview {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
    min-width: auto !important;
    padding: 0 !important;
}

/* ===== 滚动条 ===== */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 3px; }
::-webkit-scrollbar-thumb { background: #cbd5e0; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ===== 工具类 ===== */
.hide { display: none !important; }
.text-center { text-align: center; }
.w-full { width: 100%; }
.mt-8 { margin-top: 8px; }
.mb-8 { margin-bottom: 8px; }
.gap-8 { gap: 8px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }

/* ===== 顶部标题栏 ===== */
.app-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: linear-gradient(135deg, #CEFFCE, #FFD306);
    color: #000;
    padding: 12px 16px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.app-header .header-icon { font-size: 22px; }
.app-header .header-title { text-shadow: 0 1px 4px rgba(0,0,0,0.3); }
.app-header .header-version {
    font-size: 10px;
    opacity: 0.7;
    background: rgba(255,255,255,0.15);
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 6px;
}

/* ===== 分组框按钮 ===== */
.group-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    background: #f1f4f8;
    border-radius: 10px;
    padding: 4px;
    border: 1px solid #e2e8f0;
}
.group-tab {
    flex: 1;
    padding: 8px 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #718096;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    user-select: none;
}
.group-tab.active {
    background: #fff;
    color: #0d47a1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.group-tab:active { transform: scale(0.96); }
.group-content { display: none; animation: fadeIn 0.25s ease; }
.group-content.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== 账号卡片 ===== */
.account-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px 18px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #e8ecf0;
}
.account-card .account-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4e9ff, #bbdefb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #0d47a1;
    margin-bottom: 12px;
    border: 3px solid #fff;
    box-shadow: 0 2px 12px rgba(13,71,161,0.15);
}
.account-card .account-name {
    font-size: 20px;
    font-weight: 700;
    color: #1a237e;
}
.account-card .account-status {
    display: inline-block;
    padding: 2px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
}
.account-card .account-status.status-normal { background: #e8f5e9; color: #2e7d32; }
.account-card .account-status.status-warning { background: #fff3e0; color: #e65100; }
.account-card .account-status.status-expired { background: #ffebee; color: #b71c1c; }
.account-card .account-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 14px;
    color: #4a5568;
    border-bottom: 1px solid #f0f2f5;
}
.account-card .account-info-row:last-child { border-bottom: none; }
.account-card .account-info-row .label {
    font-weight: 600;
    color: #2d3748;
    min-width: 70px;
}
.account-card .account-info-row .value {
    font-weight: 500;
    color: #1a237e;
}
.account-card .account-info-row .value.expire {
    color: #b71c1c;
    font-weight: 700;
}

/* ===== 账号按钮列表 ===== */
.account-btn-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}
.account-btn-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8ecf0;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.account-btn-item:active {
    transform: scale(0.97);
    background: #f8fafc;
}
.account-btn-item .btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.account-btn-item .btn-icon.blue { background: #e3f2fd; color: #0d47a1; }
.account-btn-item .btn-icon.green { background: #e8f5e9; color: #2e7d32; }
.account-btn-item .btn-icon.orange { background: #fff3e0; color: #e65100; }
.account-btn-item .btn-icon.purple { background: #f3e5f5; color: #6a1b9a; }
.account-btn-item .btn-icon.red { background: #ffebee; color: #c62828; }
.account-btn-item .btn-text {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: #2d3748;
}
.account-btn-item .btn-arrow { color: #a0aec0; font-size: 14px; }

/* ===== 弹窗消息 ===== */
.modal-message {
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    display: none;
}
.modal-message.error { background: #fed7d7; color: #c53030; border-left: 4px solid #e53e3e; display: block; }
.modal-message.success { background: #c6f6d5; color: #276749; border-left: 4px solid #38a169; display: block; }
.modal-message.info { background: #bee3f8; color: #2a69ac; border-left: 4px solid #3182ce; display: block; }

/* ===== 保存选项 ===== */
.save-options-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 6px 0;
}
.save-options-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #2d3748;
    cursor: pointer;
    padding: 6px 10px;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}
.save-options-group label input {
    width: 18px;
    height: 18px;
    accent-color: #0d47a1;
}
.save-options-group label .label-text { font-weight: 500; }
.save-options-group label .label-desc {
    font-size: 12px;
    color: #718096;
    font-weight: 400;
}

/* ===== 倍率配置弹窗 ===== */
.beilv-config-container-inline { padding: 8px 0; }
.beilv-config-container-inline .beilv-tab-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
    margin-bottom: 10px;
}
.beilv-config-container-inline .beilv-tab-btn {
    padding: 6px 16px;
    background: #edf2f7;
    border: 1px solid #cbd5e0;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    border-bottom: none;
    min-width: 60px;
}
.beilv-config-container-inline .beilv-tab-btn.active {
    background: #0d47a1;
    color: #fff;
    border-color: #0d47a1;
}
.beilv-config-container-inline .beilv-current-hint {
    font-size: 13px;
    font-weight: 600;
    padding: 6px 10px;
    background: #ebf8ff;
    border-radius: 6px;
    border-left: 4px solid #0d47a1;
    margin-bottom: 10px;
}
.beilv-config-container-inline .beilv-config-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 10px;
    max-height: 320px;
    overflow-y: auto;
}
.beilv-config-container-inline .beilv-config-row {
    display: flex;
    align-items: center;
    gap: 4px;
}
.beilv-config-container-inline .beilv-config-label {
    flex: 0 0 80px;
    font-size: 11px;
    font-weight: 600;
    color: #4a5568;
    white-space: nowrap;
}
.beilv-config-container-inline .beilv-config-input {
    flex: 1;
    padding: 4px 6px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 12px;
    background: #fff;
    min-width: 40px;
}
@media (max-width: 480px) {
    .beilv-config-container-inline .beilv-config-grid {
        grid-template-columns: 1fr;
    }
    .beilv-config-container-inline .beilv-config-label {
        flex: 0 0 70px;
        font-size: 11px;
    }
}

/* ===== 浅蓝色按钮 ===== */
.btn-light-blue {
    background: linear-gradient(135deg, #64b5f6, #1e88e5) !important;
    color: #fff !important;
    border: none !important;
    font-weight: 600 !important;
}
.btn-light-blue:active { transform: scale(0.96); }
.btn-light-blue h3 { color: #fff !important; }

/* ===== 隐藏不需要的元素 ===== */
.lianxiao-result { display: none !important; }
.balls-display-box { display: none !important; }
.shortcut-hint { display: none !important; }
.h5-header { display: none !important; }
#beijing-time { display: none !important; }
.download-dialog { display: none !important; }
.overlay { display: none !important; }

/* ===== 页面容器 ===== */
.page-container { padding: 0 0 20px 0; }
.tab-panel { display: none; padding: 10px 0 20px 0; background: transparent; min-height: 60vh; }
.tab-panel.active { display: block; }
.auto-section { min-width: 100% !important; padding: 12px !important; background: #fff !important; border-radius: 12px !important; box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important; }
.container { padding: 0 0 70px 0 !important; max-width: 100% !important; border-radius: 0 !important; box-shadow: none !important; background: #f5f7fa !important; }
.container > h1 { display: none !important; }
#kj_ifa { display: none !important; }
.h5-main-content { padding-bottom: 70px; }

/* ===== H5 手动添加布局优化（已整合） ===== */
.manual-content .group-container {
    padding: 0.5rem 0.6rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 0.6rem;
}
.manual-content .zodiac-button-group {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}
.manual-content .checkbox-button-item {
    padding: 0.5rem 0.2rem;
    font-size: 0.85rem;
    min-width: 0;
    border-radius: 8px;
    font-weight: bold;
}
.manual-content .lianxiao-submit-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
}
.manual-content .lianxiao-input-group {
    width: 100%;
}
.manual-content .lianxiao-btn {
    width: 100%;
    padding: 0.6rem 0;
}
/* 头尾行由 .cols-* 控制，不设固定列数 */
.manual-content .headtail-row {
    gap: 0.4rem;
}
.manual-content .headtail-row .checkbox-button-item {
    font-size: 0.7rem;
    padding: 0.3rem 0.1rem;
    min-height: 26px;
    font-weight: bold;
}
.manual-content .selection-buttons {
    justify-content: center;
}
.manual-content .selection-buttons .checkbox-button-item {
    font-size: 0.7rem;
    padding: 0.3rem 0.5rem;
    min-height: 26px;
    font-weight: bold;
}
.manual-content .amount-remark-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
}
.manual-content .amount-option-group {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}
.manual-content .small-amount-input {
    width: 100%;
}
.manual-content .center-submit-btn {
    width: 100%;
}

/* 适配更小屏幕 */
@media (max-width: 480px) {
    .manual-content .zodiac-button-group {
        grid-template-columns: repeat(3, 1fr);
    }
    /* 头尾行保持各自列数，但按钮缩小 */
    .manual-content .headtail-row .checkbox-button-item {
        font-size: 0.6rem;
        padding: 0.2rem 0.1rem;
        min-height: 22px;
    }
    .manual-content .checkbox-button-item {
        font-size: 0.75rem;
        padding: 0.25rem 0.1rem;
    }
    .manual-content .selection-buttons .checkbox-button-item {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
        min-height: 22px;
    }
    /* 头尾行列数保持不变，但确保不会溢出 */
    .headtail-row.cols-2 { grid-template-columns: repeat(2, 1fr); }
    .headtail-row.cols-3 { grid-template-columns: repeat(3, 1fr); }
    .headtail-row.cols-4 { grid-template-columns: repeat(4, 1fr); }
    .headtail-row.cols-5 { grid-template-columns: repeat(5, 1fr); }
    .zodiac-button-group.cols-4 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* 投注记录卡片自适应 */
.record-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 10px 12px;
    margin-bottom: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}
.record-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.group-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: linear-gradient(135deg, #f0f4ff, #e8eeff);
    border-radius: 10px;
    border: 1px solid #d0d8f0;
    margin-bottom: 8px;
    width: 100%;
    box-sizing: border-box;
}

.group-remark-input {
    width: 120px;
    padding: 4px 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
}
.group-lottery-select {
    padding: 4px 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
}
.group-stat {
    font-size: 0.85rem;
}
.group-winlose {
    font-weight: bold;
}

.toggle-group-btn {
    padding: 4px 12px;
    font-size: 0.85rem;
    background: #0d47a1;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.group-cards {
    padding-left: 4px;
    width: 100%;
}

.record-card .labels-cell {
    flex: 1;
    font-weight: bold;
    color: #2c5282;
    cursor: pointer;
    text-decoration: underline dotted #999;
    word-break: break-word;
}

.record-card .winning-status {
    font-weight: bold;
}
.record-card .winning-yes { color: #e53e3e; }
.record-card .winning-no { color: #000; }
.record-card .winning-not-open { color: #718096; }

/* 移动端适配 */
@media (max-width: 480px) {
    .group-header {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    .group-header .group-stat {
        font-size: 0.75rem;
    }
    .group-remark-input {
        width: 100%;
    }
    .search-group input {
        flex: 1 1 100% !important;
        min-width: 100% !important;
    }
    .search-group button {
        flex: 1 1 auto;
    }
    .search-group #xc_clearAllRecordsBtn {
        margin-left: 0 !important;
    }
}

/* 风险表自适应优化 */
.risk-table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.risk-table-content {
    width: 100%;
    height: auto !important;      /* 高度自适应 */
    max-height: none !important;  /* 移除最大高度限制 */
    overflow-y: visible;          /* 不滚动，全部展示 */
    font-size: 0.9rem;
}
.risk-table-header-row,
.risk-table-row {
    display: flex;
    width: 100%;
    box-sizing: border-box;
}
.risk-table-cell {
    flex: 1;
    padding: 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.risk-table-cell:first-child {
    flex: 0.8;
    min-width: 60px;
}
.high-risk {
    background: #fce4ec !important;
}

/* 飞单上报按钮均分 */
.feidan-input-card .btn-feidan,
.feidan-input-card .btn-secondary {
    flex: 1;
    text-align: center;
    padding: 6px 0;
    font-size: 0.9rem;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .risk-table-cell {
        font-size: 0.75rem;
        padding: 0 2px;
    }
    .risk-table-cell:first-child {
        flex: 0.6;
        min-width: 40px;
    }
    .feidan-input-card .btn-feidan,
    .feidan-input-card .btn-secondary {
        font-size: 0.8rem;
        padding: 5px 0;
    }
}

/* ===== 我的账户 - H5科技感卡片 ===== */
.account-card-modern {
    background: linear-gradient(145deg, #d3a4ff, #80FFFF);
    border-radius: 16px;
    padding: 0;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(13, 71, 161, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #000;
    overflow: hidden;
}
.account-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.1);
}
.account-card-icon {
    font-size: 22px;
}
.account-card-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.account-card-body {
    padding: 16px 20px 20px 20px;
}
.account-info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.account-info-row:last-child {
    border-bottom: none;
}
.info-label {
    font-size: 14px;
    opacity: 0.8;
    font-weight: 500;
}
.info-value {
    font-size: 15px;
    font-weight: 600;
}
.info-value.expire {
    color: #ffd54f;
}
.info-value.status-normal {
    color: #81c784;
}
.info-value.status-warning {
    color: #ffb74d;
}
.info-value.status-expired {
    color: #ef9a9a;
}

/* 功能按钮列表 */
.account-btn-list-modern {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.account-btn-item-modern {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8ecf0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: all 0.2s ease;
    cursor: pointer;
}
.account-btn-item-modern:active {
    transform: scale(0.97);
    background: #f8fafc;
}
.btn-icon-modern {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    background: #e3f2fd;
    color: #0d47a1;
}
.btn-text-modern {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: #2d3748;
}
.btn-arrow-modern {
    color: #a0aec0;
    font-size: 14px;
}

/* 弹窗按钮同行自适应 */
.modal-footer .btn {
    font-weight: 600;
    padding: 4px 10px;
    font-size: 1.1rem;
    flex: 1;
    text-align: center;
    white-space: nowrap;
}
.modal-footer .btn-group-row {
    display: flex;
    gap: 6px;
    width: 100%;
    justify-content: center;
}
@media (max-width: 480px) {
    .modal-footer .btn {
        font-size: 0.95rem;
        padding: 4px 6px;
    }
}

/* ===== 底部导航图标彩色立体 ===== */
.h5-nav-item i {
    font-size: 22px;
    margin-bottom: 2px;
    transition: transform 0.2s ease;
    /* 立体效果：文本阴影模拟立体感 */
    text-shadow: 
        0 2px 4px rgba(0,0,0,0.2),
        0 4px 8px rgba(0,0,0,0.1);
}

/* 每个图标独立渐变色（使用 background-clip 实现文字渐变） */
.h5-nav-item[data-target="panel-auto"] i {
    background: linear-gradient(135deg, #2196F3, #0D47A1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 8px rgba(33, 150, 243, 0.4);
}

.h5-nav-item[data-target="panel-record"] i {
    background: linear-gradient(135deg, #4CAF50, #1B5E20);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
}

.h5-nav-item[data-target="panel-risk"] i {
    background: linear-gradient(135deg, #FF9800, #E65100);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 8px rgba(255, 152, 0, 0.4);
}

.h5-nav-item[data-target="panel-lottery"] i {
    background: linear-gradient(135deg, #F44336, #B71C1C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 8px rgba(244, 67, 54, 0.4);
}

.h5-nav-item[data-target="panel-account"] i {
    background: linear-gradient(135deg, #9C27B0, #4A148C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 8px rgba(156, 39, 176, 0.4);
}

/* 激活状态图标放大并增加光晕 */
.h5-nav-item.active i {
    transform: scale(1.15);
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.3));
}
/* ===== 解析结果框样式（确保与PC版一致） ===== */
#parseResultDisplay {
    font-size: 0.9rem;
    line-height: 1.5;
}
#parseResultDisplay > div {
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 0.3rem;
}
#parseResultDisplay .parse-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-weight: bold;
    color: #2c5282;
}
#parseResultDisplay .parse-error {
    color: red;
    text-decoration: underline wavy red;
    background-color: yellow;
    padding: 0 4px;
}
#parseResultDisplay .parse-badge {
    background: black;
    color: yellow;
    padding: 0 6px;
    border-radius: 3px;
    font-size: 0.9rem;
    font-weight: bold;
}
#parseResultDisplay .parse-detail {
    padding: 0.2rem 0 0.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    flex-wrap: wrap;
}
#parseResultTotal {
    font-weight: bold;
    font-size: 1.1rem;
    color: #d64f44;
    text-align: right;
    padding: 0.4rem;
    background: #e8f4f8;
    border-radius: 6px;
    border: 1px solid #cbd5e0;
    margin-top: 0.3rem;
}