/**app.wxss**/
body{
    user-select: none; /* Chrome, Opera, Safari */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
}
.flex {
    display: flex;
}
.fl-al {
    display: flex;
    align-items: center;
}
.fl-sp {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.fl-wr {
    display: flex;
    flex-wrap: wrap;
}
.fl-wr-sp {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.fl-end {
    display: flex;
    justify-content: flex-end;
}
.fl-1 {
    flex: 1;
}
.fs10 {
    font-size: 0.1rem;
}
.fs12 {
    font-size: 0.12rem;
}
.fs14 {
    font-size: 0.14rem;
}
.fs16 {
    font-size: 0.16rem;
}
.fs18 {
    font-size: 0.18rem;
}
.fs20 {
    font-size: 0.2rem;
}
.fs22 {
    font-size: 0.22rem;
}
.fs24 {
    font-size: 0.24rem;
}
.fs26 {
    font-size: 0.26rem;
}
.fs28 {
    font-size: 0.28rem;
}
.fs30 {
    font-size: 0.3rem;
}
.fs32 {
    font-size: 0.32rem;
}
.fs34 {
    font-size: 0.34rem;
}
.fs36 {
    font-size: 0.36rem;
}
.fs38 {
    font-size: 0.38rem;
}
.fs40 {
    font-size: 0.4rem;
}
.fs44 {
    font-size: 0.44rem;
}
.fl-bd {
    font-weight: bold;
}
.te-al {
    text-align: center;
}
.te-rt {
    text-align: right;
}
.cl-wh {
    color: white;
}
.cl-re {
    color: #fa3232;
}
.cl-ys1 {
    color: #bbbbbb;
}
.cl-ys2 {
    color: #7b7b7b;
}
.cl-ys3 {
    color: #7f818c;
}
.cl-ys4 {
    color: #777777;
}
.cl-ys5 {
    color: #484848;
}
.cl-ys6 {
    color: #4f4f4f;
}
.cl-ys7 {
    color: #4a7eff;
}
.cl-ys8 {
    color: #636363;
}
.cl-ys9 {
    color: #ffb400;
}
.cl-ys10 {
    color: #8e8e8e;
}
.cl-ys11 {
    color: #4f4f4f;
}
.cl-ys12 {
    color: #11a00e;
}
.cl-ys13 {
    color: #0049fe;
}
.cl-ys14 {
    color: #636363;
}
.mt5 {
    margin-top: 0.05rem;
}
.mt10 {
    margin-top: 0.1rem;
}
.mt15 {
    margin-top: 0.15rem;
}
.mt20 {
    margin-top: 0.2rem;
}
.mt25 {
    margin-top: 0.25rem;
}
.mt30 {
    margin-top: 0.3rem;
}
.mt35 {
    margin-top: 0.35rem;
}
.mt40 {
    margin-top: 0.4rem;
}
.mt50 {
    margin-top: 0.5rem;
}
.mt60 {
    margin-top: 0.6rem;
}
.ml5 {
    margin-left: 0.05rem;
}
.ml10 {
    margin-left: 0.1rem;
}
.ml15 {
    margin-left: 0.15rem;
}
.ml20 {
    margin-left: 0.2rem;
}
.ml30 {
    margin-left: 0.3rem;
}
.ml40 {
    margin-left: 0.4rem;
}
.mr20 {
    margin-right: 0.2rem;
}
.mr10 {
    margin-right: 0.1rem;
}
.mr40 {
    margin-right: 0.4rem;
}
.mr30 {
    margin-right: 0.3rem;
}
.wt100 {
    width: 100%;
}
img {
    display: block;
}
* {
    margin: 0;
    padding: 0;
}
html,
body {
    width: 100%;
    height: 100%;
}
.mr-to {
    margin: auto;
}
rich-text .rich-img {
    width: 100% !important;
    height: auto;
}
/*二维码弹窗*/
.maAlert{
/*    display: none;*/
}
.ma_alert{
    position: absolute;
    top:0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(0,0,0,0.5);
    z-index: 9;
}
.ma_anmite{
    animation:mymove 1s;
}
.ma_box{
/*    width: 3rem;*/
/*    padding: 0.3rem 0.3rem 0.3rem 0.3rem;*/
    width: 260px;
    padding: 30px;
    background: linear-gradient(54deg, #EBE8FD, #FEDFCE);
    border-radius: 0.18rem;
/*    height: 3rem;*/
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.canyu_in1{
    width: 1.5rem;
    display: block;
    margin: auto;
    margin-top: -1rem;
}
.canyu_close{
    width: 0.54rem;
    display: block;
    margin: auto;
    margin-top: 0.2rem;
    cursor: pointer;
}
/*动画*/
@keyframes mymove {
    0% {
        transform:scale(1);
    }
    50% {
        transform:scale(1.2);
    }
    100% {
        transform:scale(1);
    }
}
.c_item_cj{
    display: none;
}
.c_item_nav div{
    font-size: 0.18rem;
    margin-left: 0.1rem;
}
.c_item_nav img{
    width: 0.2rem;
    height: auto!important;
}
.c_item_rank{
    display: none;
}

/* 预览图片 */
.bigScreen_html{
	width: 100%;
	background: black;
	position: fixed;
	bottom: 0;
	left: 0;
	z-index:999;
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: auto;
}
.bigScreen_img{
	max-width: 100%;
	max-height: 80vh;
	display: block;
	margin: auto;
}
.hide{
	display: none!important;
}

/* 键盘控制选中 */
.control_selected{
	box-shadow: 0 4px 8px rgba(128, 16, 53, 0.8); /* 凸起效果 */
}
/* 富文本 */
.ql-editor{
	white-space: normal!important;
	padding: 0rem 0.41rem 0 0.51rem!important;
}


/* 视频图片题公共样式 */
.quesVideoBox{
    position: relative;
	display: inline-block;
}

.quesVideoBox:hover .playWrap{
    display: flex;
}

.quesVideoBox .playWrap{
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgb(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
	border-radius: 0.1rem;
}

.quesVideoBox .playWrap .playIcon{
    width: 0.6rem;
    height: 0.6rem;
	cursor: pointer;
}

.bigVideoWrap{
	width: 100%;
	height: 100vh;
	position: fixed;
	left: 0;
	top: 0;
	background: rgba(0, 0, 0, 0.3);
	display: flex;
	justify-content: center;
	display: none;
}

.bigVideoWrap .bigVideo{
	max-width: 80%;
	min-height: 60%;
	max-height: 60%;
	display: block;
	margin: auto;
	margin-top: 10vh;
}

.bigVideoWrap .closeBigVideo{
	width: 0.6rem;
	height: 0.6rem;
	display: block;
	margin: auto;
	margin-top: 0.2rem;
	/* position: absolute;
	left: 50%;
	bottom: 1.5rem; */
}

/* 弹窗容器：取消固定高度，改为 min/max 限制 */
.morePic {
    position: fixed;
    left: 5%;
    top: 50%; /* 垂直居中 */
    transform: translateY(-50%); /* 配合 top 50% 实现绝对居中 */
    width: 90%;
    min-height: 86vh;
    max-height: 90vh; /* 最高不超过屏幕 90% */
    z-index: 99999999;
    background: #FFF;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    overflow: visible; 
}

/* 图片包装层 */
.showSome {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
    width: 100%;
    /* 允许内部滚动以防万一，但配合 max-height 限制图片大小 */
    overflow-y: auto; 
}

/* 图片通用样式 */
.morePic .show_img {
    cursor: pointer;
    object-fit: contain; /* 确保图片完整 */
    /* background: #f7f7f7; */
    /* background: #FFF; */
    border-radius: 8px;
    transition: transform 0.2s;
    
    /* 默认布局：3列 */
    flex: 0 1 calc(33.33% - 15px);
    /* 关键：限制单张图片的最大高度，防止只有1-2张时撑得太大 */
    max-height: 40vh; 
    min-width: 150px;
}

/* --- 核心修复：根据数量自动调整大小 --- */

/* 当只有 1-2 张图时，限制它们的宽度，不要横跨全屏 */
.show_img:first-child:nth-last-child(-n+2),
.show_img:first-child:nth-last-child(-n+2) ~ .show_img {
    flex: 0 1 45%; /* 宽度减小 */
    max-height: 60vh; /* 高度可以适当放宽，但不要充满全屏 */
}

/* 当只有 1 张图时，更加收紧 */
.show_img:only-child {
    flex: 0 1 80%;
    max-height: 70vh;
}

/* 关闭按钮 */
.closeCus {
    width: 0.6rem;
    height: 0.6rem;
    position: absolute;
    top: -0.2rem;
    right: -0.2rem;
    cursor: pointer;
    z-index: 1000;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* 全屏大图 */
.showBigImgWrap{
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
}

.showBigImg {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    z-index: 500;
}

/* SVG 连线画板 */
#line-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

/* 匹配容器 */
.matching-area {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    margin-top: 0.2rem;
    box-sizing: border-box;
    padding: 0 1.4rem;
}

.matching-area .column {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    width: 35%;
}

/* 卡片样式 */
.matching-area .card {
    min-height: 0.6rem;
    border: 2px solid #e0e0e0;
    border-radius: 0.12rem;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.1rem;
    text-align: center;
    position: relative;
    transition: border-color 0.4s ease, background-color 0.4s ease;
    color: #333;
}

.matching-area .card img {
    max-width: 100%;
    max-height: 1rem;
    object-fit: contain;
}

/* SVG 贝塞尔曲线平滑绘制动画 */
.matching-area .connection-line {
    fill: none; /* 必须设为 none，否则 SVG 路径会被黑色填充 */
    stroke-width: 0.1rem; /* 连线粗细 */
    stroke-linecap: round;
    fill: none;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

/* 强制所有连线取消内部填充 */
#line-svg path,
.connection-line {
    fill: none !important;        /* 解决黑色大块填充的核心 */
    stroke-linecap: round;        /* 让线条两端变为圆角 */
    stroke-linejoin: round;
}