/**
 * 移动端公共样式
 * 在 enable_viewport 时由 head.php 引入
 * 含：基础布局、页脚、新闻详情、赛场页
 */

/* ========== 新闻正文（桌面也可用） ========== */
.ai-report-body {
    padding: 0;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    overflow-wrap: break-word;
    word-break: break-word;
}
.ai-report-body h1,
.ai-report-body h2,
.ai-report-body h3,
.ai-report-body h4 {
    margin: 18px 0 10px;
    color: #222;
}
.ai-report-body h1 {
    font-size: 22px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}
.ai-report-body h2 { font-size: 18px; }
.ai-report-body h3 { font-size: 16px; }
.ai-report-body table {
    border-collapse: collapse;
    width: 100%;
    margin: 10px 0;
}
.ai-report-body th,
.ai-report-body td {
    border: 1px solid #ddd;
    padding: 6px 10px;
    text-align: left;
}
.ai-report-body th { background: #f7f7f7; }
.ai-report-body blockquote {
    border-left: 4px solid #4193FF;
    margin: 10px 0;
    padding: 6px 14px;
    color: #555;
    background: #f9fbff;
}
.ai-report-body code {
    background: #f5f5f5;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 13px;
}
.ai-report-body pre {
    background: #f5f5f5;
    padding: 12px;
    border-radius: 4px;
    overflow-x: auto;
}
.ai-report-body pre code {
    background: none;
    padding: 0;
}
.ai-report-body ul,
.ai-report-body ol { padding-left: 24px; }
.ai-report-body img {
    max-width: 100%;
    height: auto;
}
.ai-report-body a { color: #4193FF; }
.ai-report-body p { margin: 0 0 1em; }
.ai-report-body iframe,
.ai-report-body video { max-width: 100%; }

.hz-news-meta {
    text-align: right;
    color: #888;
    font-size: 14px;
}
.hz-news-source-link { color: #5b91f4; }

@media (max-width: 767px) {
    /* ========== 基础：覆盖全站 min-width ========== */
    html,
    body {
        min-width: 0 !important;
        max-width: 100%;
        overflow-x: hidden;
    }
    .wrapper,
    .global-wrapper,
    .container,
    .navi-ct,
    .hz_index_footer {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
    .navi-ct {
        padding: 6px 0 !important;
    }
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
        margin-top: 12px !important;
        width: 100% !important;
    }
    .global-wrapper {
        padding-left: 0;
        padding-right: 0;
    }

    /* ========== 页脚 ========== */
    .hz_index_footer {
        height: auto !important;
        min-height: 72px;
        padding: 16px 12px;
        margin-top: 24px !important;
        background-image: none !important;
        background-color: #183051 !important;
        background-size: cover !important;
    }
    .hz_index_footer .footer-other-info {
        font-size: 12px;
        line-height: 1.6;
        word-break: break-all;
    }

    /* ========== 新闻详情 ========== */
    .hz-news-page {
        padding: 16px 14px 24px !important;
        margin-top: 8px !important;
        min-height: 0 !important;
        border-radius: 8px;
    }
    .hz-news-page .news_content > h2 {
        font-size: 16px !important;
        margin: 0 0 8px;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .hz-news-page .news_content > h2 img {
        width: 28px !important;
        height: 28px !important;
    }
    .hz-news-page .news_content > br {
        display: none;
    }
    .hz-news-page h1 {
        font-size: 20px !important;
        line-height: 1.45;
        text-align: left !important;
        margin: 8px 0 12px;
    }
    .hz-news-meta {
        text-align: left;
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 16px;
        padding-bottom: 12px;
        border-bottom: 1px solid #eee;
    }
    .ai-report-body {
        font-size: 15px;
        line-height: 1.75;
    }
    .ai-report-body h1 { font-size: 18px; }
    .ai-report-body h2 { font-size: 16px; }
    .ai-report-body h3 { font-size: 15px; }
    .ai-report-body table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .ai-report-body pre {
        font-size: 12px;
        padding: 10px;
    }

    /* ========== 赛场 group_competition ========== */
    .competition-bg {
        display: block !important;
        background: url("/assets/images/background/competition_image.png") center / cover no-repeat !important;
        position: fixed !important;
        inset: 0;
        z-index: -99 !important;
    }
    .simu-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        text-align: center !important;
        padding: 4px 6px;
    }
    .simu-nav ul {
        display: flex !important;
        flex-wrap: nowrap;
        justify-content: flex-start;
        white-space: nowrap;
        padding: 6px 0 !important;
        margin: 0 auto !important;
        min-width: max-content;
    }
    .simu-nav ul li {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 78px !important;
        min-width: 78px !important;
        height: 34px !important;
        margin: 3px 4px !important;
        background-size: 100% 100% !important;
        flex: 0 0 78px;
        text-align: center;
        box-sizing: border-box;
    }
    /* 移动端隐藏赛事排行 / 赛场FAQ（覆盖上面的 display:flex !important） */
    .simu-nav ul li.hz-nav-desktop-only {
        display: none !important;
    }
    .simu-nav ul a {
        display: block !important;
        width: 100%;
        font-size: 12px !important;
        line-height: 34px !important;
        padding: 0 !important;
        margin: 0 !important;
        text-align: center !important;
        font-weight: 600;
    }
    .table-header {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 8px 10px !important;
        gap: 8px;
    }
    .table-header .left,
    .table-header .right {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: nowrap;
    }
    .ui.secondary.pointing.menu,
    #my_competition_tabs.ui.pointing.secondary.menu {
        flex-wrap: wrap;
        width: 100%;
        padding: 0 !important;
        margin: 0 0 8px !important;
        border: none !important;
        min-height: 0 !important;
    }
    .ui.secondary.pointing.menu .item,
    .ui.secondary.pointing.menu .active.item,
    #my_competition_tabs .item,
    #my_competition_tabs .active.item {
        margin: 0 4px 4px 0 !important;
        height: auto !important;
        min-height: 0 !important;
        line-height: 1.3 !important;
        padding: 5px 8px !important;
        font-size: 12px !important;
        border-radius: 4px !important;
    }
    .table-header .ui.secondary.pointing.menu .active.item {
        height: auto !important;
        padding: 5px 8px !important;
        font-size: 12px !important;
        line-height: 1.3 !important;
    }
    #display_options {
        flex-wrap: nowrap !important;
        align-items: center;
        gap: 4px;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    #display_options .field {
        flex: 0 0 auto;
        margin: 0 !important;
    }
    #display_options label {
        font-size: 12px !important;
        white-space: nowrap;
    }
    #modify_to_table {
        flex: 0 0 auto;
        margin-left: auto !important;
    }
    .right-menu {
        margin-right: 0 !important;
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 0 12px 8px;
    }
    .search-ct {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 12px;
        margin-bottom: 10px;
        box-sizing: border-box;
        position: relative !important;
        z-index: 30 !important;
        overflow: visible !important;
    }
    .competition-ct > div > .search-ct,
    .competition-ct > .search-ct {
        z-index: 30 !important;
    }
    .competition-ct > div > .right-menu,
    .competition-ct > .right-menu,
    .right-menu {
        position: relative;
        z-index: 1 !important;
    }
    .ui.fluid.search.selection.dropdown {
        max-width: 100% !important;
        min-width: 0 !important;
        z-index: 30 !important;
    }
    /* 搜索下拉结果浮在筛选按钮之上，保证可点选 */
    .competition-ct .ui.search.selection.dropdown .menu,
    .competition-ct .ui.dropdown .menu {
        z-index: 10060 !important;
        max-height: 50vh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        background: #fff !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22) !important;
    }
    .competition-ct .ui.search.selection.dropdown .menu .item {
        color: #1f2a44 !important;
        white-space: normal !important;
        line-height: 1.4 !important;
        padding: 10px 12px !important;
    }
    .list-ct {
        padding: 0 12px !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .competition-ct {
        overflow-x: hidden;
        position: relative;
        padding: 8px 10px 24px;
        min-height: 60vh;
        box-sizing: border-box;
    }
    /* 恢复列表面板背景（替代桌面端复杂 border-image） */
    .hero-rank-bg-b {
        display: none !important;
    }
    .hero-rank-bg {
        display: block !important;
        position: absolute !important;
        left: 10px !important;
        right: 10px !important;
        top: 0 !important;
        bottom: 8px !important;
        width: auto !important;
        height: auto !important;
        border: 1px solid rgba(65, 147, 255, 0.35) !important;
        border-image: none !important;
        border-radius: 12px;
        background:
            linear-gradient(180deg, rgba(10, 36, 72, 0.78) 0%, rgba(10, 36, 72, 0.9) 100%),
            url("/assets/hero_rank/hero_bg.png") center top / cover no-repeat !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
        z-index: 0 !important;
    }
    .hero-rank {
        position: relative;
        z-index: 1;
        padding: 10px 8px !important;
        margin: 0 !important;
        min-height: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
    .competition-ct > .table-header,
    .competition-ct > .search-ct,
    .competition-ct > .right-menu,
    .competition-ct > div > .search-ct,
    .competition-ct > div > .right-menu,
    .competition-ct > .container,
    .competition-ct > #list-table,
    .competition-ct > .hero-rank {
        position: relative;
        z-index: 1;
    }
    /* 覆盖上面统一的 z-index:1，搜索区必须高于下方按钮 */
    .competition-ct > .search-ct,
    .competition-ct > div > .search-ct {
        z-index: 30 !important;
        overflow: visible !important;
    }
    .competition-ct > .right-menu,
    .competition-ct > div > .right-menu {
        z-index: 1 !important;
    }
    .competition-ct .container,
    .competition-ct .graph_ul,
    .competition-ct #list-table {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
        box-sizing: border-box !important;
    }
    .competition-ct .graph_ul {
        margin-top: 8px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    /* 列表模式下强制隐藏图表（覆盖上面的 display:flex !important） */
    .competition-ct.hz-view-list .graph_ul,
    .competition-ct.hz-view-list .container.graph_ul,
    .competition-ct .graph_ul.hidden,
    .competition-ct .container.graph_ul.hidden {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .competition-ct.hz-view-graph #list-table,
    .competition-ct #list-table.hidden {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .competition-ct .ui.grid {
        margin: 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        justify-content: center !important;
    }
    .competition-ct .ui.two.stackable.cards,
    .competition-ct .ui.cards {
        margin: 0 auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
    }
    .competition-ct .ui.card,
    .competition-ct .ui.cards > .card,
    .competition-ct a.ui.card {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto 10px !important;
        background: rgba(255, 255, 255, 0.96) !important;
        color: #1f2a44 !important;
        border-radius: 10px !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18) !important;
        overflow: hidden;
        border: none !important;
        box-sizing: border-box !important;
    }
    .competition-ct .ui.card > img:first-child,
    .competition-ct .ui.cards > .card > img:first-child {
        width: 100% !important;
        max-height: 120px;
        object-fit: cover;
        object-position: center top;
    }
    .competition-ct .ui.card > img[src*="on_"],
    .competition-ct .ui.cards > .card > img[src*="on_"] {
        width: 64px !important;
        height: auto !important;
        max-height: none;
        position: absolute !important;
        right: 0;
        top: 0;
        z-index: 2;
        object-fit: contain;
    }
    .competition-ct .ui.card > .content,
    .competition-ct .ui.cards > .card > .content {
        padding: 12px 12px 4px !important;
        background: transparent !important;
    }
    .competition-ct .ui.card .header,
    .competition-ct .ui.cards > .card .header {
        color: #16325c !important;
        font-size: 16px !important;
        line-height: 1.35 !important;
        margin-bottom: 8px !important;
        padding-right: 72px;
        word-break: break-word;
        white-space: normal !important;
    }
    .competition-ct .ui.card .ui.sub.header,
    .competition-ct .ui.cards > .card .ui.sub.header {
        color: #4a5b78 !important;
        font-size: 12px !important;
        line-height: 1.55 !important;
        margin: 0 0 4px !important;
        font-weight: 500 !important;
    }
    .competition-ct .ui.card .ui.sub.header span,
    .competition-ct .ui.cards > .card .ui.sub.header span {
        padding-right: 8px !important;
        color: #7a889f !important;
        display: inline-block;
        min-width: 3.5em;
    }
    .competition-ct .right.floated.meta {
        margin: 0 0 8px !important;
        width: auto !important;
        min-width: 0;
        height: auto !important;
        line-height: 1.2 !important;
        font-size: 12px !important;
        float: right;
    }
    .competition-ct .right.floated.meta > div {
        display: inline-block;
        padding: 4px 10px !important;
        border-radius: 4px;
        font-size: 12px;
    }
    .competition-ct .ui.card > .extra.content,
    .competition-ct .ui.cards > .card > .extra.content {
        padding: 10px 12px !important;
        color: #5b6b86 !important;
        background: #f5f8fc !important;
        border-top: 1px solid #e6edf7 !important;
        font-size: 12px;
    }
    .competition-ct .ui.card .extra.content a,
    .competition-ct .ui.card .extra.content span,
    .competition-ct .ui.cards > .card .extra.content span {
        color: #5b6b86 !important;
    }
    /* 表格模式移动端卡片：由 competition.css 末尾统一覆盖（需压过 hero 白字与 Semantic stack） */
    .competition-ct #list-table,
    .competition-ct .list-ct {
        width: 100% !important;
        max-width: 100% !important;
        padding: 8px !important;
        margin: 0 !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }
    .competition-ct #list-table > div,
    .competition-ct .hero-rank > div[style*="padding"],
    .competition-ct .ui.tab {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        min-height: 0 !important;
        box-sizing: border-box !important;
    }
    .hz-com-pagination {
        color: #fff;
    }
    .hz-com-pagination a {
        background: #2d68ea;
        color: #fff !important;
    }
    .jumbotron {
        height: 180px !important;
        background-size: cover !important;
        background-position: center !important;
    }
    .sub-header {
        flex-direction: column !important;
        gap: 8px;
        padding: 0 12px;
    }
    #my_competition_tabs .right.menu {
        margin-left: 0 !important;
        width: 100%;
        padding-top: 6px;
    }
    #display_options {
        flex-wrap: nowrap;
        gap: 4px 8px;
        font-size: 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    #display_options .field {
        flex: 0 0 auto;
        margin: 0 !important;
    }
    #modify_to_table {
        flex: 0 0 auto;
        margin-left: auto !important;
    }

    /* ========== 英雄榜 / 高校大赛排名 ========== */
    .hz-hero-rank-page {
        padding: 8px 0 24px;
        box-sizing: border-box;
    }
    .hz-hero-nav-wrap {
        margin-bottom: 8px;
        padding: 0;
    }
    .hz-hero-rank-page .simu-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        text-align: center !important;
        padding: 4px 6px;
        justify-content: flex-start;
    }
    .hz-hero-rank-page .simu-nav ul {
        display: flex !important;
        flex-wrap: nowrap;
        justify-content: flex-start !important;
        white-space: nowrap;
        padding: 4px 0 !important;
        margin: 0 !important;
        min-width: max-content;
    }
    .hz-hero-rank-page .simu-nav ul li {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 76px !important;
        min-width: 76px !important;
        height: 48px !important;
        margin: 3px 4px !important;
        background-size: 100% 100% !important;
        flex: 0 0 76px;
        box-sizing: border-box;
    }
    .hz-hero-rank-page .simu-nav ul a {
        display: block !important;
        width: 100%;
        font-size: 11px !important;
        line-height: 1.25 !important;
        padding: 2px 3px !important;
        margin: 0 !important;
        text-align: center !important;
        font-weight: 600;
        white-space: normal !important;
    }
    .hz-hero-rank-page .heroimg-bg {
        background-position: center top !important;
        background-size: cover !important;
    }
    .hz-hero-rank-page .competition-ct {
        padding: 8px 10px 24px;
        min-height: 50vh;
        overflow-x: hidden;
    }
    .hz-hero-rank-page .hero-rank {
        padding: 10px 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 0 !important;
        box-sizing: border-box !important;
    }
    .hz-hero-rank-page .hero-rank-bg-b {
        display: none !important;
    }
    .hz-hero-rank-page .hero-rank-bg {
        display: block !important;
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        bottom: 8px !important;
        width: auto !important;
        height: auto !important;
        border: 1px solid rgba(65, 147, 255, 0.35) !important;
        border-image: none !important;
        border-radius: 12px;
        background:
            linear-gradient(180deg, rgba(10, 36, 72, 0.78) 0%, rgba(10, 36, 72, 0.9) 100%),
            url("/assets/hero_rank/hero_bg.png") center top / cover no-repeat !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
        z-index: 0 !important;
    }
    .hz-hero-rank-page .rank-title {
        position: relative;
        z-index: 1;
        font-size: 22px !important;
        padding: 12px 12px 4px !important;
        margin: 0 !important;
    }
    .hz-hero-rank-page .rank-title p {
        margin: 0;
        font-size: inherit;
        line-height: 1.3;
    }
    .hz-hero-rank-page .rank-table {
        position: relative;
        z-index: 1;
        padding: 4px 0 8px !important;
    }
    .hz-hero-rank-page .table-ct,
    .hz-hero-rank-page .list-ct {
        margin: 0 !important;
        padding: 8px !important;
        border: none !important;
        border-radius: 0 !important;
        overflow: visible !important;
        background: transparent !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .hz-hero-rank-page .simu_hero_padding {
        padding: 0 !important;
        margin: 0 !important;
    }
    .hz-hero-rank-page .hz-com-pagination,
    .hz-hero-rank-page .text-center {
        position: relative;
        z-index: 1;
        padding: 4px 8px 12px;
    }
    .hz-hero-rank-page .pages {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: center;
        align-items: center;
        gap: 4px !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 !important;
        padding: 8px 0 !important;
    }
    .hz-hero-rank-page .pages a {
        flex: 0 0 auto;
        padding: 4px 8px !important;
        font-size: 12px !important;
        line-height: 1.3 !important;
        background: #2d68ea;
        color: #fff !important;
        border-radius: 4px;
        text-decoration: none;
    }
    .hz-hero-rank-page .pages a.current {
        background: #fc4c7e;
    }
    .hz-mobile-sort {
        display: flex !important;
        align-items: center;
        gap: 8px;
        position: relative;
        z-index: 2;
        margin: 4px 12px 10px;
        padding: 8px 10px;
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(65, 147, 255, 0.35);
        border-radius: 8px;
        box-sizing: border-box;
    }
    .hz-mobile-sort label {
        flex: 0 0 auto;
        margin: 0;
        color: #fff;
        font-size: 12px;
        font-weight: 600;
        white-space: nowrap;
    }
    .hz-mobile-sort select {
        flex: 1 1 0;
        min-width: 0;
        height: 34px;
        padding: 0 8px;
        border: 1px solid rgba(255, 255, 255, 0.35);
        border-radius: 6px;
        background: rgba(8, 28, 58, 0.85);
        color: #fff;
        font-size: 13px;
        -webkit-appearance: none;
        appearance: none;
    }

    /* 多空游戏关卡按钮 */
    .hz-hero-rank-page .btn-herolist {
        float: none !important;
        display: inline-block;
        margin: 4px 4px 0 0 !important;
        font-size: 12px !important;
        height: 32px !important;
        padding: 0 10px !important;
        line-height: 30px !important;
    }
    /* 仅游戏页：关卡按钮 flex；其它列表保持块级，避免表格宽度异常 */
    .hz-hero-rank-page.hz-game-rank .simu_hero_padding {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px;
        padding: 0 4px !important;
    }
    .hz-hero-rank-page.hz-game-rank .simu_hero_padding > .table-ct {
        width: 100%;
        flex: 1 0 100%;
        order: 10;
        margin-top: 8px !important;
    }
    .hz-hero-rank-page.hz-game-rank .simu_hero_padding > br {
        display: none;
    }
    .hz-hero-rank-page.hz-game-rank #goto_game {
        order: -1;
        margin-left: auto !important;
    }

    /* 历史排名筛选 */
    .hz-hero-rank-page .match_info .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .hz-hero-rank-page .match_info .col-sm-6,
    .hz-hero-rank-page .match_info .col-sm-4 {
        width: 100% !important;
        float: none !important;
        padding: 0 8px !important;
        margin-bottom: 8px;
    }
    .hz-hero-rank-page .match_info .form-control,
    .hz-hero-rank-page .match_info .Wdate {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
    }
    .hz-hero-rank-page .match_info_time p {
        float: none !important;
        margin: 4px 0 !important;
        text-align: left;
        color: #fff;
    }
    .hz-hero-rank-page .card {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        margin: 0 0 12px !important;
    }
    .hz-hero-rank-page #kkpager {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 4px;
    }

    /* ========== 报名参赛 / 理财家入驻 ========== */
    .hz-attend-match,
    .hz-attend-match .competition-ct,
    .hz-attend-match .hero-rank,
    .hz-attend-match .rank-table {
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    .hz-hero-form-page .rank-table {
        padding: 4px 0 12px !important;
    }
    .hz-hero-form-page .table-ct {
        margin: 0 8px !important;
        padding: 0 !important;
        border: none !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
        background: transparent !important;
        max-width: calc(100% - 16px) !important;
        box-sizing: border-box !important;
    }
    .hz-attend-panel {
        padding: 12px 8px 28px !important;
        border-radius: 10px;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    .hz-attend-banner {
        margin: 0 0 8px;
        overflow: hidden;
        border-radius: 8px;
        max-width: 100%;
    }
    .hz-attend-banner img {
        width: 100%;
        max-width: 100%;
        height: auto;
        display: block;
    }
    .hz-attend-body,
    .hz-lcs-body {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow-x: hidden;
        box-sizing: border-box !important;
    }
    .hz-attend-match .attend_match_enroll,
    .hz-attend-match .attend_match_rules,
    .hz-attend-match .attend_match_info {
        margin-top: 40px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 36px 10px 14px !important;
        border-width: 3px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        position: relative;
    }
    /* 装饰角标缩进盒内，避免 absolute 撑出右侧 */
    .hz-attend-match .enroll_logo,
    .hz-attend-match .rules_logo,
    .hz-attend-match .info_logo {
        width: min(46vw, 160px) !important;
        max-width: 46% !important;
        top: -28px !important;
        left: 6px !important;
        right: auto !important;
        z-index: 2;
    }
    .hz-attend-match .rules_logo {
        left: auto !important;
        right: 6px !important;
    }
    .hz-attend-match .enroll_intro {
        display: none !important;
    }
    .hz-attend-match .enroll_logo img,
    .hz-attend-match .rules_logo img,
    .hz-attend-match .info_logo img {
        width: 100%;
        max-width: 100%;
        height: auto;
        display: block;
    }
    .hz-attend-match .match-section,
    .hz-attend-match .match_rules,
    .hz-attend-match .alert {
        max-width: 100%;
        box-sizing: border-box;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
    .hz-attend-match .match_rules h3 {
        font-size: 16px;
        margin: 8px 0;
    }
    /* 取消 Bootstrap row 负边距，避免表单整体右溢出 */
    .hz-attend-match .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100% !important;
    }
    .hz-attend-match [class*="col-"] {
        width: 100% !important;
        float: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-bottom: 8px;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .hz-attend-match .match_jmp_txt,
    .hz-attend-match .form-control,
    .hz-attend-match select.form-control,
    .hz-attend-match .btn {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }
    .hz-attend-match .btn {
        margin-top: 6px;
    }
    .hz-attend-match .alert span[style*="width"] {
        width: auto !important;
        display: inline !important;
    }
    /* 宽表只在局部横滑，不撑开整页 */
    .hz-attend-match .table-responsive,
    .hz-attend-match .match_info,
    .hz-attend-match .attend_match_info .match_rules {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }
    .hz-attend-match table {
        min-width: 480px;
        max-width: none;
    }

    .hz-lcs-panel {
        padding: 12px 10px 24px !important;
        border-radius: 10px;
        overflow: hidden;
    }
    .hz-lcs-settle .master-enter-status {
        margin: 28px 0 36px !important;
        padding: 0 4px;
        min-height: 96px;
    }
    .hz-lcs-settle .master-enter-status-timeline {
        height: 8px;
    }
    .hz-lcs-settle .image-master-enter-status {
        padding: 4px;
        margin-top: -28px;
        transform: scale(0.78);
        transform-origin: center top;
    }
    .hz-lcs-settle .image-master-enter-status .status {
        width: 72px;
        font-size: 11px;
        line-height: 1.25;
        transform: none !important;
        -webkit-transform: none !important;
        top: 62px;
        left: 50%;
        margin-left: -36px;
        text-align: center;
        white-space: normal;
    }
    .hz-lcs-settle .image-master-enter-status-completed .status {
        top: 62px;
        left: 50%;
        margin-left: -36px;
        text-align: center;
    }
    .hz-lcs-settle .image-master-enter-status .icon {
        width: 40px;
        height: 40px;
    }
    .hz-form-panel {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 2px;
        box-sizing: border-box;
    }
    .hz-lcs-settle .form-group {
        margin-bottom: 14px;
    }
    .hz-lcs-settle .control-label,
    .hz-lcs-settle .col-sm-3,
    .hz-lcs-settle .col-sm-6,
    .hz-lcs-settle .col-md-10,
    .hz-lcs-settle .col-md-offset-1 {
        width: 100% !important;
        float: none !important;
        text-align: left !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin: 0 0 6px !important;
    }
    .hz-lcs-settle .form-control,
    .hz-lcs-settle .btn-block {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .hz-lcs-settle .checkbox-inline,
    .hz-lcs-settle label.checkbox-inline {
        display: inline-block;
        margin: 4px 10px 4px 0;
    }
}

@media (min-width: 768px) {
    .hz-mobile-sort {
        display: none !important;
    }
}
