.hc-main {
    padding: 30px;
}
/* 页面标题 */
.page-title {
	font-size: 32px;
	color: var(--text-primary);
	margin-bottom: 10px;
	text-align: center;
	font-weight: 700;
	font-family: "楷体", "KaiTi", "STKaiti", serif;
}

.page-subtitle {
	font-size: 16px;
	color: var(--text-secondary);
	text-align: center;
	margin-bottom: 30px;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

/* 成语核心卡片 */
.idiom-card {
	background: var(--bg-card);
	border-radius: var(--radius-lg);
	padding: 28px;
	box-shadow: var(--shadow-md);
	margin-bottom: 28px;
	border: 1px solid var(--border-light);
	position: relative;
	overflow: hidden;
}

.idiom-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--primary-red), var(--accent-blue));
}

.idiom-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 24px;
}

.idiom-title-group {
	flex: 1;
}

.idiom-title {
	font-size: 38px;
	font-weight: 700;
	color: var(--text-primary);
	margin-bottom: 10px;
	line-height: 1.2;
	font-family: "楷体", "KaiTi", "STKaiti", serif;
	text-shadow: 1px 1px 2px rgba(44, 36, 22, 0.1);
}

.idiom-pinyin {
	font-size: 20px;
	color: var(--primary-red);
	font-weight: 600;
	margin-bottom: 6px;
	letter-spacing: 1px;
}

.idiom-pronunciation {
	font-size: 15px;
	color: var(--text-light);
	font-style: italic;
}

.idiom-actions {
	display: flex;
	gap: 10px;
}

.action-btn {
	border: 1px solid var(--border-medium);
	background: var(--bg-secondary);
	color: var(--text-secondary);
	width: 42px;
	height: 42px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: var(--shadow-sm);
}

.action-btn:hover {
	color: var(--primary-red);
	border-color: var(--primary-red);
	background: var(--bg-card);
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

/* 成语高亮样式 */
.idiom-highlight {
	color: var(--primary-red);
	font-weight: 600;
	background: rgba(195, 39, 43, 0.1);
	padding: 2px 4px;
	border-radius: 3px;
	position: relative;
}

.idiom-highlight::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 1px;
	background: var(--primary-red);
	opacity: 0.5;
}

/* 成语基本信息 - 美化版 */
.idiom-basic-info {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 15px;
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px dashed var(--border-light);
}
/* 成语基本信息区域超链接样式 */
.idiom-basic-info .info-value a {
	color: var(--text-primary);
	text-decoration: none;
	transition: all 0.3s ease;
	position: relative;
	font-weight: 600;
}

.idiom-basic-info .info-value a:hover {
	color: var(--primary-red);
}

.idiom-basic-info .info-value a::after {
	content: "";
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 0;
	height: 1px;
	background: var(--primary-red);
	transition: width 0.3s ease;
}

.idiom-basic-info .info-value a:hover::after {
	width: 100%;
}

/* 保持原有的.info-item悬停效果 */
.idiom-basic-info .info-item:hover .info-value a {
	color: var(--primary-red);
}

.info-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 15px;
	background: var(--bg-secondary);
	border-radius: var(--radius-md);
	border: 1px solid var(--border-light);
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.info-item::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--primary-red);
	transform: scaleX(0);
	transition: transform 0.3s ease;
}

.info-item:hover::before {
	transform: scaleX(1);
}

.info-item:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-sm);
}

.info-icon {
	width: 40px;
	height: 40px;
	background: var(--primary-red);
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 10px;
	font-size: 16px;
}

.info-label {
	font-size: 12px;
	color: var(--text-light);
	font-weight: 500;
	margin-bottom: 5px;
}

.info-value {
	font-size: 15px;
	color: var(--text-primary);
	font-weight: 600;
}

.star-rating {
	color: var(--primary-red);
	letter-spacing: 2px;
}

/* 主要模块1：成语造句展示 */
.idiom-sentences {
	background: var(--bg-card);
	border-radius: var(--radius-lg);
	padding: 25px;
	margin-bottom: 30px;
	border: 1px solid var(--border-light);
	box-shadow: var(--shadow-sm);
}

.section-title {
	font-size: 22px;
	color: var(--text-primary);
	margin-bottom: 25px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--primary-red);
	display: flex;
	align-items: center;
	gap: 12px;
	font-weight: 600;
}

.section-title i {
	color: var(--primary-red);
}
.section-title .more-link {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-red);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
    white-space: nowrap;
}

.more-link:hover {
    color: #c0392b;
}
/* 优化的造句列表样式 */
.sentence-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.sentence-list li {
	padding: 15px 15px 15px 40px;
	background: var(--bg-secondary);
	border-radius: var(--radius-md);
	margin-bottom: 12px;
	border-left: 4px solid var(--primary-red);
	position: relative;
	transition: all 0.3s ease;
	counter-increment: sentence-counter;
}

.sentence-list li:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-sm);
	background: #f9f6f0;
}

.sentence-list li::before {
	content: counter(sentence-counter);
	position: absolute;
	left: -20px;
	top: 50%;
	transform: translateY(-50%);
	background: var(--primary-red);
	color: white;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 600;
	box-shadow: 0 2px 5px rgba(195, 39, 43, 0.3);
}

/* 最新造句查询模块样式 */
.sentence-query {
	background: var(--bg-card);
	border-radius: var(--radius-lg);
	padding: 25px;
	margin-bottom: 30px;
	border: 1px solid var(--border-light);
	box-shadow: var(--shadow-sm);
}

.query-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.query-form {
	display: flex;
	gap: 15px;
	margin-bottom: 20px;
}

.query-form input {
	flex: 1;
	padding: 12px 18px;
	border: 1px solid var(--border-medium);
	border-radius: var(--radius-md);
	background: var(--bg-secondary);
	color: var(--text-primary);
	font-size: 15px;
	transition: all 0.3s ease;
}

.query-form input:focus {
	outline: none;
	border-color: var(--primary-red);
	box-shadow: 0 0 0 3px rgba(195, 39, 43, 0.1);
}

.query-form button {
	background: var(--primary-red);
	color: white;
	border: none;
	border-radius: var(--radius-md);
	padding: 0 30px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
}

.query-form button:hover {
	background: var(--red-dark);
	transform: translateY(-2px);
}

.query-results {
	border-top: 1px dashed var(--border-light);
	padding-top: 20px;
}

.result-title {
	font-size: 18px;
	color: var(--text-primary);
	margin-bottom: 15px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.result-title i {
	color: var(--primary-red);
}

.result-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.result-item {
	padding: 12px;
	background: var(--bg-secondary);
	border-radius: var(--radius-md);
	border-left: 3px solid var(--accent-blue);
	transition: all 0.3s ease;
}

.result-item:hover {
	transform: translateY(-1px);
	box-shadow: var(--shadow-sm);
}

.sentence-text {
	color: var(--text-secondary);
	line-height: 1.6;
	font-size: 14px;
	margin-bottom: 8px;
}

.result-meta {
	display: flex;
	justify-content: space-between;
	margin-top: 8px;
	font-size: 12px;
	color: var(--text-light);
}

.result-source {
	font-style: italic;
}

.more-link {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--accent-blue);
	text-decoration: none;
	font-size: 15px;
	font-weight: 500;
	transition: all 0.3s ease;
	padding: 8px 16px;
	border-radius: var(--radius-md);
	border: 1px solid var(--border-light);
	background: var(--bg-secondary);
}

.more-link:hover {
	color: white;
	background: var(--accent-blue);
	border-color: var(--accent-blue);
	transform: translateY(-2px);
	box-shadow: var(--shadow-sm);
}

.sentence-empty {
	text-align: center;
	padding: 40px 20px;
	color: var(--text-light);
	font-style: italic;
}

/* 成语链接样式 */
.idiom-link {
	color: var(--primary-red);
	text-decoration: none;
	font-weight: 600;
	transition: all 0.3s ease;
	position: relative;
}

.idiom-link:hover {
	color: var(--red-dark);
	text-decoration: underline;
}

.idiom-link::after {
	content: "";
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 0;
	height: 1px;
	background: var(--primary-red);
	transition: width 0.3s ease;
}

.idiom-link:hover::after {
	width: 100%;
}

/* 附加模块：造句技巧 */
.sentence-tips {
	background: var(--bg-card);
	border-radius: var(--radius-lg);
	padding: 25px;
	margin-bottom: 30px;
	border: 1px solid var(--border-light);
	box-shadow: var(--shadow-sm);
}

.tips-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
}

.tip-item {
	background: var(--bg-secondary);
	border-radius: var(--radius-md);
	padding: 18px;
	border-left: 4px solid var(--accent-blue);
	transition: all 0.3s ease;
}

.tip-item:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-sm);
}

.tip-title {
	font-size: 16px;
	color: var(--text-primary);
	margin-bottom: 10px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.tip-title i {
	color: var(--accent-blue);
}

.tip-content {
	color: var(--text-secondary);
	font-size: 14px;
	line-height: 1.6;
}

/* 附加模块：热门造句成语 */
.popular-idioms {
	background: var(--bg-card);
	border-radius: var(--radius-lg);
	padding: 25px;
	margin-bottom: 30px;
	border: 1px solid var(--border-light);
	box-shadow: var(--shadow-sm);
}

.popular-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 15px;
}

.popular-item {
	background: var(--bg-secondary);
	border-radius: var(--radius-md);
	padding: 18px;
	text-align: center;
	border: 1px solid var(--border-light);
	transition: all 0.3s ease;
	text-decoration: none;
	display: block;
}

.popular-item:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-md);
	border-color: var(--primary-red);
}

.popular-hanzi {
	font-size: 20px;
	color: var(--text-primary);
	font-weight: 600;
	margin-bottom: 5px;
	font-family: "楷体", "KaiTi", "STKaiti", serif;
}

.popular-pinyin {
	font-size: 14px;
	color: var(--primary-red);
	font-weight: 500;
}

/* 搜索卡片 */
.search-card {
	background: var(--bg-card);
	border-radius: var(--radius-lg);
	padding: 28px;
	box-shadow: var(--shadow-md);
	margin-bottom: 28px;
	border: 1px solid var(--border-light);
	position: relative;
	overflow: hidden;
}

.search-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--primary-red), var(--accent-blue));
}

.search-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.search-title {
	font-size: 22px;
	color: var(--text-primary);
	display: flex;
	align-items: center;
	gap: 12px;
}

.search-title i {
	color: var(--primary-red);
}

.search-form {
	display: flex;
	gap: 15px;
}

.search-form input {
	flex: 1;
	padding: 12px 18px;
	border: 1px solid var(--border-medium);
	border-radius: var(--radius-md);
	background: var(--bg-secondary);
	color: var(--text-primary);
	font-size: 15px;
	transition: all 0.3s ease;
}

.search-form input:focus {
	outline: none;
	border-color: var(--primary-red);
	box-shadow: 0 0 0 3px rgba(195, 39, 43, 0.1);
}

.search-form button {
	background: var(--primary-red);
	color: white;
	border: none;
	border-radius: var(--radius-md);
	padding: 0 30px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
}

.search-form button:hover {
	background: var(--red-dark);
	transform: translateY(-2px);
}

/* 热门搜索 */
.popular-searches {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px dashed var(--border-light);
}

.popular-title {
	font-size: 15px;
	color: var(--text-secondary);
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.popular-title i {
	color: var(--primary-red);
}

.popular-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.tag {
	padding: 6px 14px;
	background: var(--bg-secondary);
	color: var(--text-secondary);
	border-radius: 20px;
	font-size: 13px;
	cursor: pointer;
	transition: all 0.3s ease;
	border: 1px solid var(--border-light);
}

.tag:hover {
	background: var(--primary-red);
	color: white;
	border-color: var(--primary-red);
}

/* 结果卡片 */
.result-card {
	background: var(--bg-card);
	border-radius: var(--radius-lg);
	padding: 25px;
	margin-bottom: 25px;
	border: 1px solid var(--border-light);
	box-shadow: var(--shadow-sm);
	position: relative;
	overflow: hidden;
}

.result-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--accent-blue);
}

.result-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 20px;
}

.result-title {
	font-size: 24px;
	color: var(--text-primary);
	font-weight: 700;
	margin-bottom: 5px;
	font-family: "楷体", "KaiTi", "STKaiti", serif;
}

.result-pinyin {
	font-size: 16px;
	color: var(--primary-red);
	font-weight: 500;
}

.result-actions {
	display: flex;
	gap: 8px;
}

.action-btn {
	border: 1px solid var(--border-medium);
	background: var(--bg-secondary);
	color: var(--text-secondary);
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: var(--shadow-sm);
}

.action-btn:hover {
	color: var(--primary-red);
	border-color: var(--primary-red);
	background: var(--bg-card);
	transform: translateY(-2px);
}

.result-content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.meaning-section, .synonyms-section {
	background: var(--bg-secondary);
	border-radius: var(--radius-md);
	padding: 18px;
}

.meaning-section {
	border-left: 4px solid var(--primary-red);
}

.synonyms-section {
	border-left: 4px solid var(--accent-blue);
}

.synonyms-section .section-title i {
	color: var(--accent-blue);
}

.meaning-text {
	color: var(--text-secondary);
	line-height: 1.7;
	font-size: 14px;
}

.synonyms-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.synonym-item {
	padding: 8px 16px;
	background: var(--bg-card);
	color: var(--text-primary);
	text-decoration: none;
	border-radius: 20px;
	border: 1px solid var(--border-medium);
	transition: all 0.3s ease;
	font-size: 14px;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 6px;
}

.synonym-item:hover {
	background: var(--accent-blue);
	color: white;
	border-color: var(--accent-blue);
	transform: translateY(-2px);
}

.synonym-item i {
	font-size: 12px;
}

/* 近义词辨析卡片 */
.analysis-card {
	background: var(--bg-card);
	border-radius: var(--radius-lg);
	padding: 25px;
	margin-bottom: 25px;
	border: 1px solid var(--border-light);
	box-shadow: var(--shadow-sm);
	position: relative;
	overflow: hidden;
}

.analysis-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--primary-red), var(--accent-blue));
}

.analysis-title {
	font-size: 22px;
	color: var(--text-primary);
	margin-bottom: 20px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--primary-red);
	display: flex;
	align-items: center;
	gap: 12px;
	font-weight: 600;
}

.analysis-title i {
	color: var(--primary-red);
}

.analysis-intro {
	color: var(--text-secondary);
	line-height: 1.7;
	margin-bottom: 20px;
	font-size: 15px;
}

.analysis-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
}

.analysis-item {
	background: var(--bg-secondary);
	border-radius: var(--radius-md);
	padding: 20px;
	border: 1px solid var(--border-light);
	transition: all 0.3s ease;
}

.analysis-item:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-sm);
}

.analysis-idiom {
	font-size: 20px;
	color: var(--text-primary);
	font-weight: 600;
	margin-bottom: 8px;
	font-family: "楷体", "KaiTi", "STKaiti", serif;
}

.analysis-pinyin {
	font-size: 15px;
	color: var(--primary-red);
	font-weight: 500;
	margin-bottom: 12px;
}

.analysis-meaning {
	color: var(--text-secondary);
	line-height: 1.6;
	margin-bottom: 12px;
	font-size: 14px;
}

.analysis-differentiation {
	color: var(--text-light);
	line-height: 1.6;
	font-size: 13px;
	padding: 12px;
	background: var(--bg-tertiary);
	border-radius: var(--radius-sm);
	border-left: 3px solid var(--accent-blue);
}

/* 近义词使用指南 */
.usage-guide {
	background: var(--bg-card);
	border-radius: var(--radius-lg);
	padding: 25px;
	margin-bottom: 25px;
	border: 1px solid var(--border-light);
	box-shadow: var(--shadow-sm);
}

.guide-title {
	font-size: 22px;
	color: var(--text-primary);
	margin-bottom: 20px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--primary-red);
	display: flex;
	align-items: center;
	gap: 12px;
	font-weight: 600;
}

.guide-title i {
	color: var(--primary-red);
}

.guide-content {
	color: var(--text-secondary);
	line-height: 1.7;
	font-size: 15px;
}

.guide-tips {
	margin-top: 20px;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 15px;
}

.guide-tip {
	background: var(--bg-secondary);
	border-radius: var(--radius-md);
	padding: 15px;
	border-left: 4px solid var(--primary-red);
}

.tip-title {
	font-size: 15px;
	color: var(--text-primary);
	margin-bottom: 8px;
	font-weight: 600;
}

.tip-content {
	color: var(--text-secondary);
	font-size: 14px;
	line-height: 1.5;
}

/* 推荐区域 */
.recommendation-section {
	background: var(--bg-card);
	border-radius: var(--radius-lg);
	padding: 25px;
	margin-bottom: 30px;
	border: 1px solid var(--border-light);
	box-shadow: var(--shadow-sm);
}
.recommendation-header {
    font-size: 22px;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-red);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}
.recommendation-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 20px;
}

.recommendation-item {
	background: var(--bg-secondary);
	border-radius: var(--radius-md);
	padding: 20px;
	text-align: center;
	border: 1px solid var(--border-light);
	transition: all 0.3s ease;
	text-decoration: none;
	display: block;
}

.recommendation-item:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-md);
	border-color: var(--primary-red);
}

.recommendation-hanzi {
	font-size: 22px;
	color: var(--text-primary);
	font-weight: 600;
	margin-bottom: 5px;
	font-family: "楷体", "KaiTi", "STKaiti", serif;
}

.recommendation-pinyin {
	font-size: 15px;
	color: var(--primary-red);
	font-weight: 500;
	margin-bottom: 10px;
}

.recommendation-meaning {
	font-size: 14px;
	color: var(--text-light);
	line-height: 1.4;
}

 /* 成语意思 */
.idiom-meaning {
	background: var(--bg-card);
	border-radius: var(--radius-lg);
	padding: 25px;
	margin-bottom: 30px;
	border: 1px solid var(--border-light);
	box-shadow: var(--shadow-sm);
}

.meaning-item {
	margin-bottom: 20px;
}

.meaning-item:last-child {
	margin-bottom: 0;
}

.meaning-title {
	font-size: 16px;
	color: var(--text-primary);
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.meaning-title i {
	color: var(--primary-red);
}

.meaning-content {
	color: var(--text-secondary);
	line-height: 1.7;
	font-size: 15px;
	padding-left: 25px;
}
/* 详细解释部分样式 */
.meaning-content {
	color: var(--text-secondary);
	line-height: 1.8;
	font-size: 15px;
	padding-left: 28px;
}

/* 标题样式 */
.meaning-content h3 {
	color: var(--text-primary);
	font-size: 18px;
	font-weight: 700;
	margin: 25px 0 15px 0;
	padding: 12px 0;
	border-bottom: 2px solid var(--primary-red);
	position: relative;
	display: flex;
	align-items: center;
}

.meaning-content h3::before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 20px;
	background: var(--primary-red);
	margin-right: 10px;
	border-radius: var(--radius-sm);
}

.meaning-content h4 {
	color: var(--text-primary);
	font-size: 16px;
	font-weight: 600;
	margin: 20px 0 12px 0;
	padding-left: 15px;
	border-left: 3px solid var(--accent-blue);
	background: rgba(42, 110, 187, 0.05);
	padding-top: 8px;
	padding-bottom: 8px;
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* 段落样式 */
.meaning-content p {
	margin-bottom: 15px;
	text-align: justify;
}

.meaning-content p.explain {
	background: rgba(245, 241, 232, 0.6);
	padding: 15px 20px;
	border-radius: var(--radius-md);
	border-left: 4px solid var(--primary-red);
	margin: 15px 0;
	position: relative;
}

.meaning-content p.entry {
	display: flex;
	margin-bottom: 10px;
	padding: 10px 15px;
	background: var(--bg-secondary);
	border-radius: var(--radius-md);
	border: 1px solid var(--border-light);
}

.meaning-content p.entry .name {
	min-width: 80px;
	font-weight: 600;
	color: var(--primary-red);
}

/* 灰色文本 */
.meaning-content .gray {
	color: var(--text-light);
	font-style: italic;
}

/* 标签样式 */
.meaning-content label {
	background: rgba(195, 39, 43, 0.1);
	color: var(--primary-red);
	padding: 2px 8px;
	border-radius: var(--radius-sm);
	font-weight: 600;
	font-size: 14px;
	margin: 0 2px;
	border: 1px solid rgba(195, 39, 43, 0.2);
}

/* 强调文本 */
.meaning-content em {
	color: var(--primary-red);
	font-weight: 600;
	font-style: normal;
	padding: 0 2px;
}

/* 详情/摘要样式 */
.meaning-content details {
	background: var(--bg-secondary);
	border-radius: var(--radius-md);
	margin: 15px 0;
	border: 1px solid var(--border-light);
	overflow: hidden;
}

.meaning-content summary {
	padding: 12px 20px;
	background: rgba(42, 110, 187, 0.08);
	color: var(--accent-blue);
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	border-bottom: 1px solid transparent;
}

.meaning-content summary:hover {
	background: rgba(42, 110, 187, 0.12);
}

.meaning-content details[open] summary {
	border-bottom: 1px solid var(--border-light);
}

/* 注解样式 */
.meaning-content p.note {
	padding: 10px 15px;
	margin: 8px 0;
	background: var(--bg-tertiary);
	border-radius: var(--radius-sm);
	border-left: 3px solid var(--accent-blue);
	font-size: 14px;
}

.meaning-content p.note .no {
	color: var(--primary-red);
	font-weight: 600;
	margin-right: 5px;
}

.meaning-content p.title {
	font-weight: 600;
	color: var(--text-primary);
	margin: 10px 0 5px 0;
	padding-left: 10px;
	border-left: 2px solid var(--primary-red);
}

/* 列表样式 */
.meaning-content ul.list {
	margin: 15px 0;
	padding-left: 0;
	list-style: none;
}

.meaning-content ul.list li {
	padding: 8px 0;
	margin-bottom: 8px;
	border-bottom: 1px dashed var(--border-light);
	position: relative;
	padding-left: 30px;
}

.meaning-content ul.list li:last-child {
	border-bottom: none;
}

.meaning-content ul.list li .no {
	position: absolute;
	left: 0;
	top: 8px;
	width: 24px;
	height: 24px;
	background: var(--primary-red);
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 600;
}
/* 打印样式 */
@media print {
	.meaning-content {
		color: #000;
	}

	.meaning-content p.explain {
		background: #f9f9f9;
		border-left: 4px solid #000;
	}

	.meaning-content details {
		border: 1px solid #000;
	}

	.meaning-content summary {
		background: #e0e0e0;
		color: #000;
	}
}
        
/* 多语言翻译样式 */
.language-translations {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px dashed var(--border-light);
}

.translation-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 12px;
	padding-left: 28px;
}

.translation-item {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 8px 12px;
	background: var(--bg-secondary);
	border-radius: var(--radius-md);
	border-left: 3px solid var(--accent-blue);
}

.language-label {
	font-size: 14px;
	color: var(--text-primary);
	font-weight: 600;
	min-width: 60px;
}

.language-content {
	font-size: 14px;
	color: var(--text-secondary);
	line-height: 1.5;
	flex: 1;
}

        /* 拼音主卡片 */
.pinyin-card {
	background: var(--bg-card);
	border-radius: var(--radius-lg);
	padding: 28px;
	box-shadow: var(--shadow-md);
	margin-bottom: 28px;
	border: 1px solid var(--border-light);
	position: relative;
	overflow: hidden;
}

.pinyin-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--primary-red), var(--accent-blue));
}

.pinyin-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 24px;
}

.pinyin-title-group {
	flex: 1;
}

.pinyin-title {
	font-size: 38px;
	font-weight: 700;
	color: var(--text-primary);
	margin-bottom: 10px;
	line-height: 1.2;
	font-family: "楷体", "KaiTi", "STKaiti", serif;
	text-shadow: 1px 1px 2px rgba(44, 36, 22, 0.1);
}

.pinyin-display {
	font-size: 28px;
	color: var(--primary-red);
	font-weight: 600;
	margin-bottom: 6px;
	letter-spacing: 1px;
}

.pinyin-pronunciation {
	font-size: 15px;
	color: var(--text-light);
	font-style: italic;
}

.pinyin-actions {
	display: flex;
	gap: 10px;
}

.action-btn {
	border: 1px solid var(--border-medium);
	background: var(--bg-secondary);
	color: var(--text-secondary);
	width: 42px;
	height: 42px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: var(--shadow-sm);
}

.action-btn:hover {
	color: var(--primary-red);
	border-color: var(--primary-red);
	background: var(--bg-card);
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

        /* 拼音详情 */
.pinyin-details {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 15px;
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px dashed var(--border-light);
}

.detail-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 15px;
	background: var(--bg-secondary);
	border-radius: var(--radius-md);
	border: 1px solid var(--border-light);
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.detail-item::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--primary-red);
	transform: scaleX(0);
	transition: transform 0.3s ease;
}

.detail-item:hover::before {
	transform: scaleX(1);
}

.detail-item:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-sm);
}

.detail-icon {
	width: 40px;
	height: 40px;
	background: var(--primary-red);
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 10px;
	font-size: 16px;
}

.detail-label {
	font-size: 12px;
	color: var(--text-light);
	font-weight: 500;
	margin-bottom: 5px;
}

.detail-value {
	font-size: 15px;
	color: var(--text-primary);
	font-weight: 600;
}

        /* 文字转拼音工具 */
.pinyin-tool {
	background: var(--bg-card);
	border-radius: var(--radius-lg);
	padding: 25px;
	margin-bottom: 25px;
	border: 1px solid var(--border-light);
	box-shadow: var(--shadow-sm);
	position: relative;
	overflow: hidden;
}

.pinyin-tool::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--accent-blue);
}

.tool-title {
	font-size: 22px;
	color: var(--text-primary);
	margin-bottom: 20px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--accent-blue);
	display: flex;
	align-items: center;
	gap: 12px;
	font-weight: 600;
}

.tool-title i {
	color: var(--accent-blue);
}

.tool-description {
	color: var(--text-secondary);
	margin-bottom: 20px;
	font-size: 15px;
	line-height: 1.6;
}

.tool-form {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 15px;
	margin-bottom: 20px;
}

.tool-input {
	padding: 12px 18px;
	border: 1px solid var(--border-medium);
	border-radius: var(--radius-md);
	background: var(--bg-secondary);
	color: var(--text-primary);
	font-size: 15px;
	transition: all 0.3s ease;
}

.tool-input:focus {
	outline: none;
	border-color: var(--accent-blue);
	box-shadow: 0 0 0 3px rgba(42, 110, 187, 0.1);
}

.tool-button {
	background: var(--accent-blue);
	color: white;
	border: none;
	border-radius: var(--radius-md);
	padding: 0 30px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
}

.tool-button:hover {
	background: var(--blue-light);
	transform: translateY(-2px);
}

.tool-options {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	margin-bottom: 20px;
	padding: 15px;
	background: var(--bg-secondary);
	border-radius: var(--radius-md);
	border: 1px solid var(--border-light);
}

.option-group {
	display: flex;
	align-items: center;
	gap: 8px;
}

.option-label {
	font-size: 14px;
	color: var(--text-secondary);
}

.option-select {
	padding: 8px 12px;
	border: 1px solid var(--border-medium);
	border-radius: var(--radius-md);
	background: white;
	color: var(--text-primary);
	font-size: 14px;
}

.tool-result {
	background: var(--bg-secondary);
	border-radius: var(--radius-md);
	padding: 20px;
	border: 1px solid var(--border-light);
	min-height: 100px;
}

.result-text {
	color: var(--text-primary);
	font-size: 18px;
	line-height: 1.8;
	text-align: center;
}

.char-pinyin {
	display: inline-block;
	margin: 0 8px;
	text-align: center;
	vertical-align: top;
}

.char {
	display: block;
	font-size: 24px;
	font-weight: 600;
	margin-bottom: 5px;
	font-family: "楷体", "KaiTi", "STKaiti", serif;
}

.pinyin {
	display: block;
	font-size: 16px;
	color: var(--primary-red);
	font-weight: 500;
}

.error-message {
	color: var(--primary-red);
	text-align: center;
	font-size: 16px;
	margin-top: 10px;
}

        /* 拼音查询历史 */
.pinyin-history {
	background: var(--bg-card);
	border-radius: var(--radius-lg);
	padding: 25px;
	margin-bottom: 25px;
	border: 1px solid var(--border-light);
	box-shadow: var(--shadow-sm);
}

.history-title {
	font-size: 22px;
	color: var(--text-primary);
	margin-bottom: 20px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--primary-red);
	display: flex;
	align-items: center;
	gap: 12px;
	font-weight: 600;
}

.history-title i {
	color: var(--primary-red);
}

.history-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 15px;
}

.history-item {
	background: var(--bg-secondary);
	border-radius: var(--radius-md);
	padding: 15px;
	text-align: center;
	border: 1px solid var(--border-light);
	transition: all 0.3s ease;
	text-decoration: none;
	display: block;
}

.history-item:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-sm);
	border-color: var(--primary-red);
}

.history-hanzi {
	font-size: 20px;
	color: var(--text-primary);
	font-weight: 600;
	margin-bottom: 5px;
	font-family: "楷体", "KaiTi", "STKaiti", serif;
}

.history-pinyin {
	font-size: 14px;
	color: var(--primary-red);
	font-weight: 500;
}

        /* 拼音学习指南 */
.pinyin-guide {
	background: var(--bg-card);
	border-radius: var(--radius-lg);
	padding: 25px;
	margin-bottom: 25px;
	border: 1px solid var(--border-light);
	box-shadow: var(--shadow-sm);
}

.guide-title {
	font-size: 22px;
	color: var(--text-primary);
	margin-bottom: 20px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--primary-red);
	display: flex;
	align-items: center;
	gap: 12px;
	font-weight: 600;
}

.guide-title i {
	color: var(--primary-red);
}

.guide-content {
	color: var(--text-secondary);
	line-height: 1.7;
	font-size: 15px;
}

.guide-tips {
	margin-top: 20px;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 15px;
}

.guide-tip {
	background: var(--bg-secondary);
	border-radius: var(--radius-md);
	padding: 15px;
	border-left: 4px solid var(--primary-red);
}

.tip-title {
	font-size: 15px;
	color: var(--text-primary);
	margin-bottom: 8px;
	font-weight: 600;
}

.tip-content {
	color: var(--text-secondary);
	font-size: 14px;
	line-height: 1.5;
}
        
        /* 相关成语 */
.related-idioms {
	background: var(--bg-card);
	border-radius: var(--radius-lg);
	padding: 25px;
	margin-bottom: 30px;
	border: 1px solid var(--border-light);
	box-shadow: var(--shadow-sm);
}

.related-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 20px;
}

.related-item {
	background: var(--bg-secondary);
	border-radius: var(--radius-md);
	padding: 20px;
	text-align: center;
	border: 1px solid var(--border-light);
	transition: all 0.3s ease;
	text-decoration: none;
	display: block;
}

.related-item:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-md);
	border-color: var(--primary-red);
}

.related-hanzi {
	font-size: 22px;
	color: var(--text-primary);
	font-weight: 600;
	margin-bottom: 5px;
	font-family: "楷体", "KaiTi", "STKaiti", serif;
}

.related-pinyin {
	font-size: 15px;
	color: var(--primary-red);
	font-weight: 500;
	margin-bottom: 10px;
}

.related-meaning {
	font-size: 14px;
	color: var(--text-light);
	line-height: 1.4;
}        
/* 成语接龙样式 */
.idiom-chain {
	background: var(--bg-card);
	border-radius: var(--radius-lg);
	padding: 25px;
	margin-bottom: 30px;
	border: 1px solid var(--border-light);
	box-shadow: var(--shadow-sm);
}

.chain-description {
	color: var(--text-secondary);
	margin-bottom: 20px;
	font-size: 15px;
	line-height: 1.6;
}

.chain-list {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: flex-start;
	margin-bottom: 20px;
}

.chain-item {
	padding: 10px 20px;
	background: var(--bg-secondary);
	color: var(--text-primary);
	text-decoration: none;
	border-radius: var(--radius-md);
	border: 1px solid var(--border-medium);
	transition: all 0.3s ease;
	font-weight: 500;
	font-family: "楷体", "KaiTi", "STKaiti", serif;
	font-size: 16px;
	position: relative;
	overflow: hidden;
}

.chain-item::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--primary-red);
	transform: scaleX(0);
	transition: transform 0.3s ease;
}

.chain-item:hover::before {
	transform: scaleX(1);
}

.chain-item:hover {
	background: var(--primary-red);
	color: white;
	border-color: var(--primary-red);
	transform: translateY(-2px);
	box-shadow: var(--shadow-sm);
}

.chain-current {
	background: var(--primary-red);
	color: white;
	border-color: var(--primary-red);
	font-weight: 600;
	box-shadow: var(--shadow-sm);
}

.chain-current::before {
	transform: scaleX(1);
}

/* 错误提示样式 */
.chain-error {
	background: rgba(195, 39, 43, 0.08);
	border: 1px solid rgba(195, 39, 43, 0.3);
	border-radius: var(--radius-md);
	padding: 15px 20px;
	color: var(--primary-red);
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	animation: fadeIn 0.5s ease;
}

.chain-error i {
	font-size: 16px;
	flex-shrink: 0;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

        /* 字义分解 */
.character-breakdown {
	background: var(--bg-card);
	border-radius: var(--radius-lg);
	padding: 25px;
	margin-bottom: 30px;
	border: 1px solid var(--border-light);
	box-shadow: var(--shadow-sm);
}

.character-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
}

.character-item {
	background: var(--bg-secondary);
	border-radius: var(--radius-md);
	padding: 20px;
	text-align: center;
	border: 1px solid var(--border-light);
	transition: all 0.3s ease;
}

.character-item:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-sm);
}

.character-hanzi {
	font-size: 36px;
	color: var(--text-primary);
	font-weight: 600;
	margin-bottom: 8px;
	font-family: "楷体", "KaiTi", "STKaiti", serif;
}

.character-pinyin {
	font-size: 16px;
	color: var(--primary-red);
	font-weight: 500;
	margin-bottom: 10px;
}

.character-meaning {
	font-size: 14px;
	color: var(--text-secondary);
	line-height: 1.5;
}
       /* 近义词反义词 */
.idiom-synonyms-antonyms {
	background: var(--bg-card);
	border-radius: var(--radius-lg);
	padding: 25px;
	margin-bottom: 30px;
	border: 1px solid var(--border-light);
	box-shadow: var(--shadow-sm);
}

.syn-ant-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.syn-ant-grid a{
    color: inherit;
    text-decoration: none;
}

.synonym-section, .antonym-section {
	background: var(--bg-secondary);
	border-radius: var(--radius-md);
	padding: 20px;
}

.synonym-section {
	border-left: 4px solid var(--accent-blue);
}

.antonym-section {
	border-left: 4px solid var(--primary-red);
}

.syn-ant-title {
	font-size: 16px;
	color: var(--text-primary);
	margin-bottom: 15px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.syn-ant-title i {
	color: var(--accent-blue);
}

.antonym-section .syn-ant-title i {
	color: var(--primary-red);
}

.syn-ant-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.syn-ant-item {
	padding: 8px 16px;
	background: var(--bg-card);
	color: var(--text-primary);
	text-decoration: none;
	border-radius: 20px;
	border: 1px solid var(--border-medium);
	transition: all 0.3s ease;
	font-size: 14px;
	font-weight: 500;
}

.syn-ant-item:hover {
	background: var(--accent-blue);
	color: white;
	border-color: var(--accent-blue);
	transform: translateY(-2px);
}

.antonym-section .syn-ant-item:hover {
	background: var(--primary-red);
	border-color: var(--primary-red);
}        

/* 响应式设计 */
@media (max-width: 768px) {
	.idiom-header {
		flex-direction: column;
		gap: 16px;
	}

	.idiom-actions {
		align-self: flex-end;
	}

	.idiom-basic-info {
		grid-template-columns: repeat(2, 1fr);
	}

	.query-form {
		flex-direction: column;
	}

	.tips-list {
		grid-template-columns: 1fr;
	}

	.popular-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.sentence-list li {
		padding-left: 50px;
	}

	.sentence-list li::before {
		left: -15px;
	}

	.query-form {
		flex-direction: column;
	}

	.result-meta {
		flex-direction: column;
		gap: 5px;
	}

	.pinyin-header {
		flex-direction: column;
		gap: 16px;
	}

	.pinyin-actions {
		align-self: flex-end;
	}

	.pinyin-details {
		grid-template-columns: repeat(2, 1fr);
	}

	.tool-form {
		grid-template-columns: 1fr;
	}

	.history-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.guide-tips {
		grid-template-columns: 1fr;
	}

	.related-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.character-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.more-link {
		align-self: flex-end;
	}

	.chain-list {
		justify-content: center;
	}

	.chain-item {
		padding: 8px 16px;
		font-size: 15px;
	}

	.meaning-content {
		padding-left: 0;
	}

	.meaning-content h3 {
		font-size: 17px;
	}

	.meaning-content h4 {
		font-size: 15px;
	}

	.meaning-content p.entry {
		flex-direction: column;
	}

	.meaning-content p.entry .name {
		min-width: auto;
		margin-bottom: 5px;
	}
}

@media (max-width: 480px) {
    .hc-main {
        padding: 20px;
    }    
	.idiom-title {
		font-size: 32px;
	}

	.idiom-basic-info {
		grid-template-columns: 1fr;
	}

	.popular-grid {
		grid-template-columns: 1fr;
	}

	.sentence-list li {
		padding-left: 45px;
	}

	.sentence-list li::before {
		left: -10px;
		width: 28px;
		height: 28px;
		font-size: 12px;
	}

	.pinyin-title {
		font-size: 32px;
	}

	.pinyin-details {
		grid-template-columns: 1fr;
	}

	.history-grid {
		grid-template-columns: 1fr;
	}

	.related-grid {
		grid-template-columns: 1fr;
	}

	.character-grid {
		grid-template-columns: 1fr;
	}

	.more-link {
		align-self: stretch;
		text-align: center;
		justify-content: center;
	}

	.chain-list {
		flex-direction: column;
		align-items: center;
	}

	.chain-item {
		width: 100%;
		text-align: center;
	}

	.translation-item {
		flex-direction: column;
		gap: 4px;
	}

	.language-label {
		min-width: auto;
	}
}