/* 图形验证码组件：独立样式，不修改站点其他表单。 */
.captcha-image{display:block; width:120px; height:46px; padding:0; margin:0; border:0; border-radius:0; background:transparent; object-fit:contain; cursor:pointer;}
.captcha-image:focus-visible{outline:3px solid #7aa7d9; outline-offset:2px;}
.captcha-control{display:inline-flex; align-items:stretch; flex:0 0 auto; border:1px solid #c0bfbf; border-radius:5px; overflow:hidden; vertical-align:middle; background:#fff;}
.captcha-control input{display:block; box-sizing:border-box; width:100px; height:44px; margin:0; padding:0 10px; border:0; border-radius:0; background:#fff; outline:0; font-size:16px;}
.captcha-control .captcha-image{flex:0 0 120px; width:120px; height:44px;}

/* 用户登录：标签与控件沿用上方账号、密码输入框的同一栅格。 */
.tab1 .tabdiv.captcha-line{display:flex; align-items:center; gap:10px; margin:20px 0;}
.tab1 .tabdiv.captcha-line > label{float:none; flex:0 0 auto; width:auto; height:40px; margin:0; padding:0; line-height:40px; white-space:nowrap;}
.tab1 .tabdiv.captcha-line .captcha-control{height:42px;}
.tab1 .tabdiv.captcha-line .captcha-control input{width:100px; height:40px; line-height:40px;}
.tab1 .tabdiv.captcha-line .captcha-control .captcha-image{height:40px;}
.tab1 .tabdiv.captcha-line .captcha-error{margin-left:0; padding-left:0;}

/* 后台登录：与账号密码同宽同轴，图片右边紧贴容器右边。 */
.ptloginright .ptlogin-inp-yz.captcha-line{box-sizing:border-box; display:flex; align-items:center; width:330px; height:48px; min-height:48px; margin:14px auto; padding:0; gap:6px; overflow:hidden;}
.ptloginright .ptlogin-inp-yz.captcha-line > .captcha-label-icon{flex:0 0 20px; width:20px; height:20px; margin:0 0 0 10px; vertical-align:middle;}
.ptloginright .ptlogin-inp-yz.captcha-line > label{flex:0 0 auto; margin:0; white-space:nowrap;}
.ptloginright .ptlogin-inp-yz.captcha-line > input#vcode{box-sizing:border-box; flex:1 1 auto; width:60px; min-width:0; height:46px; line-height:46px; margin:0; padding-left:5px;}
.ptloginright .ptlogin-inp-yz.captcha-line > .captcha-image{flex:0 0 120px; width:120px; height:46px; margin:0 0 0 auto;}

/* 注册：输入框与图片组成单一控件，不再出现左右两张白卡。 */
.register_table .captcha-control{height:37px;}
.register_table .captcha-control input#vcode{width:100px; height:35px; padding-left:10px;}
.register_table .captcha-control .captcha-image{height:35px;}

/* 评论：标签、输入框和图片按容器排列，输入框占剩余宽度。 */
.commentbox_input .comment-captcha-line{display:flex; align-items:center; width:100%; margin-bottom:13px; font-size:16px;}
.commentbox_input .comment-captcha-line > label{flex:0 0 auto; margin:0 10px 0 0; white-space:nowrap;}
.commentbox_input .comment-captcha-line .captcha-control{flex:1 1 auto; min-width:0; height:44px;}
.commentbox_input .comment-captcha-line .captcha-control input#uyan{flex:1 1 auto; width:50px; min-width:0; height:42px; margin:0; font-size:16px;}
.commentbox_input .comment-captcha-line .captcha-control .captcha-image{height:42px;}

@media screen and (max-width: 767px) {
.captcha-control input{font-size:16px;}
.tab1 .tabdiv.captcha-line{gap:6px; margin:11px 0;}
.tab1 .tabdiv.captcha-line > label{height:32px; line-height:32px;}
.tab1 .tabdiv.captcha-line .captcha-control{height:32px;}
.tab1 .tabdiv.captcha-line .captcha-control input{width:80px; height:30px; line-height:30px; font-size:16px;}
.tab1 .tabdiv.captcha-line .captcha-control .captcha-image{flex-basis:100px; width:100px; height:30px;}
.ptloginright .ptlogin-inp-yz.captcha-line{width:80%; height:40px; min-height:40px; margin:14px auto; padding:0; gap:5px;}
.ptloginright .ptlogin-inp-yz.captcha-line > .captcha-label-icon{margin-left:6px;}
.ptloginright .ptlogin-inp-yz.captcha-line > input#vcode{height:38px; line-height:38px; font-size:16px;}
.ptloginright .ptlogin-inp-yz.captcha-line > .captcha-image{flex:0 0 99px; width:99px; height:38px;}
.register_table .captcha-control{height:32px;}
.register_table .captcha-control input#vcode{width:70px; height:30px; font-size:16px;}
.register_table .captcha-control .captcha-image{flex-basis:90px; width:90px; height:30px;}
.commentbox_input .comment-captcha-line{margin-bottom:10px; font-size:0.8rem;}
.commentbox_input .comment-captcha-line > label{margin-right:6px;}
.commentbox_input .comment-captcha-line .captcha-control{height:32px;}
.commentbox_input .comment-captcha-line .captcha-control input#uyan{height:30px; font-size:16px;}
.commentbox_input .comment-captcha-line .captcha-control .captcha-image{flex-basis:100px; width:100px; height:30px;}
}

@media (prefers-reduced-motion: reduce) {
.captcha-image{transition:none;}
}

/* 清理旧表单通用图片偏移，登录控件与账号密码左边线对齐。 */
.tab1 .tabdiv.captcha-line .captcha-control img.captcha-image{margin:0; vertical-align:top;}
.tab1 .tabdiv.captcha-line{margin-left:22%;}
.tab1 .tabdiv.captcha-line > label{display:none;}
.tab1 .tabdiv.captcha-line::before{content:'*验证码：'; flex:0 0 auto; align-self:center; margin-right:10px; color:#626262; font-size:18px; white-space:nowrap;}
@media screen and (max-width: 767px) {
.tab1 .tabdiv.captcha-line{margin-left:23%;}
.tab1 .tabdiv.captcha-line::before{font-size:0.7rem; margin-right:6px;}
}

/* 登录控件沿用上方输入框起点，不再增加额外的百分比偏移。 */
.tab1 .tabdiv.captcha-line{margin-left:0; margin-right:0;}
@media screen and (max-width: 767px) {
.tab1 .tabdiv.captcha-line{margin-left:0; margin-right:0;}
}

/* 用户登录：验证码控件与账号、密码输入框保持同一起点。 */
.tab1 .tabdiv.captcha-line{margin-left:0;}
.tab1 .tabdiv.captcha-line::before{flex:0 0 20%; width:20%; margin:0; padding-right:2%; text-align:right; box-sizing:content-box;}
.tab1 .tabdiv.captcha-line .captcha-control{flex:0 0 auto;}

/* 评论：与其他字段保持相同的右边界，图片覆盖控件右侧区域。 */
.commentbox_input .comment-captcha-line{display:flex; width:calc(100% - 10px); max-width:calc(100% - 10px);}
.commentbox_input .comment-captcha-line .captcha-control{flex:0 0 auto; width:calc(100% - 74px);}
.commentbox_input .comment-captcha-line .captcha-control input#uyan{flex:1 1 auto; width:50px; min-width:0;}
.commentbox_input .comment-captcha-line .captcha-control .captcha-image{flex:0 0 120px; width:120px;}
@media screen and (max-width: 767px) {
.tab1 .tabdiv.captcha-line::before{flex-basis:22%; width:22%; padding-right:2%;}
.commentbox_input .comment-captcha-line{width:calc(100% - 6px); max-width:calc(100% - 6px);}
.commentbox_input .comment-captcha-line .captcha-control{width:calc(100% - 62px);}
.commentbox_input .comment-captcha-line .captcha-control .captcha-image{flex-basis:100px; width:100px;}
}

/* 图片画面覆盖控件区域，避免 contain 在矮框两侧留下白边。 */
.captcha-control .captcha-image, .ptlogin-inp-yz.captcha-line > .captcha-image{object-fit:cover; object-position:center;}

/* 控件内部高度完全一致，消除输入框底部与图片底部的白色间隙。 */
.tab1 .tabdiv.captcha-line .captcha-control{height:42px;}
.tab1 .tabdiv.captcha-line .captcha-control input#vcode{width:60px; height:40px; min-height:40px; margin:0; padding:0 6px;}
.tab1 .tabdiv.captcha-line .captcha-control .captcha-image{height:40px;}
.register_table .captcha-control{height:37px;}
.register_table .captcha-control input#vcode{width:60px; height:35px; min-height:35px; margin:0; padding:0 6px;}
.register_table .captcha-control .captcha-image{height:35px;}
.commentbox_input .comment-captcha-line .captcha-control{height:40px;}
.commentbox_input .comment-captcha-line .captcha-control input#uyan{width:60px; height:38px; min-height:38px; margin:0; padding:0 6px;}
.commentbox_input .comment-captcha-line .captcha-control .captcha-image{height:38px;}

/* 评论控件与院系输入框左边对齐，标签只保留文字间距。 */
.commentbox_input .comment-captcha-line{margin-left:0;}
.commentbox_input .comment-captcha-line > label{margin-left:0;}

@media screen and (max-width: 767px) {
.tab1 .tabdiv.captcha-line .captcha-control{height:32px;}
.tab1 .tabdiv.captcha-line .captcha-control input#vcode{width:55px; height:30px; min-height:30px; padding:0 5px;}
.tab1 .tabdiv.captcha-line .captcha-control .captcha-image{height:30px;}
.register_table .captcha-control{height:32px;}
.register_table .captcha-control input#vcode{width:55px; height:30px; min-height:30px; padding:0 5px;}
.register_table .captcha-control .captcha-image{height:30px;}
.commentbox_input .comment-captcha-line .captcha-control{height:32px;}
.commentbox_input .comment-captcha-line .captcha-control input#uyan{width:55px; height:30px; min-height:30px; padding:0 5px;}
.commentbox_input .comment-captcha-line .captcha-control .captcha-image{height:30px;}
}

/* 外框与内容同高，输入框底部不再露出一截白底。 */
.tab1 .tabdiv.captcha-line .captcha-control{box-sizing:border-box; height:42px;}
.register_table .captcha-control{box-sizing:border-box; height:37px;}
.commentbox_input .comment-captcha-line .captcha-control{box-sizing:border-box; height:40px;}

/* 评论：输入框与院系框左边线一致，宽度约五个字符。 */
.commentbox_input .comment-captcha-line{margin-left:10px;}
.commentbox_input .comment-captcha-line .captcha-control input#uyan{flex:0 0 60px; width:60px; min-width:60px;}

@media screen and (max-width: 767px) {
.tab1 .tabdiv.captcha-line .captcha-control{height:32px;}
.register_table .captcha-control{height:32px;}
.commentbox_input .comment-captcha-line{margin-left:6px;}
.commentbox_input .comment-captcha-line .captcha-control{height:32px;}
.commentbox_input .comment-captcha-line .captcha-control input#uyan{flex-basis:55px; width:55px; min-width:55px;}
}

/* 评论控件按自然宽度排列，不再被外层拉满。 */
.commentbox_input .comment-captcha-line{display:flex; width:max-content; max-width:100%; margin-left:0;}
.commentbox_input .comment-captcha-line .captcha-control{flex:0 0 auto; width:auto;}
.commentbox_input .comment-captcha-line .captcha-control input#uyan{flex:0 0 60px; width:60px; min-width:60px;}
@media screen and (max-width: 767px) {
.commentbox_input .comment-captcha-line{width:max-content; max-width:100%;}
.commentbox_input .comment-captcha-line .captcha-control input#uyan{flex-basis:55px; width:55px; min-width:55px;}
}

/* 评论与院系字段同一左边界，标签不换行。 */
.commentbox_input .comment-captcha-line{margin-left:-11px;}
@media screen and (max-width: 767px) {
.commentbox_input .comment-captcha-line{margin-left:-7px;}
}

/* 登录与注册：输入框保持舒适宽度，不再过短。 */
.tab1 .tabdiv.captcha-line{gap:0;}
.tab1 .tabdiv.captcha-line .captcha-control input#vcode{width:100px; min-width:100px;}
.register_table .captcha-control input#vcode{width:100px; min-width:100px;}

@media screen and (max-width: 767px) {
.tab1 .tabdiv.captcha-line{gap:0;}
.tab1 .tabdiv.captcha-line .captcha-control input#vcode{width:80px; min-width:80px;}
.register_table .captcha-control input#vcode{width:70px; min-width:70px;}
}

/* 评论验证码：保持与院系框同一左边线，输入框略微缩短。 */
.commentbox_input .comment-captcha-line .captcha-control input#uyan{flex:0 0 50px; width:50px; min-width:50px;}
@media screen and (max-width: 767px) {
.commentbox_input .comment-captcha-line .captcha-control input#uyan{flex-basis:48px; width:48px; min-width:48px;}
}
