/* zhg-ui */

/* 主内容区：居中，最大宽度 1000px */
.zhg-main {
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 12px;
    padding-right: 12px;
}

#zhg-toast {
    position: fixed;
    top: 72px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
}

.zhg-toast-item {
    margin-bottom: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}

.zhg-toast-error {
    background: #c8102e;
}

.zhg-toast-success {
    background: #1f7a44;
}

.zhg-auth-wrap {
    display: flex;
    justify-content: center;
    padding: 40px 15px;
}

.zhg-auth-card {
    width: 100%;
    max-width: 420px;
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .16);
}

.zhg-auth-head {
    padding: 28px 20px 22px;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, #1c1f26, #7a1220);
}

.zhg-auth-logo {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.zhg-auth-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.zhg-auth-sub {
    margin-top: 4px;
    font-size: .875rem;
    opacity: .7;
}

.zhg-auth-body {
    padding: 24px 26px 28px;
    background: #fff;
}

.zhg-auth-body .form-control {
    padding: 10px 12px;
    border-radius: 8px;
}

.zhg-auth-body .form-control:focus {
    border-color: #c8102e;
    box-shadow: 0 0 0 .2rem rgba(200, 16, 46, .15);
}

.zhg-btn-primary {
    padding: 10px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #c8102e, #8a0d20);
}

.zhg-btn-primary:hover {
    color: #fff;
    opacity: .92;
}

/* 参赛队牌手编辑行 */
.zhg-player-row {
    max-width: 420px;
}

/* 打牌过程回放 */
.zhg-replay {
    max-height: 60vh;
    overflow-y: auto;
    padding: 4px;
}

.zhg-replay-step {
    padding: 8px 12px;
    margin-bottom: 6px;
    background: #fff;
    border-left: 3px solid #e6e8eb;
    border-radius: 6px;
}

.zhg-replay-step.active {
    border-left-color: #c8102e;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
}

.zhg-replay-head {
    font-size: .875rem;
    color: #8a94a6;
}

.zhg-replay-body {
    font-size: 1rem;
    word-break: break-all;
}

/* 认证页（登录 / 注册）表单装饰 */
.zhg-auth-card-wide {
    max-width: 470px;
}

.zhg-req {
    color: #c8102e;
}

.zhg-input {
    position: relative;
}

.zhg-auth-body .zhg-input .form-control {
    padding-left: 40px;
}

.zhg-auth-body .zhg-input .zhg-has-suffix {
    padding-right: 44px;
}

.zhg-input-icon {
    position: absolute;
    top: 50%;
    left: 13px;
    z-index: 3;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    color: #9aa4b2;
    pointer-events: none;
}

.zhg-input-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.zhg-input-suffix {
    position: absolute;
    top: 50%;
    right: 8px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-top: -14px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    color: #9aa4b2;
    background: transparent;
    cursor: pointer;
}

.zhg-input-suffix:hover {
    color: #c8102e;
    background: rgba(200, 16, 46, .08);
}

.zhg-input-suffix svg {
    display: block;
    width: 16px;
    height: 16px;
}

.zhg-eye-off {
    display: none;
}

.zhg-input-suffix.active .zhg-eye-on {
    display: none;
}

.zhg-input-suffix.active .zhg-eye-off {
    display: block;
}

.zhg-field-tip {
    margin-top: 5px;
    font-size: .875rem;
    color: #8a94a6;
}

.zhg-auth-body .form-control.is-invalid,
.zhg-auth-body .form-control.is-invalid:focus {
    border-color: #c8102e;
    box-shadow: 0 0 0 .2rem rgba(200, 16, 46, .15);
}

.zhg-auth-alert {
    padding: 9px 12px;
    font-size: 1rem;
    border-radius: 8px;
}

.zhg-auth-foot {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed #e6e8eb;
    text-align: center;
    font-size: 1rem;
    color: #6b7280;
}

.zhg-auth-foot a {
    color: #c8102e;
    font-weight: 600;
    text-decoration: none;
}

.zhg-auth-foot a:hover {
    text-decoration: underline;
}

.zhg-btn-primary:disabled {
    opacity: .7;
}

/* 个人中心 */
.zhg-my-head {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, #1c1f26, #7a1220);
}

.zhg-my-head .text-muted {
    color: rgba(255, 255, 255, .7) !important;
}

.zhg-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    color: #7a1220;
    background: #f2d68a;
}

.zhg-section-title {
    margin-bottom: 12px;
    padding-left: 10px;
    border-left: 3px solid #c8102e;
    font-weight: 600;
    color: #1c1f26;
}

.zhg-nav-card {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}

.zhg-nav-card:hover {
    transform: translateY(-2px);
    border-color: #c8102e;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .1);
    color: inherit;
}

.zhg-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #c8102e, #8a0d20);
}

.zhg-nav-title {
    font-weight: 600;
    color: #1c1f26;
}

.zhg-nav-desc {
    margin-top: 2px;
    font-size: .875rem;
    color: #8a94a6;
}

/* 牌手库 */
.zhg-stat-card {
    padding: 14px 10px;
    text-align: center;
    border-radius: 12px;
    transition: transform .15s, box-shadow .15s;
}

.zhg-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
}

.zhg-stat-card .zhg-stat-num {
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.15;
}

.zhg-stat-card .zhg-stat-label {
    margin-top: 2px;
    font-size: .8rem;
    color: #8a94a6;
}

.zhg-avatar-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: .85rem;
    font-weight: 700;
    color: #7a1220;
    background: #f2d68a;
}

.zhg-search-input {
    width: 220px;
    padding-left: 30px;
}

.zhg-search-icon {
    position: absolute;
    left: 9px;
    top: 6px;
    font-size: .82rem;
    line-height: 1;
    color: #8a94a6;
}

/* 内页标题 */
.zhg-page-head {
    margin-bottom: 22px;
}

.zhg-back {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 1rem;
    color: #8a94a6;
    text-decoration: none;
}

.zhg-back:hover {
    color: #c8102e;
}

.zhg-page-title {
    margin: 0 0 6px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1c1f26;
}

.zhg-page-desc {
    font-size: 1rem;
    color: #8a94a6;
}

/* 表单页 */
.zhg-form-card {
    margin-bottom: 18px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #eceff4;
    box-shadow: 0 4px 18px rgba(23, 30, 46, .05);
    overflow: hidden;
}

.zhg-form-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 22px;
    border-bottom: 1px solid #f1f3f7;
    background: #fafbfd;
}

.zhg-form-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: .95rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #c8102e, #8a0d20);
}

.zhg-form-head h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1c1f26;
}

.zhg-form-head p {
    margin: 2px 0 0;
    font-size: .875rem;
    color: #8a94a6;
}

.zhg-form-body {
    padding: 22px;
}

.zhg-label {
    margin-bottom: 6px;
    font-size: 1rem;
    font-weight: 600;
    color: #3f4756;
}

/* 表单：一行一个属性（左侧属性名 / 右侧输入框或下拉框） */
.zhg-row {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 18px;
    padding: 12px 0;
    border-bottom: 1px dashed #eef1f6;
}

.zhg-row:first-child {
    padding-top: 0;
}

.zhg-row:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.zhg-row-name {
    flex: 0 0 210px;
    margin: 0;
    padding-top: 9px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: right;
    color: #3f4756;
}

.zhg-row-field {
    flex: 1 1 auto;
    min-width: 0;
}

.zhg-row-field .form-control,
.zhg-row-field .form-select {
    max-width: 520px;
}

/* 比赛日期：开始 / 结束两个日期框合并为一行，宽度紧凑 */
.zhg-date-range {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    max-width: 100%;
}

.zhg-date-range .form-control {
    flex: 0 0 auto;
    width: 168px;
    min-width: 0;
    max-width: 168px;
    padding-left: 10px;
    padding-right: 6px;
}

.zhg-date-sep {
    flex: 0 0 auto;
    font-size: 1rem;
    color: #8a94a6;
}

/* 列表页头部（比赛管理 / 收藏等） */
.zhg-list-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.zhg-list-head-main {
    min-width: 0;
}

.zhg-list-head .zhg-page-title {
    margin-bottom: 4px;
}

.zhg-list-head .zhg-btn-primary {
    padding: 9px 26px;
    border-radius: 999px;
    letter-spacing: 1px;
}

/* 空状态 */
.zhg-empty {
    padding: 54px 24px;
    border-radius: 16px;
    text-align: center;
    background: #fff;
    border: 1px dashed #e3e8f0;
}

.zhg-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin: 0 auto 14px;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #c8102e, #8a0d20);
    opacity: .88;
}

.zhg-empty-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1c1f26;
}

.zhg-empty-desc {
    margin-top: 6px;
    font-size: .9375rem;
    color: #9aa4b2;
}

/* 比赛管理：列表样式 */
.zhg-match-list {
    border-radius: 16px;
    background: #fff;
    border: 1px solid #eceff4;
    box-shadow: 0 4px 18px rgba(23, 30, 46, .05);
    overflow: hidden;
}

.zhg-match-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 18px;
    padding: 15px 20px 15px 22px;
    border-bottom: 1px solid #f1f3f7;
    cursor: pointer;
    transition: background .18s ease;
}

.zhg-match-item::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, #c8102e, #8a0d20);
    transform: translateY(-50%);
    transition: height .2s ease;
}

.zhg-match-item:last-child {
    border-bottom: none;
}

.zhg-match-item:hover {
    background: #fafbfd;
}

.zhg-match-item:hover::before {
    height: 62%;
}

.zhg-match-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.zhg-match-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1c1f26;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color .18s ease;
}

.zhg-match-item:hover .zhg-match-name {
    color: #c8102e;
}

.zhg-match-type {
    flex: 0 0 auto;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: .8125rem;
    color: #c8102e;
    background: rgba(200, 16, 46, .08);
}

.zhg-match-side {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 16px;
}

.zhg-match-meta {
    font-size: .9375rem;
    color: #8a94a6;
    white-space: nowrap;
}

.zhg-match-tables {
    min-width: 62px;
    text-align: right;
}

.zhg-match-tables b {
    font-size: 1rem;
    font-weight: 700;
    color: #3f4756;
}

.zhg-match-date {
    min-width: 100px;
}

.zhg-match-del {
    padding: 2px 12px;
    border-radius: 999px;
    font-size: 1rem;
    color: #c8102e;
    border: 1px solid #f0cdd4;
    background: #fff;
    transition: all .18s ease;
}

.zhg-match-del:hover {
    color: #fff;
    border-color: #c8102e;
    background: #c8102e;
}

.zhg-match-arrow {
    width: 8px;
    height: 8px;
    border-right: 2px solid #ccd3df;
    border-bottom: 2px solid #ccd3df;
    transform: rotate(-45deg);
    transition: border-color .18s ease, transform .18s ease;
}

.zhg-match-item:hover .zhg-match-arrow {
    border-color: #c8102e;
    transform: rotate(-45deg) translate(2px, -2px);
}

/* 赛事列表：页签 */
.zhg-matches-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 4px 0 18px;
    padding: 8px;
    border-radius: 14px;
    background: #f1f3f7;
}

.zhg-matches-tab {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1 1 0;
    min-height: 74px;
    min-width: 0;
    padding: 10px 12px;
    border: none;
    border-radius: 12px;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .18s ease;
    line-height: 1.2;
}

.zhg-matches-tab svg {
    width: 24px;
    height: 24px;
}

/* 赛事预告 */
.zhg-matches-tab--upcoming {
    color: #2563eb;
    background: #e6eefe;
}

.zhg-matches-tab--upcoming:hover {
    background: #d6e4fc;
}

.zhg-matches-tab--upcoming.is-active {
    color: #fff;
    background: #2563eb;
    box-shadow: 0 6px 14px rgba(37, 99, 235, .32);
}

/* 赛事实况 */
.zhg-matches-tab--live {
    color: #d3190f;
    background: #fde8e6;
}

.zhg-matches-tab--live:hover {
    background: #fbd7d4;
}

.zhg-matches-tab--live.is-active {
    color: #fff;
    background: #d3190f;
    box-shadow: 0 6px 14px rgba(211, 25, 15, .32);
}

/* 赛事列表 */
.zhg-matches-tab--recent {
    color: #168b3a;
    background: #e4f5e9;
}

.zhg-matches-tab--recent:hover {
    background: #d3eedb;
}

.zhg-matches-tab--recent.is-active {
    color: #fff;
    background: #168b3a;
    box-shadow: 0 6px 14px rgba(22, 139, 58, .32);
}

/* 组织列表 */
.zhg-matches-tab--orgs {
    color: #7c3aed;
    background: #eeeafe;
}

.zhg-matches-tab--orgs:hover {
    background: #e2d9fd;
}

.zhg-matches-tab--orgs.is-active {
    color: #fff;
    background: #7c3aed;
    box-shadow: 0 6px 14px rgba(124, 58, 237, .32);
}

/* 赛事列表：搜索框 */
.zhg-matches-search {
    margin-bottom: 12px;
}

.zhg-live-search {
    width: 100% !important;
    text-align: center;
}

/* 赛事列表：分页 */
.zhg-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.zhg-pager-btn {
    min-width: 36px;
    height: 34px;
    padding: 0 11px;
    border: 1px solid #e0e3ea;
    border-radius: 9px;
    font-size: .875rem;
    font-weight: 600;
    color: #475069;
    background: #fff;
    cursor: pointer;
    transition: all .16s ease;
}

.zhg-pager-btn:hover:not(.is-disabled):not(:disabled) {
    border-color: #c8102e;
    color: #c8102e;
}

.zhg-pager-btn.is-active {
    border-color: #c8102e;
    background: #c8102e;
    color: #fff;
    box-shadow: 0 2px 6px rgba(200, 16, 46, .25);
}

.zhg-pager-btn.is-disabled,
.zhg-pager-btn:disabled {
    opacity: .42;
    cursor: not-allowed;
}

/* 赛事列表：小型空状态 */
.zhg-empty-mini {
    padding: 42px 20px;
    border-radius: 14px;
    text-align: center;
    font-size: .9375rem;
    color: #9aa4b2;
    background: #fff;
    border: 1px dashed #e3e8f0;
}

/* 组织列表：组织名可点击 */
.zhg-org-name-link {
    color: #c8102e;
    text-decoration: none;
    cursor: pointer;
}

.zhg-org-name-link:hover {
    text-decoration: underline;
}

.zhg-org-title {
    font-size: .9375rem;
    color: #6b7484;
}

.zhg-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
}

.zhg-switch-row + .zhg-switch-row {
    border-top: 1px dashed #eef1f6;
}

.zhg-switch-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1c1f26;
}

.zhg-switch-desc {
    margin-top: 2px;
    font-size: .875rem;
    color: #8a94a6;
}

.zhg-switch-row .form-check-input {
    width: 2.6em;
    height: 1.4em;
    margin: 0;
    cursor: pointer;
}

.zhg-switch-row .form-check-input:checked {
    background-color: #c8102e;
    border-color: #c8102e;
}

.zhg-switch-row .form-check-input:focus {
    border-color: #e3909c;
    box-shadow: 0 0 0 .2rem rgba(200, 16, 46, .15);
}

/* 表单操作区 */
.zhg-form-actions {
    text-align: center;
    padding: 18px 22px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #eceff4;
    box-shadow: 0 4px 18px rgba(23, 30, 46, .05);
}

.zhg-form-actions .zhg-btn-primary {
    padding: 10px 34px;
    border-radius: 999px;
    letter-spacing: 1px;
}

.zhg-btn-plain {
    padding: 10px 26px;
    border-radius: 999px;
    font-weight: 600;
    color: #6b7488;
    border: 1px solid #dfe4ee;
    background: #fff;
    text-decoration: none;
}

.zhg-btn-plain:hover {
    color: #c8102e;
    border-color: #c8102e;
}

.zhg-form-tip {
    font-size: .875rem;
    color: #9aa4b2;
}

/* ============ 比赛详情页 ============ */

/* 顶部信息条 */
.zhg-match-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 20px 24px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, #2b303b, #414958);
    box-shadow: 0 8px 22px rgba(28, 31, 38, .14);
}

.zhg-match-hero-main {
    min-width: 0;
}

.zhg-match-hero-title {
    margin: 0 0 8px;
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zhg-match-hero-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: .9375rem;
    color: rgba(255, 255, 255, .72);
}

.zhg-chip {
    padding: 2px 10px;
    border-radius: 999px;
    font-size: .8125rem;
    font-weight: 600;
    color: #f2d68a;
    background: rgba(242, 214, 138, .16);
}

.zhg-match-hero-item {
    position: relative;
    padding-left: 14px;
}

.zhg-match-hero-item::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .35);
    transform: translateY(-50%);
}

.zhg-match-hero-actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 8px;
}

.zhg-match-hero-actions .btn-sm {
    padding: 5px 16px;
    border-radius: 999px;
    font-size: 1rem;
}

.zhg-match-hero-actions .btn-outline-secondary {
    color: rgba(255, 255, 255, .82);
    border-color: rgba(255, 255, 255, .35);
    background: transparent;
}

.zhg-match-hero-actions .btn-outline-secondary:hover {
    color: #fff;
    border-color: #fff;
    background: rgba(255, 255, 255, .12);
}

.zhg-match-hero-actions .btn-outline-warning {
    color: #e0d3ad;
    border-color: rgba(224, 211, 173, .5);
    background: transparent;
}

.zhg-match-hero-actions .btn-outline-warning:hover,
.zhg-match-hero-actions .btn-warning {
    color: #3a3f4b;
    border-color: #e0d3ad;
    background: #e0d3ad;
}

/* 标签栏 */
.zhg-match-tabs {
    gap: 4px;
    border-bottom: 1px solid #eceff4;
}

.zhg-match-tabs .nav-link {
    padding: 8px 14px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 8px 8px 0 0;
    font-size: 1rem;
    color: #6b7488;
    transition: color .18s ease, background .18s ease, border-color .18s ease;
}

.zhg-match-tabs .nav-link:hover {
    color: #c8102e;
    background: #fafbfd;
}

.zhg-match-tabs .nav-link.active {
    color: #c8102e;
    font-weight: 600;
    border-bottom-color: #c8102e;
    background: transparent;
}

/* 比赛信息上方的报表快捷入口：两个大按钮等分撑满一行 */
.zhg-match-shortcut {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.zhg-shortcut-btn {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 16px 20px;
    border-radius: 14px;
    color: #1c1f26;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e3e8f0;
    box-shadow: 0 3px 12px rgba(23, 30, 46, .05);
    transition: color .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.zhg-shortcut-btn:hover {
    color: #c8102e;
    border-color: #f0cdd4;
    background: #fffafb;
    box-shadow: 0 10px 22px rgba(200, 16, 46, .12);
    transform: translateY(-2px);
}

.zhg-shortcut-ico {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    color: #c8102e;
    background: linear-gradient(150deg, #fff4f6, #ffe5ea);
    transition: background .18s ease;
}

.zhg-shortcut-btn:hover .zhg-shortcut-ico {
    background: linear-gradient(150deg, #ffeef1, #ffd9e0);
}

.zhg-shortcut-ico svg {
    width: 22px;
    height: 22px;
}

.zhg-shortcut-text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

.zhg-shortcut-title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.35;
}

.zhg-shortcut-sub {
    margin-top: 2px;
    font-size: .875rem;
    color: #8a94a6;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zhg-shortcut-go {
    flex: 0 0 auto;
    font-size: 1.25rem;
    line-height: 1;
    color: #c5cbd6;
    transition: color .18s ease, transform .18s ease;
}

.zhg-shortcut-btn:hover .zhg-shortcut-go {
    color: #c8102e;
    transform: translateX(3px);
}

/* 比赛信息卡片 */
.zhg-info-card {
    margin-bottom: 16px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #eceff4;
    box-shadow: 0 4px 18px rgba(23, 30, 46, .05);
    overflow: hidden;
}

.zhg-info-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 22px;
    background: linear-gradient(180deg, #fcfdff, #f7f9fc);
    border-bottom: 1px solid #f1f3f7;
}

.zhg-info-head-text {
    flex: 1 1 auto;
    min-width: 0;
}

.zhg-info-head h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1c1f26;
}

.zhg-info-head p {
    margin: 2px 0 0;
    font-size: .875rem;
    color: #8a94a6;
}

.zhg-info-head-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.zhg-info-edit {
    padding: 4px 16px;
    border-radius: 999px;
    font-size: 1rem;
    color: #c8102e;
    text-decoration: none;
    border: 1px solid #f0cdd4;
    background: #fff8f9;
    transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.zhg-info-edit:hover {
    color: #fff;
    border-color: #c8102e;
    background: #c8102e;
}

/* 展开 / 收起 图标按钮 */
.zhg-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    color: #6b7488;
    border: 1px solid #dfe4ee;
    background: #fff;
    transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.zhg-icon-btn:hover {
    color: #c8102e;
    border-color: #c8102e;
    background: #fff8f9;
}

/* 展开时显示「闭眼」（点击收起），折叠时显示「睁开眼」（点击展开） */
.zhg-icon-btn .zhg-eye-open {
    display: none;
}

.zhg-icon-btn .zhg-eye-off {
    display: block;
}

.zhg-info-card.is-collapsed .zhg-icon-btn .zhg-eye-open {
    display: block;
}

.zhg-info-card.is-collapsed .zhg-icon-btn .zhg-eye-off {
    display: none;
}

.zhg-info-body {
    padding: 20px 22px;
}

.zhg-info-card.is-collapsed .zhg-info-body {
    display: none;
}

.zhg-info-card.is-collapsed .zhg-info-head {
    border-bottom: none;
}

/* 比赛信息表格：一个属性一行，空值行由模板层过滤；日程 / 规则始终占一行 */
.zhg-info-table {
    width: 100%;
    border-collapse: collapse;
}

.zhg-info-table > tbody > tr > th {
    width: 132px;
    padding: 9px 16px 9px 0;
    vertical-align: middle;
    text-align: right;
    font-size: 1rem;
    font-weight: 400;
    color: #8a94a6;
    white-space: nowrap;
    border: 0;
    border-bottom: 1px solid #f2f4f8;
    background: transparent;
}

.zhg-info-table > tbody > tr > td {
    padding: 9px 0;
    vertical-align: middle;
    font-size: 1rem;
    font-weight: 500;
    color: #1c1f26;
    word-break: break-word;
    border: 0;
    border-bottom: 1px solid #f2f4f8;
}

.zhg-info-table > tbody > tr:last-child > th,
.zhg-info-table > tbody > tr:last-child > td {
    border-bottom: 0;
    padding-bottom: 0;
}

.zhg-info-table > tbody > tr > th + td {
    padding-left: 4px;
}

/* 日程 / 规则行：间距略放大，与上方属性区分 */
.zhg-info-doc-row > th,
.zhg-info-doc-row > td {
    padding-top: 12px;
    padding-bottom: 12px;
}

.zhg-info-doc-row > td {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

.zhg-doc-none {
    font-weight: 400;
    color: #9aa4b2;
}

.zhg-doc-inline-ops {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* 比赛日程 / 比赛规则 卡片（嵌在比赛信息卡内，位于信息网格下方） */
.zhg-doc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #e8ecf3;
}

.zhg-doc-card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    background: #fcfdff;
    border: 1px solid #eceff4;
    overflow: hidden;
}

.zhg-doc-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: linear-gradient(180deg, #fcfdff, #f7f9fc);
    border-bottom: 1px solid #f1f3f7;
}

.zhg-doc-head-text {
    min-width: 0;
}

.zhg-doc-head h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1c1f26;
}

.zhg-doc-head p {
    margin: 2px 0 0;
    font-size: .875rem;
    color: #8a94a6;
}

.zhg-doc-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 10px;
    padding: 16px 20px;
}

.zhg-doc-file {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    background: #f7f9fc;
    border: 1px solid #eef1f6;
    transition: background .18s ease, border-color .18s ease;
}

.zhg-doc-file:hover {
    background: #fff6f7;
    border-color: #f0cdd4;
}

.zhg-doc-file-ico {
    flex: 0 0 auto;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: .75rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #c8102e, #8a0d20);
}

.zhg-doc-file-name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 1rem;
    color: #1c1f26;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zhg-doc-file-dl {
    flex: 0 0 auto;
    font-size: .875rem;
    color: #8a94a6;
}

.zhg-doc-file:hover .zhg-doc-file-dl {
    color: #c8102e;
}

.zhg-doc-empty {
    padding: 16px;
    border-radius: 10px;
    text-align: center;
    font-size: .9375rem;
    color: #9aa4b2;
    background: #fafbfd;
    border: 1px dashed #e3e8f0;
}

.zhg-doc-actions {
    display: flex;
    gap: 8px;
}

.zhg-doc-btn {
    padding: 5px 16px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    border: 0;
    background: linear-gradient(135deg, #c8102e, #8a0d20);
    transition: opacity .18s ease;
}

.zhg-doc-btn:hover {
    color: #fff;
    opacity: .9;
}

.zhg-doc-btn:disabled {
    opacity: .6;
}

.zhg-doc-remove {
    padding: 5px 16px;
    border-radius: 999px;
    font-size: 1rem;
    color: #8a94a6;
    border: 1px solid #dfe4ee;
    background: #fff;
    transition: color .18s ease, border-color .18s ease;
}

.zhg-doc-remove:hover {
    color: #c8102e;
    border-color: #c8102e;
}

.zhg-doc-tip {
    font-size: .875rem;
    color: #9aa4b2;
}

/* 公开详情页：表格行内的日程 / 规则文件链接 */
.zhg-doc-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 4px 12px 4px 4px;
    border-radius: 999px;
    text-decoration: none;
    background: #f7f9fc;
    border: 1px solid #eef1f6;
    transition: background .18s ease, border-color .18s ease;
}

.zhg-doc-link:hover {
    background: #fff6f7;
    border-color: #f0cdd4;
}

.zhg-doc-link .zhg-doc-file-name {
    font-size: .9375rem;
}

.zhg-doc-link .zhg-doc-file-dl {
    font-size: .8125rem;
}

/* 报名表 / 对阵表 独立报表页 */
.zhg-report-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.zhg-report-head-main {
    min-width: 0;
}

.zhg-report-head .zhg-page-title {
    margin-bottom: 4px;
}

.zhg-report-print {
    padding: 9px 26px;
    border-radius: 999px;
    letter-spacing: 1px;
}

.zhg-report-card {
    padding: 18px 20px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #eceff4;
    box-shadow: 0 4px 18px rgba(23, 30, 46, .05);
}

.zhg-report-table {
    margin-bottom: 0;
}

.zhg-report-table thead th {
    font-size: 1rem;
    font-weight: 600;
    color: #4a5262;
    background: #f7f9fc;
    white-space: nowrap;
}

.zhg-report-table > :not(caption) > * > * {
    padding: 9px 12px;
    font-size: 1rem;
}

.zhg-report-players {
    font-size: 1rem;
    line-height: 1.7;
    color: #4a5262;
}

.zhg-col-idx {
    width: 64px;
}

.zhg-col-no {
    width: 80px;
}

.zhg-col-leader {
    width: 120px;
}

.zhg-col-phone {
    width: 132px;
}

.zhg-col-status {
    width: 90px;
}

.zhg-report-foot {
    margin-top: 12px;
    text-align: right;
    font-size: .875rem;
    color: #8a94a6;
}

.zhg-report-empty {
    padding: 38px 0;
    text-align: center;
    font-size: 1rem;
    color: #8a94a6;
}

/* 报名表队位表格：队数 = 桌数 × 2 */
.zhg-slot-table .zhg-col-no,
.zhg-col-count {
    width: 88px;
}

.zhg-col-op {
    width: 96px;
}

.zhg-slot-no {
    font-weight: 600;
    color: #2f3a4d;
}

/* 未填报信息的队位只显示队号 */
.zhg-slot-blank > td {
    background: #fcfdff;
}

.zhg-slot-blank .zhg-slot-no {
    font-weight: 400;
    color: #9aa4b2;
}

/* 队伍编辑页 */
.zhg-field-label {
    margin-bottom: 4px;
    font-size: .875rem;
    color: #6b7280;
}

.zhg-team-sub-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2f3a4d;
}

.zhg-team-sub-tip {
    margin-left: 6px;
    font-size: .875rem;
    font-weight: 400;
    color: #9aa4b2;
}

/* 队员块标题：队员 1 / 队员 2 … */
.zhg-team-player-idx {
    display: inline-block;
    margin-bottom: 8px;
    padding: 2px 12px;
    border-radius: 999px;
    font-size: .875rem;
    font-weight: 600;
    background: #f4f6fa;
    color: #4a5262;
}

/* 牌手导入弹框 */
.zhg-modal-mask {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1080;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, .45);
}

.zhg-modal {
    display: flex;
    flex-direction: column;
    width: 560px;
    max-width: 100%;
    max-height: 86vh;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .28);
    overflow: hidden;
}

.zhg-modal-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2f3a4d;
}

.zhg-modal-tip {
    padding: 8px 12px;
    border-bottom: 1px solid #eceff4;
    font-size: .875rem;
    color: #6b7280;
    background: #fafbfd;
}

.zhg-modal .zhg-player-picker-list {
    flex: 1 1 auto;
    max-height: none;
}

/* 绑定比赛弹框：内容区域让出上下空间并水平居中显示 */
#rec-mask .zhg-player-picker-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: safe center;
    gap: 10px;
    padding: 20px 24px 26px;
}

#rec-mask .zhg-player-picker-list > div {
    width: 100%;
    max-width: 440px;
}

/* 队员姓名后的导入按钮 */
.zhg-team-player-row .te-p-import {
    padding: 2px 10px;
    white-space: nowrap;
}

.zhg-player-picker-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid #eceff4;
    background: #fff;
}

.zhg-player-picker-list {
    max-height: 260px;
    overflow-y: auto;
    padding: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.zhg-pick-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
}

.zhg-pick-item:hover {
    background: #eef3fb;
}

.zhg-pick-name {
    font-size: 1rem;
    color: #2f3a4d;
}

.zhg-pick-no {
    margin-left: auto;
    font-size: .875rem;
    color: #9aa4b2;
}

.zhg-pick-empty {
    padding: 18px 0;
    text-align: center;
    font-size: .9375rem;
    color: #9aa4b2;
}

.zhg-player-picker-foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 10px 12px;
    border-top: 1px solid #eceff4;
    background: #fff;
}

/* 牌手库导入弹框 */
.zhg-picker-head-top {
    gap: 10px;
    padding: 14px 16px;
}

.zhg-picker-title-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 1.05rem;
    color: #fff;
    background: linear-gradient(135deg, #c8102e, #8a0d20);
}

.zhg-picker-title-box {
    min-width: 0;
}

.zhg-picker-title-box .zhg-modal-title {
    font-size: 1.05rem;
}

.zhg-picker-tip {
    margin-top: 2px;
    font-size: .82rem;
    color: #8a94a6;
}

.zhg-picker-head-search {
    padding: 10px 12px;
    background: #f7f9fc;
}

.zhg-picker-search-box {
    min-width: 0;
    max-width: 320px;
}

.zhg-picker-head-search .zhg-search-input {
    width: 100%;
}

.zhg-picker-search-btn {
    flex-shrink: 0;
    white-space: nowrap;
}

.zhg-picker-bar {
    display: flex;
    align-items: center;
    padding: 6px 14px;
    border-bottom: 1px solid #eceff4;
    font-size: .8rem;
    color: #8a94a6;
    background: #fafbfd;
}

.zhg-picker-bar b {
    font-weight: 700;
    color: #c8102e;
}

.zhg-pick-item {
    border: 1px solid transparent;
}

.zhg-pick-item:hover {
    background: #eef3fb;
    border-color: #dbe5f5;
}

.zhg-pick-item:has(input:checked) {
    background: #e7f0ff;
    border-color: rgba(200, 16, 46, .35);
}

.zhg-pick-name {
    font-weight: 600;
}

@media (max-width: 720px) {
    .zhg-matches-tabs {
        gap: 8px;
        margin-bottom: 14px;
        padding: 6px;
    }

    .zhg-matches-tab {
        flex: 1 1 40%;
        min-height: 66px;
        padding: 8px 10px;
        gap: 5px;
        font-size: .84rem;
    }

    .zhg-matches-tab svg {
        width: 22px;
        height: 22px;
    }

    .zhg-matches-search {
        margin-bottom: 12px;
    }

    .zhg-pager-btn {
        min-width: 32px;
        height: 30px;
        padding: 0 9px;
        font-size: .82rem;
    }

    .zhg-form-body {
        padding: 16px;
    }

    .zhg-form-head {
        padding: 14px 16px;
    }

    .zhg-form-actions {
        padding: 14px 16px;
    }

    .zhg-row {
        flex-direction: column;
        gap: 6px;
    }

    .zhg-row-name {
        flex: none;
        padding-top: 0;
    }

    .zhg-row-field .form-control,
    .zhg-row-field .form-select {
        max-width: none;
    }

    .zhg-date-range {
        max-width: 100%;
        gap: 6px;
    }

    .zhg-date-range .form-control {
        flex: 1 1 0;
        width: auto;
        max-width: none;
        font-size: .875rem;
        padding-left: 8px;
        padding-right: 4px;
    }

    .zhg-match-item {
        flex-wrap: wrap;
        padding: 13px 16px 13px 18px;
    }

    .zhg-match-main {
        flex: 1 1 100%;
    }

    .zhg-match-side {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }

    .zhg-match-tables,
    .zhg-match-date {
        min-width: 0;
    }

    .zhg-match-hero {
        padding: 16px 18px;
    }

    .zhg-match-hero-title {
        font-size: 1.15rem;
        white-space: normal;
    }

    .zhg-match-hero-actions {
        width: 100%;
    }

    .zhg-match-shortcut {
        gap: 10px;
        margin-bottom: 12px;
    }

    .zhg-shortcut-btn {
        gap: 10px;
        padding: 12px 14px;
        border-radius: 12px;
    }

    .zhg-shortcut-ico {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .zhg-shortcut-ico svg {
        width: 18px;
        height: 18px;
    }

    .zhg-shortcut-title {
        font-size: 1rem;
    }

    .zhg-shortcut-sub,
    .zhg-shortcut-go {
        display: none;
    }

    .zhg-info-head,
    .zhg-info-body,
    .zhg-doc-head,
    .zhg-doc-body {
        padding-left: 16px;
        padding-right: 16px;
    }

    .zhg-doc-grid {
        grid-template-columns: 1fr;
    }

    .zhg-recorder-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .zhg-referee-pane {
        flex: 0 0 auto;
        align-self: stretch;
        margin-left: 0;
        padding-left: 0;
        padding-top: 16px;
        border-left: 0;
        border-top: 1px solid #eceff4;
    }

    /* 窄屏时比赛信息内的日程 / 规则卡片改为上下排列 */
    .zhg-info-body .zhg-doc-grid {
        gap: 12px;
        margin-top: 16px;
        padding-top: 16px;
    }

    .zhg-info-table > tbody > tr > th {
        width: 92px;
        padding-right: 12px;
        font-size: .9375rem;
    }

    .zhg-info-table > tbody > tr > td {
        font-size: .9375rem;
    }

    .zhg-report-head {
        flex-direction: column;
        align-items: stretch;
    }
}

/* 报表页打印：只保留表头与表格 */
@media print {
    .navbar,
    footer.footer,
    .zhg-report-head .zhg-back,
    .zhg-report-print,
    .zhg-no-print {
        display: none !important;
    }

    .zhg-main {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .zhg-report-head {
        margin-bottom: 10px;
    }

    .zhg-report-card {
        padding: 0;
        border: 0;
        box-shadow: none;
    }

    .zhg-report-table thead th {
        background: #f2f4f8 !important;
    }
}

/* 对阵表：轮次标题（居中红色大字）/ 上一轮下一轮 / 列表 / 底部操作 */
.zhg-bracket-head {
    margin-bottom: 18px;
    padding: 20px 16px 16px;
    border: 1px solid #eef1f6;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff, #f7f9fc);
    text-align: center;
}

.zhg-bracket-round {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 2px;
    color: #d0021b;
}

.zhg-bracket-round-total {
    margin-top: 6px;
    font-size: .875rem;
    letter-spacing: 1px;
    color: #8a94a6;
}

.zhg-bracket-nav {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 14px;
}

.zhg-bracket-nav-btn {
    min-width: 108px;
    padding: 6px 20px;
    border: 1px solid #dfe4ec;
    border-radius: 999px;
    font-size: .9375rem;
    font-weight: 500;
    color: #46505f;
    background: #fff;
    transition: all .18s ease;
}

.zhg-bracket-nav-btn:hover:not(:disabled) {
    border-color: #d0021b;
    color: #d0021b;
    background: #fff6f7;
}

.zhg-bracket-nav-btn:disabled {
    border-color: #eceff4;
    color: #b9c0cb;
    background: #f6f7fa;
}

/* 比赛详情页：当前轮次（与对阵表页同款样式） */
.zhg-round-overview {
    margin: 18px 0 0;
}

/* 比赛详情页：录入器（授权码 + 二维码） */
.zhg-recorder-card {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 18px;
    padding: 18px 22px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #eceff4;
    box-shadow: 0 4px 18px rgba(23, 30, 46, .05);
}

.zhg-recorder-qr {
    flex: 0 0 auto;
    width: 128px;
    height: 128px;
    background: #fff;
}

.zhg-recorder-qr svg {
    display: block;
    width: 128px;
    height: 128px;
}

.zhg-recorder-text {
    min-width: 0;
}

.zhg-recorder-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1c1f26;
}

.zhg-recorder-sub {
    margin: 4px 0 0;
    font-size: .875rem;
    color: #8a94a6;
}

.zhg-recorder-code {
    margin: 10px 0 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: .18em;
    color: #c8102e;
}

.zhg-recorder-tip {
    margin: 8px 0 0;
    font-size: .8125rem;
    color: #8a94a6;
}

/* 比赛详情页：裁判密码放在录入器区域的右侧，占一半宽度 */
.zhg-referee-pane {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 50%;
    min-width: 0;
    padding-left: 22px;
    border-left: 1px solid #eceff4;
}

.zhg-referee-ico {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 1.15rem;
    color: #c8102e;
    background: #fff5f6;
}

.zhg-referee-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: .8125rem;
    font-weight: 500;
    color: #8a94a6;
    background: #f4f6fa;
}

.zhg-referee-status .zhg-referee-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #c6ccd6;
}

.zhg-referee-status.is-set {
    color: #14804a;
    background: #eef8f1;
}

.zhg-referee-status.is-set .zhg-referee-dot {
    background: #27ae60;
}

.zhg-ref-pwd-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    padding: 7px 18px;
    border: 1px solid #dfe4ec;
    border-radius: 999px;
    font-size: .875rem;
    font-weight: 500;
    color: #46505f;
    background: #fff;
    cursor: pointer;
    transition: all .18s ease;
}

.zhg-ref-pwd-btn:hover {
    border-color: #c8102e;
    color: #c8102e;
    background: #fff6f7;
    box-shadow: 0 4px 14px rgba(200, 16, 46, .12);
}

/* 比赛详情页：录入器下方的牌型表入口 */
.zhg-cards-entry {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
    padding: 16px 22px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #eceff4;
    box-shadow: 0 4px 18px rgba(23, 30, 46, .05);
    text-decoration: none;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.zhg-cards-entry:hover {
    border-color: #f0cdd4;
    background: #fff8f9;
    box-shadow: 0 6px 20px rgba(200, 16, 46, .1);
}

.zhg-cards-entry-ico {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: #c8102e;
    background: #fff5f6;
}

.zhg-cards-entry-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.zhg-cards-entry-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1c1f26;
    transition: color .18s ease;
}

.zhg-cards-entry:hover .zhg-cards-entry-title {
    color: #c8102e;
}

.zhg-cards-entry-sub {
    font-size: .875rem;
    color: #8a94a6;
}

.zhg-cards-entry-go {
    flex: 0 0 auto;
    margin-left: auto;
    font-size: .9375rem;
    color: #c8102e;
}

/* 比赛详情页：下方展示区（默认比赛分换算表） */
#match-panel {
    margin-top: 18px;
}

/* 比赛详情页：牌型表下方的管理按钮 */
.zhg-match-ops {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.zhg-match-op {
    flex: 1 1 150px;
    padding: 10px 16px;
    font-size: .9375rem;
    font-weight: 600;
    color: #1c1f26;
    background: #fff;
    border: 1px solid #eceff4;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(23, 30, 46, .04);
    cursor: pointer;
    transition: color .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.zhg-match-op:hover {
    color: #c8102e;
    border-color: #f0cdd4;
    background: #fff8f9;
}

.zhg-match-op.is-active {
    color: #fff;
    background: #c8102e;
    border-color: #c8102e;
    box-shadow: 0 6px 18px rgba(200, 16, 46, .22);
}

.zhg-bracket-tip {
    max-width: 560px;
    margin: 14px auto 0;
    padding: 8px 14px;
    border: 1px solid #ffe1b3;
    border-radius: 8px;
    background: #fff8ec;
    font-size: .875rem;
    color: #b56a00;
}

/* 对阵列表 */
.zhg-bracket-table {
    border: 1px solid #eceff4;
    border-radius: 14px;
    overflow: hidden;
}

.zhg-bracket-table .table {
    margin-bottom: 0;
}

.zhg-bracket-table thead th {
    padding: 11px 12px;
    border-color: #e9edf4;
    font-size: .9375rem;
    font-weight: 600;
    color: #4a5262;
    background: #f7f9fc;
    white-space: nowrap;
}

.zhg-bracket-table tbody td {
    padding: 10px 12px;
    border-color: #eef1f6;
    font-size: .9375rem;
    color: #354052;
}

.zhg-bracket-table tbody tr:nth-child(even) td {
    background: #fbfcfe;
}

.zhg-bracket-table tbody tr:hover td {
    background: #f5f8ff;
}

/* 队号：南北红色、东西蓝色 */
.zhg-bracket-table tbody td.zhg-team-ns,
.zhg-team-ns {
    color: #c8102e;
    font-weight: 600;
}

.zhg-bracket-table tbody td.zhg-team-ew,
.zhg-team-ew {
    color: #1a56db;
    font-weight: 600;
}

.zhg-bracket-team-input {
    width: 86px;
    margin: 0 auto;
    text-align: center;
    font-weight: 600;
}

.zhg-bracket-team-input.zhg-team-ns {
    color: #c8102e;
}

.zhg-bracket-team-input.zhg-team-ew {
    color: #1a56db;
}

.zhg-bracket-state {
    display: inline-block;
    padding: 1px 10px;
    border-radius: 999px;
    font-size: .8125rem;
    white-space: nowrap;
}

.zhg-bracket-state.is-run {
    color: #1a56db;
    background: #eaf1ff;
}

.zhg-bracket-state.is-end {
    color: #177d4f;
    background: #e8f7ef;
}

.zhg-bracket-state.is-bye {
    color: #8a94a6;
    background: #f1f3f7;
}

.zhg-bracket-empty {
    padding: 34px 16px;
    border: 1px dashed #e3e8f0;
    border-radius: 14px;
    text-align: center;
    font-size: 1rem;
    color: #8a94a6;
    background: #fbfcfe;
}

/* 生成对阵 / 重新生成对阵：位于对阵列表下方 */
.zhg-bracket-ops {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
}

.zhg-bracket-op-btn {
    min-width: 148px;
    padding: 9px 24px;
    border: 0;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.zhg-bracket-op-main {
    color: #fff;
    background: linear-gradient(135deg, #1a56db, #123f9e);
    box-shadow: 0 6px 16px rgba(26, 86, 219, .24);
}

.zhg-bracket-op-main:hover:not(:disabled) {
    color: #fff;
    opacity: .92;
}

.zhg-bracket-op-warn {
    color: #fff;
    background: linear-gradient(135deg, #c8102e, #8a0d20);
    box-shadow: 0 6px 16px rgba(200, 16, 46, .22);
}

.zhg-bracket-op-warn:hover:not(:disabled) {
    color: #fff;
    opacity: .92;
}

.zhg-bracket-op-btn:disabled {
    color: #fff;
    opacity: .55;
    box-shadow: none;
}

/* 清除本轮对阵 / 清除本轮数据：描边红字，与「重新生成对阵」区分 */
.zhg-bracket-op-danger {
    color: #c8102e;
    background: #fff;
    border: 1px solid #f0bcc5;
    box-shadow: 0 4px 12px rgba(200, 16, 46, .08);
}

.zhg-bracket-op-danger:hover:not(:disabled) {
    color: #c8102e;
    background: #fff5f6;
    border-color: #e59aa7;
}

.zhg-bracket-op-danger:disabled {
    color: #c8102e;
    background: #fff;
    border-color: #f0bcc5;
    opacity: .45;
}

@media (max-width: 720px) {
    .zhg-bracket-round {
        font-size: 28px;
    }

    .zhg-bracket-nav,
    .zhg-bracket-ops {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .zhg-bracket-nav-btn,
    .zhg-bracket-op-btn {
        width: 100%;
    }
}

/* 队伍编辑页：必填标记与底部居中保存 */
.zhg-required {
    color: #c8102e;
}

.zhg-team-actions {
    margin-top: 18px;
    text-align: center;
}

.zhg-team-save {
    min-width: 180px;
    padding: 10px 32px;
}

/* 队员行：与队伍信息一致——字段名在上，输入框在下 */
.zhg-team-player-row {
    margin-bottom: 16px;
}

.zhg-pick-remark {
    font-size: .875rem;
    color: #9aa4b2;
}

@media (max-width: 720px) {
    .zhg-team-save {
        width: 100%;
    }

    .zhg-modal-mask {
        padding: 12px;
    }

    .zhg-modal {
        max-height: 92vh;
    }
}

/* 公开比赛详情页（从赛事列表进入） */
.zhg-mp-nav {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    padding: 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid #eceff4;
    box-shadow: 0 4px 18px rgba(23, 30, 46, .05);
    backdrop-filter: blur(6px);
}

.zhg-mp-nav-btn {
    flex: 1 1 0;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid #dfe4ee;
    background: #f7f9fc;
    color: #6b7488;
    font-size: .9rem;
    cursor: pointer;
    transition: color .18s ease, border-color .18s ease, background .18s ease;
}

@media (hover: hover) {
    .zhg-mp-nav-btn:hover {
        color: #c8102e;
        border-color: #f0cdd4;
        background: #fff8f9;
    }
}

.zhg-mp-nav-btn.is-active {
    color: #fff;
    border-color: #c8102e;
    background: #c8102e;
}

.zhg-mp-nav-btn.is-active:hover {
    color: #fff;
    border-color: #c8102e;
    background: #c8102e;
}

.zhg-mp-section {
    margin-bottom: 18px;
    padding: 16px 18px 18px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #eceff4;
    box-shadow: 0 4px 18px rgba(23, 30, 46, .05);
}

.zhg-mp-section:last-child {
    margin-bottom: 0;
}

.zhg-mp-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    padding-left: 10px;
    border-left: 4px solid #c8102e;
    font-size: 1rem;
    font-weight: 600;
    color: #1c1f26;
}

.zhg-mp-detail {
    margin-bottom: 0;
}

.zhg-mp-detail th {
    width: 110px;
    background: #f7f9fc;
    color: #6b7488;
    font-weight: 500;
}

.zhg-mp-detail td {
    word-break: break-all;
}

@media (max-width: 720px) {
    .zhg-mp-nav-btn {
        font-size: .8125rem;
        padding: 6px 8px;
    }

    .zhg-mp-detail th {
        width: 84px;
        font-size: .8125rem;
    }
}

/* 公开详情页：成绩表分轮次 + 队名可点 + 牌副数据面板
   轮次切换沿用对阵表的 .zhg-mp-bracket-head（上一轮 / 轮次下拉 / 下一轮） */
.zhg-mp-standings-table thead th {
    background: #f7f9fc;
    font-weight: 600;
    color: #6b7488;
    white-space: nowrap;
}

.zhg-team-link {
    color: #1d4ed8;
    text-decoration: none;
    border-bottom: 1px dashed transparent;
    transition: color .18s ease, border-color .18s ease;
}

.zhg-team-link:hover,
.zhg-team-link.is-active {
    color: #c8102e;
    border-bottom-color: #c8102e;
}

.zhg-team-link.is-active {
    font-weight: 600;
    border-bottom-style: solid;
}

/* 牌副数据面板：位于 #mp-sections 之后，与对阵表 / 成绩表上下并列 */
.zhg-mp-boards-panel {
    margin-top: 0;
    margin-bottom: 18px;
    padding: 16px 18px 18px;
    border: 1px solid #eceff4;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(23, 30, 46, .05);
}

.zhg-boards-panel-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.zhg-boards-panel-title {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0;
}

.zhg-boards-panel-sub {
    font-size: .875rem;
    font-weight: 400;
    color: #8a94a6;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zhg-boards-meta {
    margin: 0 0 12px;
    font-size: .8125rem;
    color: #8a94a6;
}

.zhg-boards-table thead th {
    background: #f7f9fc;
    font-weight: 600;
    color: #6b7488;
    white-space: nowrap;
}

.zhg-boards-board {
    font-weight: 600;
    color: #1c1f26;
}

.zhg-boards-score {
    font-weight: 600;
    color: #c8102e;
}

.zhg-boards-empty {
    padding: 28px 12px;
    border-radius: 10px;
    text-align: center;
    font-size: .9375rem;
    color: #9aa4b2;
    background: #fafbfd;
    border: 1px dashed #e3e8f0;
}

.zhg-boards-tip {
    margin-top: 10px;
    font-size: .8125rem;
    color: #9aa4b2;
}

@media (max-width: 720px) {
    .zhg-mp-boards-panel {
        padding: 14px 12px 16px;
    }

    .zhg-boards-panel-head {
        flex-wrap: wrap;
        gap: 8px;
    }

    .zhg-boards-panel-title {
        flex-wrap: wrap;
        gap: 6px;
    }

    .zhg-boards-table {
        font-size: .8125rem;
    }
}

/* 公开详情页：对阵表（轮次切换） */
.zhg-mp-bracket-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
    padding: 12px 16px;
    border-radius: 14px;
    background: linear-gradient(180deg, #fcfdff, #f7f9fc);
    border: 1px solid #f1f3f7;
}

.zhg-mp-bracket-title {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
}

.zhg-mp-bracket-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1c1f26;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.zhg-mp-round-select {
    width: 96px;
    flex: 0 0 auto;
}

.zhg-mp-bracket-suffix {
    font-size: .95rem;
    color: #6b7488;
}

.zhg-mp-round-btn {
    flex: 0 0 auto;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid #dfe4ee;
    background: #fff;
    color: #6b7488;
    font-size: .9rem;
    cursor: pointer;
    transition: color .18s ease, border-color .18s ease, background .18s ease;
}

@media (hover: hover) {
    .zhg-mp-round-btn:hover:not(:disabled) {
        color: #c8102e;
        border-color: #f0cdd4;
        background: #fff8f9;
    }
}

.zhg-mp-round-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.zhg-mp-bracket-table thead th {
    background: #fff;
    color: #000;
    font-weight: 700;
}

.zhg-mp-bracket-table thead th.zhg-mp-bracket-ns {
    background: #ed7567;
    color: #fff;
}

.zhg-mp-bracket-table thead th.zhg-mp-bracket-ew {
    background: #81aaf9;
    color: #fff;
}

.zhg-mp-bracket-table tbody td {
    vertical-align: middle;
}

.zhg-mp-bracket-table .zhg-bracket-bye {
    background: #fafbfc;
    color: #b6becb;
}

/* 公开详情页：参赛队信息（报名队员表） */
.zhg-mp-teams-table .zhg-mp-team-name {
    font-weight: 600;
}

@media (max-width: 720px) {
    .zhg-mp-bracket-title {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

    .zhg-mp-bracket-name {
        font-size: .9rem;
    }
}



/* ============ 录入器 ============ */
.zhg-recorder-empty-card {
    max-width: 480px;
    margin: 24px auto;
    padding: 40px 24px;
    border: 1px dashed #d7dce3;
    border-radius: 14px;
    background: #fff;
    text-align: center;
}
.zhg-recorder-empty-ico {
    font-size: 44px;
    line-height: 1;
    margin-bottom: 12px;
}
.zhg-recorder-empty-card h5 {
    color: #2f3a4d;
}
.zhg-recorder-empty-card p {
    color: #6b7280;
    font-size: .875rem;
    margin-bottom: 18px;
}
.zhg-recorder-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 6px;
}
.zhg-recorder-row {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f7f9fc;
}
.zhg-recorder-k {
    width: 88px;
    flex-shrink: 0;
    color: #8a93a2;
    font-size: .875rem;
}
.zhg-recorder-v {
    color: #2f3a4d;
    font-weight: 600;
    word-break: break-all;
}
.zhg-recorder-ns { color: #d9584a; font-weight: 600; }
.zhg-recorder-ew { color: #5b84d6; font-weight: 600; }

/* 录入器 · 本轮对阵信息（VS 对战卡） */
.zhg-vs-panel { margin: 4px 0 2px; }
.zhg-vs-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}
.zhg-vs-team {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    padding: 14px 10px 12px;
    border-radius: 12px;
    border: 1px solid;
    position: relative;
}
.zhg-vs-team-ns {
    background: linear-gradient(160deg, #fdebe4 0%, #ffffff 72%);
    border-color: #f5c8bd;
}
.zhg-vs-team-ew {
    background: linear-gradient(160deg, #e9f0ff 0%, #ffffff 72%);
    border-color: #c8d9fb;
}
.zhg-vs-pos {
    font-size: 16px;
    line-height: 1;
    font-weight: 700;
    text-align: center;
}
.zhg-vs-pos-ns { color: #b23b2e; }
.zhg-vs-pos-ew { color: #2f63c9; }
.zhg-vs-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    min-width: 0;
}
.zhg-vs-row-ns { flex-direction: row; }
.zhg-vs-row-ew { flex-direction: row; }
.zhg-vs-team-name {
    font-size: 24px;
    font-weight: 600;
    color: #3a4657;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.zhg-vs-team-no {
    font-size: 34px;
    font-weight: 800;
    color: #22303f;
    line-height: 1.1;
    min-width: 25px;
    text-align: center;
    flex-shrink: 0;
    padding: 5px 10px;
    border: 1px solid #b23b2e;
    border-radius: 25px;
    font-style: italic ;
}
.zhg-vs-team-no-ns { color: #b23b2e; }
.zhg-vs-team-no-ew { color: #2f63c9; border-color: #2f63c9; }
.zhg-vs-badge {
    flex: 0 0 auto;
    margin: 0 -10px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff8a3d, #ff4d4f);
    color: #ffffff;
    font-size: 15px;
    font-style: italic;
    font-weight: 800;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 77, 79, 0.35);
    border: 3px solid #ffffff;
    z-index: 2;
    animation: zhgVsPop 0.35s ease;
}
@keyframes zhgVsPop {
    0% { transform: scale(0.5); opacity: 0.4; }
    60% { transform: scale(1.12); }
    100% { transform: scale(1); opacity: 1; }
}
.zhg-vs-empty {
    text-align: center;
    color: #98a2b3;
    padding: 24px 0 10px;
    font-size: 13px;
}
.zhg-vs-empty-ico {
    font-size: 24px;
    line-height: 1;
    opacity: 0.55;
    margin-bottom: 8px;
}

/* 录入器 · 选择本桌上场牌手 */
.zhg-rp-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 16px;
    align-items: start;
}
.zhg-rp-directions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.zhg-rp-pos-head {
    font-size: 13px;
    color: #98a2b3;
}
.zhg-rp-directions .rp-pos {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border: 1px solid #e5e9f0;
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    margin: 0;
}
.zhg-rp-directions .rp-pos:hover { border-color: #cfd8e6; }
.zhg-rp-directions .rp-pos.is-active {
    border-color: #ff7a45;
    background: #fff8f3;
    box-shadow: 0 2px 8px rgba(255, 122, 69, 0.14);
}
.zhg-rp-pos-tag {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}
.zhg-rp-tag-ns { background: #fdebe4; color: #b23b2e; }
.zhg-rp-tag-ew { background: #e9f0ff; color: #2f63c9; }
.zhg-rp-directions .rp-input { flex: 1 1 auto; min-width: 0; }
.zhg-rp-roster-panel {
    border: 1px solid #e5e9f0;
    border-radius: 12px;
    padding: 12px;
    background: #fafbfc;
}
.zhg-rp-roster-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.zhg-rp-roster-title {
    font-weight: 700;
    color: #2f3a4d;
}
.zhg-rp-roster-count {
    font-size: 12px;
    color: #98a2b3;
}
.zhg-rp-roster {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    max-height: 264px;
    overflow-y: auto;
}
.zhg-rp-player {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 300px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e9edf3;
    cursor: pointer;
    transition: border-color 0.12s, background 0.12s;
}
.zhg-rp-player:hover { border-color: #ff7a45; }
.zhg-rp-player.is-used {
    background: #f2f4f7;
    opacity: 0.62;
    cursor: not-allowed;
}
.zhg-rp-player.is-used:hover { border-color: #e9edf3; }
.zhg-rp-player-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3fb27f;
    flex-shrink: 0;
}
.zhg-rp-player.is-used .zhg-rp-player-dot { background: #b8c0cc; }
.zhg-rp-player-name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 14px;
    color: #2f3a4d;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.zhg-rp-roster-empty {
    text-align: center;
    color: #98a2b3;
    padding: 18px 0;
    font-size: 13px;
}
@media (max-width: 720px) {
    .zhg-rp-layout { grid-template-columns: 1fr; }
}

/* 录入器 · 录入打牌数据 / 录入记录 页签 */
.zhg-rd-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e5e9f0;
    border-radius: 12px;
    padding: 6px;
    margin-bottom: 14px;
}
.zhg-rd-tab {
    border: 0;
    background: transparent;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.2;
    color: #5b6572;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.zhg-rd-tab:hover { color: #ff7a45; }
.zhg-rd-tab.is-active {
    background: linear-gradient(135deg, #ff8a3d, #ff4d4f);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 77, 79, 0.25);
}
.zhg-rd-tabs #rd-round {
    margin-right: 6px;
    white-space: nowrap;
}

/* 录入器 · 打牌数据表单（一行两项 / 标头与输入同排） */
.zhg-rd-field {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
}
.zhg-rd-field .zhg-rd-label {
    flex: 0 0 70px;
    margin: 0;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
    color: #5b6572;
    text-align: right;
}
.zhg-rd-field .form-control,
.zhg-rd-field .form-select {
    flex: 1 1 auto;
    min-width: 0;
}
.zhg-rd-card {
    cursor: pointer;
    background-color: #ffffff;
}
.zhg-rd-card.is-set {
    color: transparent;
    caret-color: transparent;
}
.zhg-rd-card:focus {
    box-shadow: 0 0 0 3px rgba(255, 122, 69, 0.12);
    border-color: #ff7a45;
}
.zhg-rd-card-wrap {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}
.zhg-rd-card-wrap .zhg-rd-card {
    width: 100%;
}
.zhg-rd-card-suit-display,
.rd-card-suit-display {
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    white-space: normal;
    font-size: 14px;
    line-height: 1.3;
    padding-right: 0.75rem;
}

/* 录入器 · 牌型选择弹框 */
.rd-card-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}
.rd-sim-card {
    position: relative;
    width: 86px;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    background-image: url("https://assets.zhbridge.com/wxmini/record/simcardbg.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 6px rgba(31, 45, 61, 0.08);
    user-select: none;
}
.rd-sim-face {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 40% auto;
}
.rd-sim-zones {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}
.rd-sim-zone {
    border: 0;
    padding: 0;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
}
.rd-sim-zone:hover {
    background: rgba(255, 122, 69, 0.16);
}
.rd-sim-zone.rd-picked {
    background: rgba(45, 140, 240, 0.20);
    box-shadow: inset 0 0 0 2px #2d8cf0;
}
.rd-multi-bar {
    margin-top: 12px;
    padding: 10px 12px;
    background: #fff7e6;
    border: 1px dashed #ffb54d;
    border-radius: 8px;
    color: #6b4423;
    font-size: 14px;
    line-height: 1.4;
    word-break: break-word;
}
.rd-multi-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}
.rd-chip {
    display: inline-block;
    padding: 0.14rem 0.45rem;
    margin: 0.18rem 0.3rem 0.18rem 0;
    font-size: 0.875rem;
    line-height: 1.2;
    border: 1px solid #2e7d32;
    border-radius: 0.375rem;
    background: #fff;
    cursor: pointer;
}
.rd-chip:hover {
    border-color: #dc3545;
    color: #dc3545;
}
.rd-pick-count {
    position: absolute;
    top: -0.4rem;
    right: -0.4rem;
    min-width: 1.05rem;
    height: 1.05rem;
    padding: 0 0.2rem;
    border-radius: 50%;
    background: #e53935;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.05rem;
    text-align: center;
}
.rd-hidden {
    display: none !important;
}
.rdr-a { background-image: url("https://assets.zhbridge.com/wxmini/record/A.png"); }
.rdr-k { background-image: url("https://assets.zhbridge.com/wxmini/record/K.png"); }
.rdr-q { background-image: url("https://assets.zhbridge.com/wxmini/record/Q.png"); }
.rdr-j { background-image: url("https://assets.zhbridge.com/wxmini/record/J.png"); }
.rdr-t { background-image: url("https://assets.zhbridge.com/wxmini/record/T.png"); }
.rdr-9 { background-image: url("https://assets.zhbridge.com/wxmini/record/9.png"); }
.rdr-8 { background-image: url("https://assets.zhbridge.com/wxmini/record/8.png"); }
.rdr-7 { background-image: url("https://assets.zhbridge.com/wxmini/record/7.png"); }
.rdr-6 { background-image: url("https://assets.zhbridge.com/wxmini/record/6.png"); }
.rdr-5 { background-image: url("https://assets.zhbridge.com/wxmini/record/5.png"); }
.rdr-4 { background-image: url("https://assets.zhbridge.com/wxmini/record/4.png"); }
.rdr-3 { background-image: url("https://assets.zhbridge.com/wxmini/record/3.png"); }
.rdr-2 { background-image: url("https://assets.zhbridge.com/wxmini/record/2.png"); }
.rd-joker-big { background-image: url("https://assets.zhbridge.com/wxmini/record/bigJoker.png"); }
.rd-joker-little { background-image: url("https://assets.zhbridge.com/wxmini/record/littleJoker.png"); }
.rd-card-tip {
    margin-top: 10px;
    font-size: 12px;
    color: #8a93a2;
    text-align: center;
}

@media (max-width: 420px) {
    .zhg-vs-wrap { flex-direction: column; gap: 8px; }
    .zhg-vs-team { width: 100%; flex: none; }
    .zhg-vs-badge { margin: -4px 0; transform: rotate(90deg); animation: none; }
}
.zhg-recorder-side-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2f3a4d;
}
.zhg-recorder-side-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.zhg-recorder-side-dot-ns { background: #d9584a; }
.zhg-recorder-side-dot-ew { background: #5b84d6; }
.zhg-recorder-side-box .rp-pos {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.zhg-recorder-pos {
    width: 22px;
    flex-shrink: 0;
    font-weight: 600;
    color: #6b7280;
}
.rp-pos .rp-select,
.rp-pos .rp-input { flex-grow: 1; min-width: 0; }
.rp-pos .rp-toggle { flex-shrink: 0; }
.zhg-recorder-tables {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 6px;
    margin-bottom: 10px;
}
.zhg-recorder-table-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    border: 1px solid #d7dce3;
    border-radius: 8px;
    background: #fff;
    color: #2f3a4d;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    transition: border-color .15s, background .15s, color .15s;
}
.zhg-recorder-table-item:hover { border-color: #4d84e8; }
.zhg-recorder-table-item.is-selected {
    border-color: #4d84e8;
    background: #eef4ff;
    color: #2b66c9;
}
.zhg-recorder-table-item.is-occupied {
    border-style: dashed;
    background: #f3f5f8;
    color: #a6adb8;
    cursor: not-allowed;
}
.zhg-recorder-table-item.is-occupied:hover { border-color: #d7dce3; }
.zhg-recorder-table-item.is-occupied.is-selected {
    border-color: #e06c5c;
    background: #fdf0ee;
    color: #d9584a;
    cursor: pointer;
}
.zhg-bind-code,
.zhg-bind-match {
    padding: 2px 2px 12px;
}
.zhg-bind-match-name {
    font-weight: 700;
    color: #2f3a4d;
    margin-bottom: 2px;
}
.zhg-bind-match-tables { color: #8a93a2; }
.zhg-modal .zhg-bind-code .form-text { color: #8a93a2; }
