/*
Theme Name: Revision Child
Theme URI: https://revision.codesupply.co
Template: revision
Author: Code Supply Co.
Author URI: https://codesupply.co
Description: High-Performance WordPress Personal Blog Theme
Tags: custom-colors,editor-style,theme-options,custom-menu,sticky-post,right-sidebar,translation-ready
Version: 1.0.7.1770299733
Updated: 2026-02-05 05:55:33

*/

/*--------------------------------------------------------------
## 问答页面模板样式
--------------------------------------------------------------*/

.cs-entry-qa {
	margin-top: 2rem;
}

/* 问题板块样式 */
.cs-entry-qa__question {
	background: var(--cs-layout-background, #ffffff);
	border-left: 4px solid var(--cs-color-accent, #0073aa);
	padding: 2rem 2.5rem;
	margin-bottom: 2.5rem;
	border-radius: 8px;
	box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.08);
}

.cs-entry-qa__question-header {
	margin-bottom: 1rem;
}

.cs-entry-qa__question-label {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--cs-color-accent, #0073aa);
	background: rgba(var(--cs-color-accent-rgb, 0, 115, 170), 0.1);
	padding: 0.375rem 0.875rem;
	border-radius: 4px;
	margin-bottom: 1rem;
}

.cs-entry-qa__question-title {
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.3;
	margin: 0;
	color: var(--cs-color-heading, #1a1a1a);
}

.cs-entry-qa__question-excerpt {
	font-size: 1.125rem;
	line-height: 1.6;
	color: var(--cs-color-secondary, #666666);
	margin-top: 1rem;
	margin-bottom: 1rem;
}

/* 答案板块样式 */
.cs-entry-qa__answer {
	background: var(--cs-layout-background, #ffffff);
	border-left: 4px solid var(--cs-color-success, #28a745);
	padding: 2rem 2.5rem;
	border-radius: 8px;
	box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.08);
}

.cs-entry-qa__answer-header {
	margin-bottom: 1.5rem;
}

.cs-entry-qa__answer-label {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--cs-color-success, #28a745);
	background: rgba(var(--cs-color-success-rgb, 40, 167, 69), 0.1);
	padding: 0.375rem 0.875rem;
	border-radius: 4px;
}

.cs-entry-qa__answer-content {
	font-size: 1rem;
	line-height: 1.8;
	color: var(--cs-color-text, #333333);
}

.cs-entry-qa__answer-content p {
	margin-bottom: 1.25rem;
}

.cs-entry-qa__answer-content h2,
.cs-entry-qa__answer-content h3,
.cs-entry-qa__answer-content h4 {
	margin-top: 2rem;
	margin-bottom: 1rem;
	color: var(--cs-color-heading, #1a1a1a);
	font-weight: 600;
}

.cs-entry-qa__answer-content h2 {
	font-size: 1.5rem;
}

.cs-entry-qa__answer-content h3 {
	font-size: 1.25rem;
}

.cs-entry-qa__answer-content h4 {
	font-size: 1.125rem;
}

.cs-entry-qa__answer-content ul,
.cs-entry-qa__answer-content ol {
	margin: 1.25rem 0;
	padding-left: 2rem;
}

.cs-entry-qa__answer-content li {
	margin-bottom: 0.75rem;
}

.cs-entry-qa__answer-content blockquote {
	border-left: 4px solid var(--cs-color-accent, #0073aa);
	padding-left: 1.5rem;
	margin: 1.5rem 0;
	font-style: italic;
	color: var(--cs-color-secondary, #666666);
}

.cs-entry-qa__answer-content code {
	background: rgba(0, 0, 0, 0.05);
	padding: 0.2em 0.4em;
	border-radius: 3px;
	font-size: 0.9em;
}

.cs-entry-qa__answer-content pre {
	background: rgba(0, 0, 0, 0.05);
	padding: 1.5rem;
	border-radius: 6px;
	overflow-x: auto;
	margin: 1.5rem 0;
}

.cs-entry-qa__answer-content img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
	margin: 1.5rem 0;
}

/* 响应式设计 */
@media (max-width: 767.98px) {
	.cs-entry-qa__question,
	.cs-entry-qa__answer {
		padding: 1.5rem;
		margin-bottom: 1.5rem;
	}

	.cs-entry-qa__question-title {
		font-size: 1.5rem;
	}

	.cs-entry-qa__question-excerpt {
		font-size: 1rem;
	}

	.cs-entry-qa__answer-content {
		font-size: 0.9375rem;
	}
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
	.cs-entry-qa__question,
	.cs-entry-qa__answer {
		background: var(--cs-layout-background-dark, #1a1a1a);
	}

	.cs-entry-qa__question-title,
	.cs-entry-qa__answer-content h2,
	.cs-entry-qa__answer-content h3,
	.cs-entry-qa__answer-content h4 {
		color: var(--cs-color-heading-dark, #ffffff);
	}

	.cs-entry-qa__answer-content {
		color: var(--cs-color-text-dark, #e0e0e0);
	}

	.cs-entry-qa__answer-content code,
	.cs-entry-qa__answer-content pre {
		background: rgba(255, 255, 255, 0.1);
	}
}

