.topic-all-content{
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px;
}
.topic-top-title{
	padding: 8px 18px;
	border-bottom: 1px solid rgb(242, 242, 242);
}
.topic-top-title h2{
	font-size: 18px;
	color: #1d1d1f;
	line-height: 1.5;
	text-align: center;
	margin: 0;
	font-weight: 400;
}
.topic-box{
	padding: 16px 18px;
	border-bottom: 1px solid rgb(242, 242, 242);
}
.topic-top{
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.topic-avatar a{
	width: 52px;
	aspect-ratio: 1 / 1;
	display: block;
	border-radius: 4px;
	overflow: hidden;
}
.topic-avatar a img{
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.topic-top .r{
	width: calc(100% - 72px);
}
.bbp-container .topic a{
	color: inherit;
}
.bbp-container .topic a:hover{
	color: #0f5ada;
}
.bbp-container .topic a:hover svg path{
	fill: #0f5ada;
}
.bbp-container .topic .topic-middle{
	padding-left: 72px;
}
.topic-author{
	font-size: 15px;
	color: #1d1d1f;
	line-height: 1.3;
	font-weight: 600;
	margin-bottom: 4px;
}
.topic-author a{
	color: inherit;
}
.topic-author a:hover{
	color: #0f5ada;
}
.topic-release{
	color: #9499a0;
	line-height: 1.3;
	font-size: 13px;
}
.topic-title{
	font-size: 15px;
	line-height: 1.5;
	color: #1d1d1f;
	font-weight: 600;
	margin-top: 8px;
}
.topic-content{
	line-height: 1.5;
	font-size: 15px;
	margin-top: 8px;
	color: #333;
	white-space: pre-line;
    word-break: break-all;
}
.topic-images{
	margin-top: 12px;
}
.topic-images .image-list{
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	max-width: 420px;
}
.topic-images .image-big{
	margin-bottom: 10px;
	border: 1px solid rgba(0, 0, 0, .22);
	border-radius: 8px;
    overflow: hidden;
}
.topic-images .image-big img{
	width: 100%;
	height: auto;
	cursor: zoom-out;
}
.topic-images.active .image-list{
	max-width: 100%;
}
.topic-images .image-box{
	width: 130px;
	aspect-ratio: 1 / 1;
	border-radius: 8px;
	overflow: hidden;
}
.topic-images.active .image-box{
	width: calc( (100% - 80px) / 9);
}
.topic-images .image-box.active{
	border: 2px solid #ff8200;
}
.topic-images .image-box img{
	width: 100%;
	height: 100%;
	object-fit: cover;
	cursor: zoom-in;
}
.topic-parent{
	margin-top: 14px;
	display: flex;
	gap: 10px;
	align-items: center;
}
.topic-parent .from{
	display: inline-flex;
	gap: 4px;
	align-items: center;
	height: 24px;
    line-height: 24px;
    background-color: #f6f7f9;
    padding: 0 10px;
    font-size: 13px;
    border-radius: 12px;
    overflow: hidden;
	color: #1d1d1f;
}
.topic-parent .from.from-topic-tag{
	color: #2873c5;
}
.topic-parent .from.from-topic-tag:hover{
	color: #0f5ada;
}
.topic-parent .from svg path{
	fill: #1d1d1f;
}
.topic-parent .from.from-topic-tag svg path{
	fill: #2873c5;
}
.topic-bottom{
	margin-top: 10px;
}
.topic-actions{
	display: flex;
	align-items: center;
	gap: 20px;
}
.topic-actions .likes{
	all: unset;
	box-sizing: border-box;
	cursor: pointer;
}
.topic-actions .views,
.topic-actions a.reply,
.topic-actions .likes{
	display: inline-flex;
    align-items: center;
    width: calc(100% / 3);
    gap: 4px;
    font-size: 14px;
    color: #777;
    justify-content: center;
    padding: 0;
    height: 40px;
    line-height: 40px;
}
.topic-actions .views svg path,
.topic-actions .reply svg path,
.topic-actions .likes svg path{
	fill: #777;
}
/*图标*/
.topic-corner{
	position: absolute;
	display: flex;
	gap: 10px;
	align-items: center;
	right: 18px;
	top: 16px;
}
.topic-box{
	position: relative;
}
.topic-icon-box{
	display: flex;
	gap: 10px;
	align-items: center;
}
.topic-icon{
	display: inline-flex;
	justify-content: center;
	align-items: center;
}
.topic-icon svg{
	width: 20px;
	height: 20px;
}
.topic-icon svg path{
	fill: rgba(0, 0, 0, .6);
}
.topic-icon.super-sticky svg,
.topic-icon.sticky svg{
	width: 18px;
	height: 18px;
}
.topic-icon.super-sticky svg path{
	fill: #ff211d;
}
.topic-icon.sticky svg path{
	fill: #007eff7a;
}
.topic-icon.hot svg path{
	fill: red;
}
.topic-icon.new svg path{
	fill: green;
}
.topic-function-popup-btn button{
	all: unset;
	box-sizing: border-box;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.topic-function-popup-btn button svg path{
	fill: rgba(0, 0, 0, .6);
}
.topic-function-popup {
    position: absolute;
    right: 0;
    top: 26px;
    border-radius: 4px;
    border: 1px solid #e9e9e9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
    background: #fff;
    display: inline-block; /* 让宽度跟最长按钮匹配 */
    z-index: 2;
}

.topic-function-popup ul {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%; /* 让ul占满父容器宽度 */
}

.topic-function-popup ul li {
    margin: 0;
}

.topic-function-popup ul li button {
    display: block; /* 按钮块级元素 */
    width: 100%;   /* 宽度撑满li和ul */
    padding: 15px 20px;
    white-space: nowrap; /* 文字不换行 */
    text-align: left; /* 文字左对齐，可按需改center或right */
    border: none;
    background: none;
    cursor: pointer;

    /* 其他样式 */
    font-size: 14px;
    line-height: 1;
}
.topic-function-popup ul li button:hover{
	background-color: #f8f8fb;
}
/*主表单*/
.main-form-container{
	padding: 16px 18px;
	border-bottom: 1px solid rgb(242, 242, 242);
}
.main-form .form-box{
	display: flex;
	justify-content: space-between;
}
.main-form .form-box .form-l a{
	width: 34px;
	display: block;
	aspect-ratio: 1 / 1;
	border-radius: 2px;
	overflow: hidden;
}
.main-form .form-box .form-l a img{
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.main-form .form-box .form-r{
	width: calc(100% - 44px);
	position: relative;
}
.main-form .reply-input{
    padding: 6px 11px;
    background: #f0f1f4;
    border: 1px solid #f0f1f4;
    border-radius: 6px;
    line-height: 0;
}
.main-form .reply-input.focus{
	border-color: #ff0000;
	background-color: #fff;
}
.main-form .reply-input textarea {
    width: 100%;
    padding: 0;
    background: transparent;
    border: none;
    -webkit-box-shadow: none;
    box-shadow: none;
    outline: none;
    overflow: hidden;
	line-height: 1.5;
	min-height: 1.5em; /* 保证1行高度 */
    font-size: 15px;
    color: #333;
    resize: none;
    max-height: 200px;
    box-sizing: content-box;
    padding-right: 10px;
    overflow-y: auto;
}
.main-form .reply-actions{
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 12px;
}
.main-form .reply-actions button{
	all: unset;
	box-sizing: border-box;
	cursor: pointer;
	display: flex;
	justify-content: center;
	align-items: center;
}
.main-form .reply-actions button:disabled{
	opacity: .5;
	cursor: not-allowed;
}
.main-form .reply-actions .other{
	display: flex;
	align-items: center;
	gap: 10px;
}
.main-form .reply-actions .submit{
	display: flex;
	align-items: center;
	gap: 10px;
}
.main-form .reply-actions .emoji-btn button{
	font-size: 15px;
}
.main-form .image-selected{
	width: 90px;
	aspect-ratio: 1 / 1;
	position: relative;
	margin-top: 12px;
}
.main-form .image-selected button{
	all: unset;
    box-sizing: border-box;
    cursor: pointer;
    background-color: rgba(0, 0, 0, .8);
    color: #fff;
    font-size: 16px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    position: absolute;
    right: 6px;
    top: 6px;
}
.main-form .image-selected .image-selected-img{
	width: 100%;
	height: 100%;
	border-radius: 4px;
	overflow: hidden;
}
.main-form .image-selected .image-selected-img img{
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.main-form .reply-form-emoji-popup{
	display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 2px;
    background-color: #fff;
    user-select: none;
    padding: 6px;
    border: 1px solid rgba(0, 0, 0, .1);
    box-shadow: 0 6px 20px #00000014;
    border-radius: 6px;
    max-width: max-content;
    position: absolute;
    top: 0;
    transform: translateY(-100%);    
    left: 0;
    z-index: 10;
}
.main-form .reply-form-emoji-popup span{
    font-size: 18px;
    cursor: pointer;
    text-align: center;
    line-height: 1.5;
    padding: 4px;
    border-radius: 4px;
}
.main-form .reply-input-count{
	color: #939393;
	font-size: 14px;
	line-height: 1.3;
}
.main-form .reply-input-count.exceed{
	color: #ff0000;
}
.main-form .submit button{
	font-size: 13px;
    font-weight: 400;
    color: #fff;
    height: 28px;
    line-height: 28px;
    padding: 0 10px;
    border-radius: 4px;
    min-width: 64px;
    text-align: center;
    background: #2468de;
}
.main-form .submit button:disabled{
	opacity: .5;
	cursor: not-allowed;
}
/*分页*/
.list-pagination .pagination{
	margin: 0;
	padding: 0;
}
.list-pagination .pagination{
	display: flex;
	gap: 5px;
	justify-content: center;
}
.list-pagination .pagination button{
  all: unset; /* 清除所有默认样式 */
  display: block; /* 让它像 div 一样是块级元素 */
  width: 100%; /* 可选，设置宽度为100%（视需要） */
  height: auto; /* 高度自动调整（视需要） */
  background: none; /* 去掉背景 */
  border: none; /* 去掉边框 */
  padding: 0; /* 去掉内边距 */
  margin: 0; /* 去掉外边距 */
  text-align: left; /* 可选，根据需要对齐文本 */
}
.list-pagination .pagination span{
	display: flex;
    align-items: center;
    justify-content: center;
}
.list-pagination .pagination button{
	font-size: 15px;
    line-height: 26px;
    height: 26px;
    padding: 0 8px;
/*    border: 1px solid #e1e1e1;*/
    text-align: center;
    border-radius: 2px;
    cursor: pointer;
    color: #1d1d1f;
    font-weight: 400;
}
.list-pagination .pagination button:disabled{
	cursor: not-allowed;
	color: #9e9e9e;
/*	border-color: #e1e1e1;*/
}
.list-pagination .pagination button.active{
	background-color: #1772f6;
	color: #fff;
	font-weight: 600;
}
.list-pagination .pagination button:not(.active):hover{
	background-color: #eee;
}
.list-pagination .pagination button:disabled:hover{
	background-color: inherit;
}
/*replies loop*/
ul.replies-loop{
	list-style: none;
	padding: 0;
	margin: 0;
}
.reply-item{
	padding: 24px 18px;
	border-bottom: 1px solid rgb(242, 242, 242);
}
.reply-item:last-of-type{
	border-bottom: none;
}
.reply-main .reply,
.reply-child .reply{
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.reply-top{
	width: 100%;
	display: flex;
	justify-content: space-between;
    align-items: center;
}
.reply-avatar a {
    width: 52px;
    aspect-ratio: 1 / 1;
    display: block;
    border-radius: 4px;
    overflow: hidden;
}
.reply-avatar a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.reply-top .r{
	width: calc(100% - 72px);
}
.reply-author {
    font-size: 15px;
    color: #1d1d1f;
    line-height: 1.3;
    font-weight: 600;
    margin-bottom: 4px;
}
.reply-author a{
	color: inherit;
}
.reply-author a:hover{
	color: #0f5ada;
}
.reply-release {
    color: #9499a0;
    line-height: 1.3;
    font-size: 13px;
}
.reply-bottom{
	padding-left: 72px;
}
.reply-content{
	line-height: 1.5;
    font-size: 15px;
    color: #333;
    white-space: pre-line;
    margin-bottom: 14px;
    word-break: break-all;
}
.reply-triggers{
	display: flex;
	gap: 14px;
	align-items: center;
}
.reply-triggers button{
	all: unset;
	box-sizing: border-box;
	cursor: pointer;
	color: #777;
	display: flex;
	align-items: center;
	gap: 4px;
}
.reply-triggers button svg path{
	fill: #777;
}
.reply-flat-children{
	padding-left: 72px;
	padding: 16px 18px;
	background-color: #ededed;
	border-radius: 5px;
	margin-top: 20px;
	margin-inline-start: 72px;
	display: flex;
    flex-direction: column;
    gap: 20px;
}
.reply-child .reply-avatar a{
	width: 34px;
}
.reply-child .reply-top .r{
	width: calc(100% - 44px);
}
.reply-child .reply-bottom{
	padding-left: 44px;
}
.reply-child .reply-author{
	display: flex;
	gap: 0;
	align-items: center;
}
.reply-child .to{
	display: flex;
	align-items: center;
	justify-content: center;
}
.reply-child .to svg path{
	fill: #8d8d8d;
}
.reply-child .reply-to-nickname{
	font-weight: 400;
	color: #777;
	font-size: 14px;
}
.reply .image-box{
	margin-bottom: 14px;
}
.reply .image-box .reply-image {
	width: 130px;
	aspect-ratio: 1 / 1;
	border-radius: 8px;
	overflow: hidden;
	cursor: zoom-in;
}
.reply .image-box .reply-image.active{
	width: 100%;
	cursor: zoom-out;
	aspect-ratio: auto;
}
.reply .image-box .reply-image img{
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.replies-control{
	border-top: 1px solid rgb(242, 242, 242);
	padding: 16px 18px;
}
/*子表单*/
.sub-form{
	margin-top: 14px;
}
.sub-form .form-box{
	display: flex;
	justify-content: space-between;
}
.sub-form .form-box .form-l{
	display: none;
}
.sub-form .form-box .form-l a{
	width: 34px;
	display: block;
	aspect-ratio: 1 / 1;
	border-radius: 2px;
	overflow: hidden;
}
.sub-form .form-box .form-l a img{
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.sub-form .form-box .form-r{
	width: calc(100% - 44px);
	width: 100%;
	position: relative;
}
.sub-form .reply-input{
    padding: 6px 11px;
    background: #f0f1f4;
    border: 1px solid #f0f1f4;
    border-radius: 6px;
    line-height: 0;
}
.reply-flat-children .sub-form .reply-input{
    background-color: #fff;
    border-color: #fff;
}
.sub-form .reply-input.focus{
	border-color: #ff0000;
	background-color: #fff;
}
.sub-form .reply-input textarea {
    width: 100%;
    padding: 0;
    background: transparent;
    border: none;
    -webkit-box-shadow: none;
    box-shadow: none;
    outline: none;
    overflow: hidden;
	line-height: 1.5;
	min-height: 1.5em; /* 保证1行高度 */
    font-size: 15px;
    color: #333;
    resize: none;
    max-height: 200px;
    box-sizing: content-box;
    padding-right: 10px;
    overflow-y: auto;
}
.sub-form .reply-actions{
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 12px;
}
.sub-form .reply-actions button{
	all: unset;
	box-sizing: border-box;
	cursor: pointer;
	display: flex;
	justify-content: center;
	align-items: center;
}
.sub-form .reply-actions .other{
	display: flex;
	align-items: center;
	gap: 10px;
}
.sub-form .reply-actions .submit{
	display: flex;
	align-items: center;
	gap: 10px;
}
.sub-form .reply-actions .emoji-btn button{
	font-size: 15px;
}
.sub-form .image-selected{
	width: 90px;
	aspect-ratio: 1 / 1;
	position: relative;
	margin-top: 12px;
}
.sub-form .image-selected button{
	all: unset;
    box-sizing: border-box;
    cursor: pointer;
    background-color: rgba(0, 0, 0, .8);
    color: #fff;
    font-size: 16px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    position: absolute;
    right: 6px;
    top: 6px;
}
.sub-form .image-selected .image-selected-img{
	width: 100%;
	height: 100%;
	border-radius: 4px;
	overflow: hidden;
}
.sub-form .image-selected .image-selected-img img{
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.sub-form .reply-form-emoji-popup{
	display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 2px;
    background-color: #fff;
    user-select: none;
    padding: 6px;
    border: 1px solid rgba(0, 0, 0, .1);
    box-shadow: 0 6px 20px #00000014;
    border-radius: 6px;
    max-width: max-content;
    position: absolute;
    top: 0;
    transform: translateY(-100%);    
    left: 0;
    z-index: 10;
}
.sub-form .reply-form-emoji-popup span{
    font-size: 18px;
    cursor: pointer;
    text-align: center;
    line-height: 1.5;
    padding: 4px;
    border-radius: 4px;
}
.sub-form .reply-input-count{
	color: #939393;
	font-size: 14px;
	line-height: 1.3;
}
.sub-form .reply-input-count.exceed{
	color: #ff0000;
}
.sub-form .submit button{
	font-size: 13px;
    font-weight: 400;
    color: #fff;
    height: 28px;
    line-height: 28px;
    padding: 0 10px;
    border-radius: 4px;
    min-width: 64px;
    text-align: center;
    background: #2468de;
}
.sub-form .submit button:disabled{
	opacity: .5;
	cursor: not-allowed;
}
/*未登录*/
.force-login-notice{
	text-align: center;
}
.force-login-notice a{
	color: #2468de;
	text-decoration: underline;
}
.force-login-notice a:hover{
	color: #0f5ada;
}
/*没有回复*/
.no-replies{
	padding: 16px 18px;
	border-radius: 4px;
	background-color: #fff;
	margin-bottom: 10px;
}
.no-replies .no-replies-content{
	padding: 40px;
	display: flex;
	flex-direction: column;
	gap: 40px;
	align-items: center;
}
.no-replies-image{
	width: 40%;
}
.no-replies-image img{
	width: 100%;
	height: auto;
}
.no-replies-text{
	line-height: 1.5;
	color: rgba(0, 0, 0, .6);
	font-size: 15px;
}
@media(max-width: 734px){
	.list-pagination{
		width: 100%;
	}
	.list-pagination .pagination span{
		display: none;
	}
	.list-pagination .pagination{
		width: 100%;
		justify-content: space-between;
	}
	.list-pagination .pagination span:first-child,
	.list-pagination .pagination span:last-child{
		display: flex;
		width: calc(50% - 8px);
	}
	.list-pagination .pagination span:first-child,
	.list-pagination .pagination span:last-child{
	}
	.list-pagination .pagination button {
        font-weight: 600;
        font-size: 16px;
        height: 32px;
        line-height: 32px;
        border: 1px solid #e1e1e1;
    }
    .list-pagination .pagination button:disabled {
	    cursor: not-allowed;
	    color: #9e9e9e;
	}
	.order-select{
		display: none;
	}
}
@media(max-width: 734px){
	.topic-images .image-box{
		width: calc((100% - 20px ) / 3);
	}
	.topic-images.active .image-box{
		width: calc((100% - 40px) / 5);
	}
	.topic-top-title h2{
		font-size: 15px;
	}
	.topic-avatar a,
	.reply-avatar a{
		width: 40px;
	}
	.topic-top .r{
		width: calc(100% - 48px);
	}
	.bbp-container .topic .topic-middle{
		padding-left: 48px;
	}
	.reply-main .reply-top .r{
		width: calc(100% - 48px);
	}
	.reply-main .reply-bottom{
		padding-left: 48px;
	}
	.reply-child .reply-top .l{
		display: none;
	}
	.reply-child .reply-top .r{
		width: 100%;
	}
	.reply-child .reply-bottom{
		padding-left: 0;
	}
	.reply-item{
		padding: 16px 18px;
	}
	.reply-flat-children{
		margin-top: 16px;
		margin-inline-start: 48px;
	}
	.main-form .reply-form-emoji-popup,
	.sub-form .reply-form-emoji-popup{
		width: 100%;
        max-width: 100%;
        grid-template-columns: repeat(auto-fill, minmax(32px, 1fr));
	}
}