main {
    padding: 0;
}

.article-layout {
	width: 100%;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	box-sizing: border-box;
	flex-direction: column;
}

.article-content-area {
	padding: 0 0.7rem;
    background-color: #fff;
	margin-bottom: 0.6rem;
}

.article-sidebar {
	width: 100%;
}

.newsnav {
    padding: 0.8rem 0.7rem;
    color: #ccc;
    border-bottom: solid 1px #eee;
    background-color: #fff;
    font-size: 15px;
}

.newsnav a {
	margin: 0;
	text-align: left;
	color: #aaa;
}

h1 {
	font-size: 1.4rem;
	font-weight: 700;
	margin-bottom: 10px;
	margin-top: 0.9rem;
	line-height: 1.4;
	color: #333;
}

.article-content-area p {
	font-size: 17px;
	margin-bottom: 1.6em;
}

h2 {
	font-size: 1.1rem;
	font-weight: bold;
	color: #111;
	padding: 10px 14px;
	border-left: 4px solid #6d3dd9;
	background-color: #f5f3fd;
	border-radius: 4px;
	margin: 2rem 0 1.3rem 0;
}

h2:first-child {
	margin: 1rem 0 1.3rem 0;
}

.art_info {
	display: flex;
	align-items: center;
}

.art_info span {
	font-size: 15px;
	color: #aaa;
	margin-right: 20px;
}

.art_info a {
	color: #aaa;
}

.article-sidebar ul {
	margin: 1rem 0;
	padding: 0 0 0 6px;
	list-style: none;
}

.article-sidebar ul li {
	font-size: 16px;
	margin-bottom: 12px;
	overflow: hidden;
	text-overflow: ellipsis;
	-webkit-line-clamp: 1;
	display: -webkit-box;
	-webkit-box-orient: vertical;
}

#res-desc {
	color: #2e2e2e;
	line-height: 1.8;
	font-size: 16px;
}

.content-hide {
    max-height: 40rem;
    overflow: hidden;
    position: relative;
}

.content-hide::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3rem;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #ffffff 90%, #ffffff 100%);
}

#res-desc img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 1.5em auto;
}

#res-desc h3 {
	font-size: 1.4em;
	margin: 0;
	color: #1a1a1a;
	font-weight: 600;
}

#res-desc p {
	margin-bottom: 1.2em;
}

#res-desc a {
	color: #4a90e2;
	text-decoration: none;
	border-bottom: 1px dotted #4a90e2;
	transition: all 0.3s ease;
}

#res-desc a:hover {
	color: #1c6cd9;
	border-bottom: 1px solid #1c6cd9;
}

#res-desc ul,
#res-desc ol {
	padding-left: 1.5em;
	margin-bottom: 1.2em;
}

#res-desc ul li,
#res-desc ol li {
	margin-bottom: 0.5em;
}

#res-desc ul li::marker {
	color: #4a90e2;
}

#res-desc ol li::marker {
	color: #4a90e2;
	font-weight: bold;
}

#res-desc blockquote {
	margin: 1.5em 0;
	padding: 1em 1.5em;
	background-color: #f8f9fa;
	border-left: 4px solid #4a90e2;
	color: #555;
	font-style: italic;
}

.a2a_kit {
	padding: 1rem 0 1.4rem 0;
}

.a2a_svg {
	height: 26px !important;
	line-height: 26px !important;
	width: 26px !important;
}

.a2a_kit a {
	margin-right: 2px !important;
	;
}

.nav-links {
	border-top: 1px solid #efefef;
	display: block;
	font-size: 0.95rem;
	padding: 0.3rem 0 1.1rem 0;
}

.nav-links .pre-psy,.nav-links .next-psy {
	color: #888;
	font-size: 16px;
	margin-top: 0.7rem;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
}

.nav-links a {
	color: #444;
	text-decoration: none;
}

.conbox:last-child {
    margin-bottom: 0.9rem;
}

/*热门查询*/
.hot-tools {
    background-color: #fff;
	margin: 0;
}

.hot-tools ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem 1.5rem;
    list-style: none;
    padding: 0.4rem 0 0.5rem 0;
    margin: 0;
}

.hot-tools ul li {
	text-align: center;
	font-size: 15px;
	transition: transform 0.2s ease;
}

.hot-tools ul li .bg-icon {
	width: 64px;
	height: 64px;
	margin: 0 auto;
	background-size: cover;
	background-repeat: no-repeat;
	border-radius: 50%;
}

.hot-tools ul li .bg-icon.icon1 {
	background-image: url('https://xgdnm.youbanya.com/xgdn/img/tools/rk0.png');
}

.hot-tools ul li .bg-icon.icon2 {
	background-image: url('https://xgdnm.youbanya.com/xgdn/img/tools/rk1.png');
}

.hot-tools ul li .bg-icon.icon3 {
	background-image: url('https://xgdnm.youbanya.com/xgdn/img/tools/rk8.png');
}

.hot-tools ul li .bg-icon.icon4 {
	background-image: url('https://xgdnm.youbanya.com/xgdn/img/tools/rk10.png');
}

.hot-tools ul li .bg-icon.icon5 {
	background-image: url('https://xgdnm.youbanya.com/xgdn/img/tools/rk_6.png');
}

.hot-tools ul li .bg-icon.icon6 {
	background-image: url('https://xgdnm.youbanya.com/xgdn/img/tools/rk12.png');
}

.hot-tools ul li .bg-icon.icon7 {
	background-image: url('https://xgdnm.youbanya.com/xgdn/img/tools/rk7.png');
}

.hot-tools ul li .bg-icon.icon8 {
	background-image: url('https://xgdnm.youbanya.com/xgdn/img/tools/rk2.png');
}

.hot-tools ul li .tit {
	color: #555;
	margin-top: 6px;
}


/*问题*/
:root {
	--primary: #e46743;
	--border: #e5e7eb;
	--hover: #f7f8fa;
}

.card {
	margin: 0 auto;
}

.card .qtitle {
	font-size: 1rem;
    margin: 0 0 1rem;
    color: #4b5563;
}

.card .question {
	margin-bottom: 24px;
}

.card .opt {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 5px;
	padding: 0.6rem 0.8rem 0.7rem 0.8rem;
    margin: 0.5rem 0;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.card .opt:hover {
	background: var(--hover);
}

.card .opt span {
    flex: 1;
    font-size: 0.95rem;
    color: #666;
}

.card .opt input[type=radio] {
	width: 0.8rem;
	height: 0.8rem;
	margin-left: auto;
	accent-color: var(--primary);
}

.card .opt.selected {
	border-color: var(--primary);
	box-shadow: 0 0 0 2px rgba(160,32,240,.15) inset;
}

.hidden {
	display: none !important;
}

.result {

}

.card button {
	background: #111;
    color: #fff;
    border: 0;
    padding: 0.5rem 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 0.1rem;
}

.card .actions {
	display: flex;
	justify-content: space-between;
	margin-top: 8px;
}

#submitBtn {
	background: var(--primary);
    margin: 0.1rem auto;
    padding: 0.6rem 2rem;
    font-size: 0.9rem;
}

#restartBtn {
    display: block;
    margin: 0 auto;
	background: var(--primary);
    padding: 0.6rem 2rem;
    font-size: 0.8rem;
}

#prevBtn {
	background: #666;
    margin: 0.1rem 0;
}

#loading {
	text-align: center;
}

#loading h3 {
	font-size: 1.2rem;
	color: #333;
}

#loading p {
	color: #777;
	margin: 1rem;
    font-size: 1rem;
}

#count {
	font-size: 2rem;
	font-weight: bold;
	color: #ff7043;
}

/*答题进度条*/
/* CSS */
.emoji-progress {
	position: relative;
	width: 100%;
	margin: 30px auto;
}

.emoji-progress progress {
	width: 100%;
	height: 2px;
	-webkit-appearance: none;
	appearance: none;
}

/* 进度条底色 */
.emoji-progress progress::-webkit-progress-bar {
	background: #fff;
	border-radius: 5px;
}

/* 进度条填充色（渐变） */
.emoji-progress progress::-webkit-progress-value {
	background: linear-gradient(to right, #f8d64e, #35c99a);
	border-radius: 5px;
}

.emoji-progress progress::-moz-progress-bar {
	background: linear-gradient(to right, #f8d64e, #35c99a);
	border-radius: 5px;
}

/* 小鸟图片（用CSS背景） */
.emoji-progress .emoji {
	position: absolute;
	top: -0.5rem;
 /* 控制小鸟在进度条上方 */
	left: 0;
	width: 30px;
	height: 30px;
	background: url("/xgdn/img/bird.png") no-repeat center;
	background-size: contain;
	transition: left 0s ease;
	transform: scaleX(-1);
    margin-left: -1.5rem;
}

/*广告*/
.auto-ad1 {
	margin-top: 1.5rem;
	border: none;
}

.auto-ad2 {
	margin: 1.5rem 0 0.5rem 0;
	border: none;
}

.auto-ad3,.auto-ad4,.auto-ad5 {
	margin: 0.4rem 0 1rem 0;
	border: none;
}
