/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==================== 圈子功能样式 ==================== */

/* 圈子顶部 */
.circle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 10;
}

.circle-tabs {
    display: flex;
    gap: 20px;
}

.circle-tab {
    font-size: 15px;
    color: #666;
    cursor: pointer;
    padding: 4px 0;
    position: relative;
}

.circle-tab.active {
    color: #667eea;
    font-weight: bold;
}

.circle-tab.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #667eea;
    border-radius: 2px;
}

.circle-publish-btn {
    padding: 5px 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 15px;
    font-size: 13px;
    cursor: pointer;
}

/* 圈子列表 */
.circle-list {
    background: #f5f5f5;
}

.circle-item {
    background: #fff;
    padding: 12px 15px;
    margin-bottom: 8px;
}

.circle-item-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.circle-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    flex-shrink: 0;
}

.circle-user-info {
    flex: 1;
    margin-left: 10px;
}

.circle-nickname {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

.circle-time {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.circle-follow-btn {
    padding: 4px 12px;
    font-size: 12px;
    border: 1px solid #667eea;
    color: #667eea;
    background: #fff;
    border-radius: 15px;
    cursor: pointer;
    flex-shrink: 0;
}

.circle-follow-btn.followed {
    border-color: #ccc;
    color: #999;
    background: #f5f5f5;
}

.circle-content {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 8px;
    word-break: break-word;
}

.circle-images {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.circle-img {
    width: calc(33.33% - 4px);
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
}

.circle-actions {
    display: flex;
    gap: 20px;
    padding-top: 8px;
    border-top: 1px solid #f5f5f5;
}

.circle-action {
    font-size: 13px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.circle-action .liked {
    color: #ff4444;
}

.circle-empty {
    text-align: center;
    padding: 40px 15px;
    color: #999;
    font-size: 14px;
}

.circle-load-more {
    text-align: center;
    padding: 15px;
}

.load-more-btn {
    padding: 8px 30px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    color: #666;
    cursor: pointer;
    font-size: 13px;
}

/* 用户主页 */
.circle-user-home {
    padding: 0;
}

.circle-user-header {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    background: #fff;
    margin-bottom: 8px;
}

.circle-user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.circle-user-meta {
    flex: 1;
    margin-left: 12px;
}

.circle-user-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.circle-user-signature {
    font-size: 13px;
    color: #999;
    margin: 4px 0 8px;
}

.circle-user-stats {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #666;
}

.circle-user-stats span {
    color: #333;
}

.circle-user-posts {
    background: #fff;
    padding: 10px 15px;
}

/* ==================== 圈子功能样式 END ==================== */

/* ==================== 竞足模块样式 ==================== */

/* 子tab导航 */
.jingzu-subtabs {
    display: flex;
    background: #152f52;
    position: sticky;
    top: 0;
    z-index: 10;
}
.jingzu-subtab {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}
.jingzu-subtab.active {
    color: #ffd01e;
    font-weight: bold;
}
.jingzu-subtab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 3px;
    background: #ffd01e;
    border-radius: 2px;
}

/* 竞足工具条（我的方案入口） */
.jingzu-toolbar {
    display: flex;
    justify-content: flex-end;
    padding: 8px 12px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}
.jingzu-myscheme-link {
    font-size: 13px;
    color: #667eea;
    text-decoration: none;
}

/* 比赛列表 */
.jingzu-match-list {
    padding-bottom: 180px;
}
.jingzu-date-group {
    margin-bottom: 5px;
    background: #fff;
}
.jingzu-date-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f8f8f8;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}
.jingzu-date-header .arrow-icon {
    transition: transform 0.3s;
    font-size: 12px;
    color: #999;
}
.jingzu-date-group.collapsed .jingzu-date-content {
    display: none;
}
.jingzu-date-group.collapsed .arrow-icon {
    transform: rotate(-90deg);
}
.jingzu-date-content {
    padding: 0;
}

/* 单场比赛 */
.jingzu-match-item {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
    padding: 10px;
    background: #fff;
}
.jingzu-match-left {
    width: 70px;
    flex-shrink: 0;
    text-align: center;
    border-right: 1px solid #eee;
    padding-right: 8px;
}
.jingzu-league {
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 4px;
}
.jingzu-lottery {
    font-size: 12px;
    color: #666;
    margin-bottom: 2px;
}
.jingzu-time {
    font-size: 12px;
    color: #999;
}
.jingzu-dan {
    display: inline-block;
    background: #ff6b6b;
    color: #fff;
    font-size: 10px;
    padding: 1px 4px;
    border-radius: 2px;
    margin-top: 2px;
}

/* 单关标记 */
.jingzu-single-mark {
    display: inline-block;
    background: #ff9800;
    color: #fff;
    font-size: 10px;
    padding: 1px 4px;
    border-radius: 2px;
    margin-top: 2px;
}

/* 胆按钮 */
.jingzu-dan-btn {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 26px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    color: #999;
    background: #f5f5f5;
    cursor: pointer;
    margin-top: 4px;
    user-select: none;
    transition: all 0.2s;
}
.jingzu-dan-btn:hover:not(.disabled) {
    border-color: #ff6b6b;
    color: #ff6b6b;
}
.jingzu-dan-btn.active {
    background: #ff6b6b;
    border-color: #ff6b6b;
    color: #fff;
    font-weight: bold;
}
.jingzu-dan-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.jingzu-match-right {
    flex: 1;
    min-width: 0; /* 允许在窄屏收缩，避免赔率表撑破视口 */
    padding-left: 10px;
    overflow-x: auto;
}
.jingzu-teams {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: bold;
    gap: 8px;
}
.jingzu-home {
    font-weight: bold;
    color: #333;
}
.jingzu-vs {
    color: #999;
    font-size: 12px;
    padding: 0 8px;
}
.jingzu-away {
    font-weight: bold;
    color: #333;
}

/* 赔率表格 */
.jingzu-odds-table {
    overflow-x: auto;
}
.jingzu-odds-table .odds-label,
.bf-cell .odds-label {
    display: block;
}
.jingzu-odds-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.jingzu-odds-table td {
    border: 1px solid #eee;
    text-align: center;
    padding: 6px 4px;
    min-width: 50px;
}
.tds, .tdf, .tds-zjq, .tds-bqc, .tds-bf {
    background: #f8f8f8;
    color: #666;
    font-size: 11px;
    width: 40px;
}
.dan-mark {
    color: #ff6b6b;
    font-size: 10px;
}
.odds-cell {
    cursor: pointer;
    transition: all 0.2s;
}
.odds-cell:hover {
    background: #fff8e1;
}
.odds-cell.selected {
    background: #152f52 !important;
    color: #fff !important;
}
.odds-cell.selected .odds-label,
.odds-cell.selected .odds-value {
    color: #fff;
}
.odds-label {
    font-size: 11px;
    color: #666;
    margin-bottom: 2px;
}
.odds-value {
    font-size: 13px;
    font-weight: bold;
}
.odds-value.win {
    color: #e74c3c;
}
.odds-value.equal {
    color: #27ae60;
}
.odds-value.lose {
    color: #3498db;
}
.odds-cell.disabled {
    cursor: not-allowed;
    opacity: 0.5;
    background: #fafafa;
}
.odds-cell.disabled:hover {
    background: #fafafa;
}

/* 混合过关主区(赔率表 + 其他玩法按钮) */
.jingzu-main-row {
    display: flex;
    align-items: stretch;
    gap: 6px;
}
.jingzu-main-row .jingzu-odds-table {
    flex: 1;
    min-width: 0;
}
/* 其他玩法按钮 */
.jingzu-other-btn {
    flex-shrink: 0;
    width: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
    background: #f8f8f8;
    cursor: pointer;
    line-height: 1.3;
    user-select: none;
    transition: all 0.2s;
}
.jingzu-other-btn:hover {
    border-color: #152f52;
    color: #152f52;
}
.jingzu-other-btn.active {
    border-color: #152f52;
    color: #152f52;
    background: #eaf0f8;
    font-weight: bold;
}
.jingzu-other-btn .other-arrow {
    font-size: 10px;
    margin-top: 2px;
}
/* 其他玩法展开面板 */
.jingzu-other-panel {
    margin-top: 8px;
    padding: 8px;
    background: #f7f9fc;
    border: 1px solid #e5eaf2;
    border-radius: 4px;
}
.jingzu-other-block {
    margin-bottom: 8px;
}
.jingzu-other-block:last-child {
    margin-bottom: 0;
}
.jingzu-other-block .other-title {
    font-size: 12px;
    color: #152f52;
    font-weight: bold;
    margin-bottom: 4px;
    padding-left: 2px;
    border-left: 3px solid #ffd01e;
}
.empty-cell {
    font-size: 12px;
    color: #999;
    padding: 6px;
}

/* 完整比分网格（其他玩法 31 个比分） */
.jingzu-bf-full { }
.bf-group {
    display: flex;
    align-items: stretch;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 4px;
}
.bf-group:last-child { margin-bottom: 0; }
.bf-glabel {
    flex-shrink: 0;
    width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f7f7;
    font-size: 12px;
    font-weight: bold;
}
.bf-glabel.win { color: #e74c3c; }
.bf-glabel.equal { color: #27ae60; }
.bf-glabel.lose { color: #3498db; }
.bf-cells {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
}
.bf-cell {
    flex: 0 0 20%;
    max-width: 20%;
    box-sizing: border-box;
    border-left: 1px solid #f0f0f0;
    border-top: 1px solid #f5f5f5;
    padding: 5px 1px;
    text-align: center;
}
.bf-cell .odds-label { font-size: 11px; }
.bf-cell .odds-value { font-size: 12px; }

/* 比分子tab：9个 + 展开全部按钮 */
.bf-subtab-row {
    display: flex;
    align-items: stretch;
}
.bf-subtab-row .bf-c9 {
    flex: 1;
    min-width: 0;
}
/* 子tab里9个比分表允许收缩，保证「展开全部」按钮始终不被挤出 */
.bf-subtab-row .jingzu-odds-table td {
    min-width: 0;
}
.bf-expand-btn {
    flex-shrink: 0;
    width: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 12px;
    line-height: 1.3;
    color: #667eea;
    background: #f7f8fc;
    border: 1px solid #eef0f7;
    border-radius: 4px;
    margin-left: 4px;
    cursor: pointer;
    user-select: none;
}
.bf-expand-btn.loading { color: #999; }
.bf-expand-btn.block {
    width: auto;
    margin: 6px 0 0;
    padding: 6px 0;
}
.bf-expand-btn.active { color: #e74c3c; }

/* 底部操作栏（购彩篮，两行） */
.jingzu-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 750px;
    margin: 0 auto;
    background: #fff;
    border-top: 1px solid #ddd;
    padding: 8px 12px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.12);
    z-index: 100;
}
/* 过关方式选择条 */
.jingzu-pass-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 6px;
    border-bottom: 1px dashed #eee;
    white-space: nowrap;
}
.jingzu-pass-bar .pass-label {
    font-size: 12px;
    color: #999;
    flex-shrink: 0;
}
.jingzu-pass-bar .pass-chip {
    flex-shrink: 0;
    padding: 3px 12px;
    border: 1px solid #ddd;
    border-radius: 14px;
    font-size: 12px;
    color: #666;
    background: #fff;
    cursor: pointer;
    user-select: none;
}
.jingzu-pass-bar .pass-chip.active {
    border-color: #e74c3c;
    color: #fff;
    background: #e74c3c;
    font-weight: bold;
}
.jingzu-bottom-row1 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #333;
    margin-bottom: 6px;
}
.jingzu-bottom-row2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.jingzu-selected {
    color: #333;
    font-weight: bold;
}
.jingzu-selected span {
    color: #e74c3c;
    font-size: 18px;
    margin: 0 2px;
}
.jingzu-dan-tag {
    background: #ff6b6b;
    color: #fff;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 3px;
}
.jingzu-note {
    color: #666;
    font-size: 12px;
}
.jingzu-note span {
    color: #e74c3c;
    font-weight: bold;
}
.jingzu-bottom-bet {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    margin-left: auto;
}
.jingzu-bottom-bet input {
    width: 46px;
    padding: 4px 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 13px;
}
.jingzu-clear-btn {
    padding: 5px 12px;
    background: #fff;
    border: 1px solid #e74c3c;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    color: #e74c3c;
}
.jingzu-result {
    flex: 1;
    font-size: 12px;
    color: #666;
    line-height: 1.7;
    display: flex;
    flex-direction: column;
}
.jingzu-money {
    color: #e74c3c;
    font-weight: bold;
    margin: 0 3px;
}
.jingzu-bonus {
    color: #ff6b00;
}
.jingzu-save-btn {
    flex-shrink: 0;
    padding: 10px 22px;
    background: linear-gradient(135deg, #e74c3c, #ff6b00);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
}

/* ===== 任九/14场 底部悬浮拆单栏（对齐旧项目 utool） ===== */
.split-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    border-top: 1px solid #999;
    display: flex;
    align-items: stretch;
    z-index: 200;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
}
.split-footer .sf-clear {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    font-size: 18px;
    cursor: pointer;
    user-select: none;
}
.split-footer .sf-clear:active {
    background: #f5f5f5;
}
.split-footer .sf-tips {
    flex: 1;
    min-width: 0;
    align-self: center;      /* 垂直居中；不用 flex，避免文字被拆成多个 flex 项导致乱换行 */
    text-align: center;
    font-size: 12px;
    color: #333;
    padding: 8px 4px;
    line-height: 1.4;
    word-break: keep-all;    /* 金额较长时整体换行到第二行，不截断 */
}
.split-footer .sf-tips .nums {
    color: #e4393c;
    font-weight: bold;
    margin: 0 2px;
}
.split-footer .sf-btn {
    flex-shrink: 0;
    width: 96px;
    border: none;
    background: #999;
    color: #fff;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}
.split-footer .sf-btn.active {
    background: #e4393c;
}
/* 列表底部留白，避免被悬浮栏遮挡 */
.match-list.has-split-footer {
    padding-bottom: 70px;
}
@media (max-width: 768px) {
    .split-footer .sf-tips {
        font-size: 11px;
    }
    .split-footer .sf-btn {
        width: 84px;
        font-size: 16px;
    }
    .split-footer .sf-clear {
        width: 38px;
        font-size: 16px;
    }
}
@media (max-width: 360px) {
    .split-footer .sf-tips {
        font-size: 10px;
        letter-spacing: -0.2px;
    }
    .split-footer .sf-btn {
        width: 76px;
        font-size: 15px;
    }
}

/* 场次上限提示 toast */
.jingzu-toast {
    position: fixed;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(45, 20, 20, 0.86);
    color: #fff;
    padding: 20px 26px;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
    max-width: 60%;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
}
.jingzu-toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.jingzu-toast-icon {
    width: 30px;
    height: 30px;
    line-height: 30px;
    margin: 0 auto 8px;
    border: 2px solid #fff;
    border-radius: 50%;
    font-weight: bold;
    font-size: 18px;
}

/* 空状态 */
.empty-tip {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
}

/* ==================== 竞足模块样式 END ==================== */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.4;
}

/* 主容器 */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f5f5f5;
}

/* 顶部 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: bold;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.header-title {
    font-size: 14px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.user-nickname {
    font-size: 12px;
    color: white;
}

.user-menu {
    position: relative;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    min-width: 120px;
    z-index: 1000;
    display: none;
}

.user-dropdown.show {
    display: block;
}

.user-dropdown-item {
    padding: 10px 15px;
    cursor: pointer;
    color: #333;
    font-size: 14px;
}

.user-dropdown-item:hover {
    background: #f5f5f5;
}

.user-dropdown-item:first-child {
    border-radius: 8px 8px 0 0;
}

.user-dropdown-item:last-child {
    border-radius: 0 0 8px 8px;
}

/* 个人中心模块 */
.profile-section {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.profile-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    position: relative;
    cursor: pointer;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.profile-avatar-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 24px;
    background: #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    cursor: pointer;
}

.profile-info {
    flex: 1;
}

.profile-nickname {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.profile-vip {
    font-size: 12px;
    color: #ff9800;
}

.profile-form {
    padding: 15px 0;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input:disabled {
    background: #f5f5f5;
    color: #999;
}

.profile-btn {
    width: 100%;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px;
    font-size: 15px;
    cursor: pointer;
    margin-top: 10px;
}

.profile-btn:hover {
    background: #764ba2;
}

.logout-btn {
    width: 100%;
    background: #f56c6c;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px;
    font-size: 15px;
    cursor: pointer;
    margin-top: 15px;
}

.logout-btn:hover {
    background: #f78989;
}

.send-code-btn {
    width: 120px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-code-btn:hover {
    background: #764ba2;
}

.send-code-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Tab 导航 */
.tab-nav {
    display: flex;
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
    flex-shrink: 0;
}

.tab-item {
    flex: 1;
    text-align: center;
    padding: 8px 5px;
    cursor: pointer;
    font-size: 12px;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}

.tab-item:hover {
    color: #667eea;
    background-color: #f8f8f8;
}

.tab-item.active {
    color: #667eea;
    border-bottom-color: #667eea;
    font-weight: 600;
}

/* 主内容 */
.main-content {
    flex: 1;
    padding: 0;
}

/* 模块卡片 */
.module-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.module-card.full-card {
    margin: 0;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    background: #f5f5f5;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-container {
    text-align: center;
    padding: 20px 0;
}

.loading-container p {
    margin-top: 10px;
    color: #999;
    font-size: 12px;
}

/* 页面头部 */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 10px;
    font-size: 12px;
    border-bottom: 1px solid #ddd;
    background: #f8f8f8;
    flex-shrink: 0;
}

.page-header-left,
.page-header-right {
    display: flex;
    align-items: center;
    gap: 3px;
}

.page-header .label {
    color: #333;
    font-size: 12px;
}

.page-header .count,
.page-header .price {
    color: #ff0000;
    font-weight: bold;
    font-size: 14px;
}

/* 期数选择 */
.issue-selector {
    background: #fff;
    border-bottom: 1px solid #ddd;
    padding: 3px 0;
    overflow-x: auto;
    flex-shrink: 0;
}

.issue-scroll {
    white-space: nowrap;
    padding: 0 10px;
}

.issue-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 3px 10px;
    margin-right: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: #fff;
    min-width: 45px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 11px;
}

.issue-item.active {
    background: #ff0000;
    border-color: #ff0000;
}

.issue-item .issue-week {
    font-size: 10px;
    color: #666;
    margin-bottom: 0;
}

.issue-item.active .issue-week {
    color: #fff;
}

.issue-item .issue-id {
    font-size: 11px;
    font-weight: bold;
    color: #333;
}

.issue-item.active .issue-id {
    color: #fff;
}

/* 表格标题行 */
.table-header-row {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding: 4px 8px;
    background: #e9e9e9;
    font-weight: bold;
    font-size: 11px;
    color: #333;
    position: sticky;
    top: 0;
    z-index: 10;
    flex-shrink: 0;
}

.table-header-cell {
    text-align: center;
    flex-shrink: 0;
}

.table-header-cell.col-odds {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 195px;
    padding: 0 5px;
    gap: 15px;
}

.table-header-cell.col-odds span {
    text-align: center;
    width: 55px;
}

.table-header-cell.col-select {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 110px;
    padding: 0 5px;
    gap: 15px;
}

.table-header-cell.col-select span {
    text-align: center;
    width: 26px;
}

/* 比赛列表 - 表格样式 */
.match-list {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 0;
    background: #fff;
}

.match-item {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding: 3px 8px;
    background: #fff;
    transition: all 0.2s;
    gap: 0;
}

.match-item.checked {
    background: #fff3e0;
}

.match-item:nth-child(even) {
    background: #fafafa;
}

.match-item:nth-child(even).checked {
    background: #fff3e0;
}

/* 各列宽度 */
.col-index {
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.col-league {
    width: 60px;
    text-align: center;
    flex-shrink: 0;
}

.col-time {
    width: 90px;
    text-align: center;
    flex-shrink: 0;
}

.col-teams {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    padding: 0 10px;
}

.col-odds {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 195px;
    flex-shrink: 0;
    padding: 0 5px;
    gap: 15px;
}

.col-odds .odds-item {
    flex: 0 0 55px;
    text-align: center;
}

.col-select {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 195px;
    flex-shrink: 0;
    padding: 0 5px;
    gap: 15px;
}

.col-select .choose-btn {
    flex: 0 0 55px;
}

.col-all {
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.col-dan {
    width: 45px;
    text-align: center;
    flex-shrink: 0;
}

/* 比赛头部信息 */
.match-header {
    display: flex;
    align-items: center;
    gap: 0;
    min-width: auto;
    flex-shrink: 0;
}

.match-index {
    font-size: 11px;
    font-weight: bold;
    color: #333;
}

.match-league {
    font-size: 10px;
    color: #666;
    background: #f0f0f0;
    padding: 1px 3px;
    border-radius: 2px;
    white-space: nowrap;
}

/* 比赛主体信息 */
.match-body {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex: 1;
    min-width: 0;
}

.match-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
}

.team-name {
    font-size: 11px;
    white-space: nowrap;
}

.vs {
    font-size: 10px;
    color: #999;
}

.match-time {
    font-size: 10px;
    color: #666;
    white-space: nowrap;
}

/* 赔率显示 */
.match-odds {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    margin: 0;
    min-width: auto;
    flex-shrink: 0;
}

.odds-item {
    text-align: center;
    font-size: 10px;
    width: 55px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.odds-label {
    display: none;
}

.odds-value {
    font-weight: 500;
    color: #333;
    font-size: 10px;
}

/* 全选按钮 */
.all-select-btn {
    width: 26px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid #ddd;
    font-size: 11px;
    font-weight: 500;
    border-radius: 2px;
    background: #f5f5f5;
    cursor: pointer;
    transition: all 0.2s;
}

.all-select-btn.checked {
    background-color: #ff9800;
    color: #fff;
    border-color: #ff9800;
}

/* 选择按钮 */
.match-footer {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}

.choose-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.choose-btn {
    width: 55px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid #ddd;
    font-size: 12px;
    font-weight: 500;
    border-radius: 2px;
    background: #f5f5f5;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.choose-btn.checked {
    background-color: #ff0000;
    color: #fff;
    border-color: #ff0000;
}

.dan-select {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 500;
    color: #333;
    padding: 2px 3px;
    background: transparent;
    border-radius: 0;
    cursor: pointer;
}

.dan-select.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.dan-select input {
    margin-right: 0;
    transform: scale(1);
}

/* 页面底部 */
.page-footer {
    padding: 6px 10px;
    background: #fff;
    border-top: 1px solid #ddd;
    flex-shrink: 0;
}

.split-btn,
.submit-btn {
    width: 100%;
    background: #ff9800;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.split-btn:hover,
.submit-btn:hover {
    background: #f57c00;
}

.submit-btn {
    background: #ff0000;
}

.submit-btn:hover {
    background: #cc0000;
}

/* Tab 内容 */
.tab-content {
    display: none;
    height: 100%;
}

.tab-content.active {
    display: flex;
    flex-direction: column;
}

/* 弹窗样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
}

.modal-title {
    font-size: 15px;
    font-weight: bold;
}

.modal-close {
    font-size: 22px;
    cursor: pointer;
    color: #999;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0 15px 10px;
}

.result-header {
    padding-top: 10px;
    margin-bottom: 10px;
}

.result-info {
    font-size: 13px;
}

.result-table {
    border: 1px solid #ddd;
}

.table-header {
    background: #f5f5f5;
    position: sticky;
    top: 0;
    z-index: 10;
}

.table-row {
    display: flex;
    border-bottom: 1px solid #eee;
}

.header-row {
    font-weight: 500;
    background: #f5f5f5;
    font-size: 12px;
    padding: 4px 0;
}

.table-cell {
    flex: 1 1 0;
    min-width: 0; /* 允许收缩，保证14列在窄屏一屏显示 */
    padding: 4px 1px;
    text-align: center;
    font-size: 11px;
    border-right: 1px solid #eee;
    overflow: hidden;
}

.table-cell:last-child {
    border-right: none;
}

.row-num-cell {
    flex: 0 0 32px !important;
    min-width: 32px !important;
    font-weight: bold;
    color: #667eea;
    background: #f0f0f5;
}

.block-label {
    width: 100%;
    text-align: center;
    padding: 3px;
    background: #f0f0f0;
    font-size: 10px;
    font-weight: 500;
}

.table-body .table-row:nth-child(odd) {
    background: #fafafa;
}

.modal-footer {
    padding: 8px 15px;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: center;
}

.copy-btn {
    background: #667eea;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 8px 25px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: #764ba2;
}

/* 底部 */
.footer {
    background-color: #f8f8f8;
    padding: 8px;
    text-align: center;
    color: #999;
    font-size: 10px;
    border-top: 1px solid #ddd;
    flex-shrink: 0;
}

.footer p {
    margin: 2px 0;
}

.footer a {
    color: #666;
    text-decoration: none;
}

.footer a:hover {
    color: #667eea;
}

/* 使用须知（合规免责声明） */
.usage-notice {
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
    color: #8a8a8a;
    font-size: 11px;
    line-height: 1.7;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}
.usage-notice .un-title {
    text-align: center;
    font-size: 13px;
    font-weight: bold;
    color: #666;
    margin-bottom: 8px;
}
.usage-notice p {
    margin: 4px 0;
}
.usage-notice .un-sub {
    margin-top: 10px;
    font-weight: bold;
    color: #777;
}
.usage-notice .un-warn {
    margin-top: 10px;
    padding: 8px 10px;
    background: #fff6f6;
    border: 1px solid #ffdcdc;
    border-radius: 4px;
    color: #c0392b;
    font-weight: 500;
}

/* ========== 卡片式布局（小程序样式） ========== */
.field-wrap {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 10px;
    background: #f5f5f5;
}

.field {
    border-bottom: 1px solid #ddd;
    padding: 6px 10px;
    background: #fff;
    transition: all 0.3s;
    margin-bottom: 3px;
}

.field.checked {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background: #f9f9f9;
}

.field-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 4px;
    border-bottom: 1px solid #eee;
    margin-bottom: 4px;
}

.field-header .field-index {
    font-size: 12px;
    font-weight: bold;
    color: #333;
    background: #fff;
    padding: 1px 6px;
    border-radius: 3px;
    border: 1px solid #e0e0e0;
}

.field-header .field-league {
    font-size: 10px;
    color: #666;
    background: #f0f0f0;
    padding: 1px 4px;
    border-radius: 3px;
}

.field-header .field-time {
    font-size: 10px;
    color: #999;
    white-space: nowrap;
}

.field-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 6px;
}

.field-body .match-info {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.field-body .match-info .team-name {
    margin: 0 8px;
}

.field-body .match-info .vs {
    font-size: 10px;
    color: #999;
    padding: 0 3px;
}

.field-body .match-time {
    text-align: center;
    font-size: 10px;
    color: #666;
}

.field-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 4px;
}

/* 赔率+按钮组 - 手机端 */
.field-footer .choose-buttons {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    align-items: center;
}

.field-footer .odds-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.field-footer .odds-row .odds-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50px;
    text-align: center;
}

.field-footer .odds-label {
    color: #999;
    font-size: 10px;
    line-height: 1;
}

.field-footer .odds-value {
    color: #333;
    font-weight: bold;
    font-size: 11px;
    line-height: 1.2;
}

.field-footer .choose-buttons .check-btn {
    width: 50px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid #eaeaea;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.field-footer .choose-buttons .check-btn.checked {
    background-color: #ff0000;
    color: #fff;
    border-color: #ff0000;
}

.field-footer .dan-select {
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: bold;
    color: #333;
    padding: 5px 10px;
    background: #f0f0f0;
    border-radius: 4px;
    cursor: pointer;
    gap: 5px;
}

.field-footer .dan-select.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.field-footer .dan-select input[type="checkbox"] {
    transform: scale(1.2);
    cursor: pointer;
}

/* 底部操作栏 */
.footer-buttons {
    display: flex;
    gap: 10px;
}

.footer-buttons .split-btn {
    flex: 1;
    background: #ff9800;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 12px;
    font-size: 16px;
    cursor: pointer;
}

.footer-buttons .split-btn:active {
    background: #f57c00;
}

.footer-buttons .submit-btn {
    flex: 1;
    background: #ff0000;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 12px;
    font-size: 16px;
    cursor: pointer;
}

.footer-buttons .submit-btn:active {
    background: #cc0000;
}

/* ========== 手机端卡片布局 ========== */
@media (max-width: 768px) {
    .app-container {
        max-width: 100%;
        height: 100vh;
    }

    .header {
        font-size: 16px;
        padding: 10px 15px;
    }

    .tab-item {
        padding: 12px 5px;
        font-size: 13px;
    }

    /* 拆分结果表格：#+14列 手机端一屏显示，不横向拖动 */
    .modal-content {
        width: 98%;
    }
    .modal-body {
        padding: 0 4px 10px;
        overflow-x: hidden;
    }
    .result-table {
        overflow-x: hidden;
    }
    .table-cell {
        font-size: 10px;
        padding: 3px 0;
        letter-spacing: -0.2px;
    }
    .header-row {
        font-size: 10px;
    }
    .row-num-cell {
        flex: 0 0 22px !important;
        min-width: 22px !important;
        font-size: 10px;
    }
    /* 超窄屏(≤360)再压一档，保证"310"这类3字符不被截断 */
    @media (max-width: 360px) {
        .table-cell {
            font-size: 9px;
            letter-spacing: -0.3px;
        }
        .row-num-cell {
            flex: 0 0 18px !important;
            min-width: 18px !important;
            font-size: 9px;
        }
    }

    /* 手机端隐藏表格样式 */
    .table-header-row,
    .match-item,
    .col-index,
    .col-league,
    .col-time,
    .col-teams,
    .col-odds,
    .col-select,
    .col-all,
    .col-dan,
    .match-header,
    .match-index,
    .match-body,
    .match-odds,
    .odds-item,
    .match-footer,
    .all-select-btn {
        display: none;
    }

    /* 手机端显示卡片式布局 */
    .field-wrap {
        display: block;
    }

    .field {
        display: block;
    }

    .field-footer .dan-select {
        display: flex;
    }
}
