﻿.content {
max-width:100%;
}
.competition {
    color: #222222;
    font-size: 1rem;
    width: 100%;
}

    .competition .banner {
        width: 100%;
        height: calc(100vw * 0.389);
    }

        .competition .banner img {
            width: 100%;
            height: 100%;
        }

    .competition .contain {
        width:100%;
        max-width: 86.25rem;
        margin: 2.5rem auto;
    }

        .competition .contain h1 {
            font-size: 2rem;
            width: 100%;
            font-weight: normal;
            text-align: center;
        }

        .competition .contain .nav_items {
            width: 100%;
            display: grid;
            gap: 1.875rem;
            grid-template-columns: repeat(3, 1fr);
            margin-top: 2rem;
        }

            .competition .contain .nav_items .item {
                width: 100%;
                padding-top: calc(100% * 0.5454);
                overflow: hidden;
                cursor: pointer;
                overflow: hidden;
                background: url(/template/competition/nav1.png) no-repeat center center;
                background-size: contain;
                display: block;
                position: relative;
                transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            }
                .competition .contain .nav_items .item a {
                    width: 60%;
                    color: #fff;
                    font-size: 1.5rem;
                    padding: 2rem;
                    display: block;
                    top: 50%;
                    transform: translateY(-50%);
                    position:absolute;
                }
                .competition .contain .nav_items .item:hover {
                    /* 放大到 1.08 倍（建议1.05~1.12，太大容易模糊） */
                    transform: scale(1.08);
                    /* 如果担心挡住相邻元素，可以提升层级（父容器需设relative） */
                    z-index: 1;
                }
                .competition .contain .nav_items .item img {
                    width: 100%;
                    max-height: 100%;
                    /* 保证填满容器不变形 */
                    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
                    /* 平滑、有弹性感的过渡 */
                    will-change: transform;
                }
                .competition .contain .nav_items .item:hover img {
                    transform: scale(1.1);
                }
                .competition .contain h2 {
                    font-size: 1.25rem;
                    text-align: center;
                    margin-top: 2rem;
                    width: 100%;
                }

            .competition .contain h2:after {
                width: 100%;
                height: 0.625rem;
                display: block;
                background: url(/template/competition/line.png) no-repeat center center;
                content: " ";
                display: block;
                margin-top: .5rem;
            }
       
        .competition .contain .cinfos h3 {
            font-size: 1.25rem;           
            margin-top: 2rem;
            width: 100%;
        }
        .competition .contain .cinfos .info{
            text-indent:2rem;
            margin-top:1rem;
            line-height:2rem;

        }
        .competition .contain .cinfos h4 {
            font-size: 1rem;
            margin-top: 1rem;
            width: 100%;
            text-align: center;
            margin-bottom: 1rem;
        }
/* 外层容器：允许横向滚动 */
.table-wrapper {
    width: 100%;
    overflow-x: auto; /* 手机端出现横向滚动条 */
    -webkit-overflow-scrolling: touch; /* iOS 流畅滚动 */
    
}
.custom-table, .custom-table2, .custom-table3 {
    width: 100%;
    min-width: 50rem;
    border-collapse: collapse; /* 关键：合并边框，防止线条变粗（2px） */
    text-align: center;
}
    .custom-table.w80 {
        width: 80%
    }
    .custom-table.w50 {
        width: 50%;
        margin:0 auto;
        
    }
    /* 所有单元格统一边框和边距 */
    .custom-table td, .custom-table2 td, .custom-table3 td,
    .custom-table th, .custom-table2 th, .custom-table3 th {
        border: 1px solid #70B8FF; /* 实线边框，这就是您要的“线条” */
        padding: 10px 16px;
    }

    /* 表头样式（可选） */
    .custom-table th,  .custom-table2 th, .custom-table3 th{
        background-color: #3C9AF6;
        font-weight: bold;
        color: #fff;
    }
    .custom-table2 td, .custom-table2 th {
        border: 1px solid #8273e5;
    }
    .custom-table2 th {
        background-color: #7261e6;
    }
    .custom-table3 td, .custom-table3 th {
        border: 1px solid #b1d9b2;
    }

    .custom-table3 th {
        background-color: #5bb15c;
    }
        /* 让最后一列宽度是其他列的 2 倍 */
        .custom-table .col-wide, .custom-table2 .col-wide, .custom-table3 .col-wide {
        width: 40%; /* 或者用 2fr 的换算比例，看下方说明 */
    }

.competition .contain .info_item {
    line-height: 200%;
    margin-top:1rem;
}
.bold{font-weight:bold;}
.txtleft {
    text-align: left !important;
    vertical-align:top;
    
}
    .txtleft p {
        line-height: 2rem;
    }
.competition .contain .mt6 {
    margin-top: 6rem;
}
.competition .contain .tab {
    width: 100%;
    height: calc(1380 / 100vw * 0.1231);
    /*  border:1px red solid;*/
    margin-top: 6rem;
}
    .competition .contain .tab img{
        width:100%;max-height:100%;
    }
    .competition .contain .tab:first-child {
        margin-top: 2rem;
    }
/* 展开状态：取消高度限制 */
.competition .contain .cinfos.expanded {
    max-height: none;
    /* 足够大，保证所有内容都能显示 */;
}

/* ---- 按钮（位于 .infos 后面） ---- */
.competition .contain .toggle-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 26px;
    background: #f1f4f9;
    border: none;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1e293b;
    cursor: pointer;
    transition: background 0.25s, color 0.25s, transform 0.15s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    letter-spacing: 0.3px;
    user-select: none;
}

    .toggle-btn:hover {
        background: #e2e8f0;
    }

    .toggle-btn:active {
        transform: scale(0.96);
    }

/* 展开状态下的按钮样式（“收起”时） */
.competition .contain  .cinfos.expanded + .toggle-btn {
    background: #3b82f6;
    color: #ffffff;
}

.competition .contain .cinfos.expanded + .toggle-btn:hover {
    background: #2563eb;
}

/* ---- 辅助：内容不足时隐藏按钮（可选） ---- */
.toggle-btn.hidden {
    display: none;
}

    @media screen and (max-width:1380px) {
        .competition .contain {
        width: 100%;
        margin-top: 1rem;
        padding: 0 1rem;
        box-sizing: border-box;
    }

        .competition .contain h1 {
            font-size: 1.25rem;
        }

        .competition .contain h2 {
            font-size: 1rem;
        }

        .competition .contain .cinfos h3 {
            font-size: 1rem;
            margin-top: 1rem;
        }
}
              
    @media screen and (max-width:1024px) {
        .competition{font-size:.8rem;}
    .competition .contain {
        padding: 0 .5rem;
        margin-top: .5rem;
    }

        .competition .contain h1 {
            font-size: 1rem;
            padding: 0;
        }

        .competition .contain .nav_items {
            gap: .5rem;
            margin-top: .5rem;
        }

        .competition .contain h2 {
            font-size: .9rem;
            margin-top: 1rem;
        }
        .custom-table.w50{width:100%;}
        .competition .contain .cinfos .info {         
            line-height: 1.25rem;
            text-indent:1.6rem;
        }
        .competition .contain table{font-size:.8rem;}
        .toggle-btn {
            padding: 6px 20px;
            font-size: 0.82rem;
        }
        .competition .contain .tab {
            width: 100%;
            height: calc(1380 / 100vw * 0.1231);
            /*  border:1px red solid;*/
            margin-top: 3rem;
        }
        .competition .contain .mt6 {
            margin-top: 3rem;
        }
        .competition .contain .tab:first-child {
            margin-top: 1rem;
        }
        .competition .contain .nav_items {
          
            grid-template-columns: repeat(1, 1fr);
            margin-top:0rem;
            gap:1rem;
        }
        .competition .contain .nav_items .item a{
            padding:0 1rem;
            font-size:1rem;
        }
}
