/* 主内容区 */
.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;
}
/* 拼音核心卡片 */
.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;
	text-align: center;
}

.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 {
	margin-bottom: 20px;
}

.pinyin-title {
	font-size: 42px;
	font-weight: 700;
	color: var(--primary-red);
	margin-bottom: 8px;
	letter-spacing: 2px;
}

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

.pinyin-stats {
	display: flex;
	justify-content: center;
	gap: 30px;
	margin-top: 20px;
}

.stat-item {
	text-align: center;
}

.stat-value {
	font-size: 24px;
	color: var(--primary-red);
	font-weight: 600;
	display: block;
}

.stat-label {
	font-size: 14px;
	color: var(--text-light);
	margin-top: 5px;
}

/* 同音词主区域 */
.homophone-main {
	margin: 30px 0;
}

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

.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.with-more-link {
    justify-content: space-between;
}

.section-title .title-text {
    flex-shrink: 0;
}

.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;
}

.more-link:hover {
    color: #c0392b;
}

/* 同音词分类 */
.homophone-categories {
	display: flex;
	gap: 10px;
	margin-bottom: 25px;
	flex-wrap: wrap;
}

.category-btn {
	padding: 8px 16px;
	background: var(--bg-secondary);
	color: var(--text-secondary);
	border: 1px solid var(--border-medium);
	border-radius: 20px;
	cursor: pointer;
	transition: all 0.3s ease;
	font-size: 14px;
}

.category-btn.active {
	background: var(--primary-red);
	color: white;
	border-color: var(--primary-red);
}

.category-btn:hover:not(.active) {
	background: var(--bg-tertiary);
	border-color: var(--primary-red);
	color: var(--primary-red);
}

/* 同音词网格 */
.homophone-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
	margin-bottom: 30px;
}

.homophone-card {
	background: var(--bg-card);
	border-radius: var(--radius-lg);
	padding: 20px;
	border: 1px solid var(--border-light);
	box-shadow: var(--shadow-sm);
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.homophone-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 4px;
	height: 100%;
	background: var(--accent-blue);
	border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.homophone-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-md);
}

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

.homophone-word {
	font-size: 28px;
	color: var(--text-primary);
	font-weight: 600;
	font-family: "楷体", "KaiTi", "STKaiti", serif;
}

.homophone-pinyin {
	font-size: 16px;
	color: var(--primary-red);
	font-weight: 500;
	margin-top: 5px;
}

.word-type {
	background: var(--primary-red);
	color: white;
	padding: 4px 10px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
}

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

.homophone-example {
	background: var(--bg-secondary);
	padding: 10px 12px;
	border-radius: var(--radius-sm);
	border-left: 3px solid var(--primary-red);
	font-size: 13px;
	color: var(--text-secondary);
	line-height: 1.5;
}

/* 同音词辨析 */
.homophone-analysis {
	background: var(--bg-secondary);
	border-radius: var(--radius-lg);
	padding: 25px;
	margin: 30px 0;
	border: 1px solid var(--border-light);
}

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

.analysis-card {
	background: var(--bg-card);
	border-radius: var(--radius-md);
	padding: 20px;
	border: 1px solid var(--border-light);
	box-shadow: var(--shadow-sm);
}

.analysis-card h3 {
	font-size: 16px;
	color: var(--text-primary);
	margin-bottom: 15px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--border-light);
	display: flex;
	align-items: center;
	gap: 8px;
}

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

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

.analysis-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 10px;
	background: var(--bg-secondary);
	border-radius: var(--radius-sm);
}

.analysis-item i {
	color: var(--primary-red);
	margin-top: 2px;
	flex-shrink: 0;
}

.analysis-item span {
	font-size: 14px;
	color: var(--text-secondary);
	line-height: 1.5;
}

       /* 拼音工具区域 */
.pinyin-tool-section {
	margin: 30px 0;
}

        /* 汉字转拼音工具 */
.pinyin-tool {
	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);
}

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

.tool-input-group {
	display: flex;
	gap: 15px;
	margin-bottom: 20px;
}

.tool-input {
	flex: 1;
	padding: 15px;
	border: 1px solid var(--border-medium);
	border-radius: var(--radius-md);
	font-size: 16px;
	background: var(--bg-secondary);
	transition: all 0.3s ease;
	font-family: "楷体", "KaiTi", "STKaiti", serif;
}

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

.tool-btn {
	padding: 15px 25px;
	background: var(--primary-red);
	color: white;
	border: none;
	border-radius: var(--radius-md);
	cursor: pointer;
	font-weight: 600;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	gap: 8px;
}

.tool-btn:hover {
	background: var(--red-dark);
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

.tool-options {
	display: flex;
	gap: 15px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.option-item {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	color: var(--text-secondary);
}

.option-item input {
	accent-color: var(--primary-red);
}
      /* 拼音结果显示 */
.pinyin-result {
	background: var(--bg-secondary);
	border-radius: var(--radius-md);
	padding: 20px;
	border: 1px solid var(--border-light);
	min-height: 80px;
	display: none;
}

.pinyin-result.show {
	display: block;
}

.result-title {
	font-size: 16px;
	color: var(--text-primary);
	margin-bottom: 10px;
	font-weight: 600;
}

.pinyin-display {
	font-size: 24px;
	color: var(--primary-red);
	line-height: 1.8;
	font-weight: 500;
	letter-spacing: 1px;
}

.pinyin-display .char {
	margin-right: 15px;
	display: inline-block;
	text-align: center;
	min-width: 60px;
}

.pinyin-display .char .hanzi {
	font-size: 20px;
	color: var(--text-primary);
	display: block;
	font-family: "楷体", "KaiTi", "STKaiti", serif;
}

.pinyin-display .char .pinyin {
	font-size: 14px;
	color: var(--primary-red);
	display: block;
}        
        
/* 同音词查询工具 */
.homophone-tool {
	background: var(--bg-secondary);
	border-radius: var(--radius-lg);
	padding: 25px;
	margin: 30px 0;
	border: 1px solid var(--border-light);
}

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

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

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

.tool-input-group {
	display: flex;
	gap: 15px;
	margin-bottom: 20px;
}

.tool-input {
	flex: 1;
	padding: 15px;
	border: 1px solid var(--border-medium);
	border-radius: var(--radius-md);
	font-size: 16px;
	background: var(--bg-card);
	transition: all 0.3s ease;
}

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

.tool-btn {
	padding: 15px 25px;
	background: var(--primary-red);
	color: white;
	border: none;
	border-radius: var(--radius-md);
	cursor: pointer;
	font-weight: 600;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	gap: 8px;
}

.tool-btn:hover {
	background: var(--red-dark);
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

        /* 最近查询模块 */
.recent-queries {
	margin: 30px 0;
}

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

.query-item {
	background: var(--bg-card);
	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;
	box-shadow: var(--shadow-sm);
}

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

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

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

.query-item .time {
	font-size: 12px;
	color: var(--text-light);
	margin-top: 8px;
}

/* 同音词学习指南 */
.learning-guide {
	background: var(--bg-secondary);
	border-radius: var(--radius-lg);
	padding: 25px;
	margin: 30px 0;
	border: 1px solid var(--border-light);
}

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

.guide-card {
	background: var(--bg-card);
	border-radius: var(--radius-md);
	padding: 20px;
	border: 1px solid var(--border-light);
	box-shadow: var(--shadow-sm);
}

.guide-card h3 {
	font-size: 16px;
	color: var(--text-primary);
	margin-bottom: 15px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--border-light);
	display: flex;
	align-items: center;
	gap: 8px;
}

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

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

.guide-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 10px;
	background: var(--bg-secondary);
	border-radius: var(--radius-sm);
}

.guide-item i {
	color: var(--primary-red);
	margin-top: 2px;
	flex-shrink: 0;
}

.guide-item span {
	font-size: 14px;
	color: var(--text-secondary);
	line-height: 1.5;
}

        /* 核心词卡 */
.word-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;
}
.word-card a {
    color: inherit;
    text-decoration: underline;
    text-decoration-style: solid;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}

.word-card a:hover {
    text-decoration-style: wavy;
}

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

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

.word-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);
}

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

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

.word-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);
}

/* 主要模块1：成语造句展示 */
.words-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);
}

/* 优化的造句列表样式 */
.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;
}

.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-secondary);
	border-radius: var(--radius-lg);
	padding: 25px;
	margin: 30px 0;
	border: 1px solid var(--border-light);
}

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

.tips-card {
	background: var(--bg-card);
	border-radius: var(--radius-md);
	padding: 20px;
	border: 1px solid var(--border-light);
	box-shadow: var(--shadow-sm);
}

.tips-card h3 {
	font-size: 16px;
	color: var(--text-primary);
	margin-bottom: 15px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--border-light);
	display: flex;
	align-items: center;
	gap: 8px;
}

.tips-card h3 i {
	color: var(--primary-red);
}

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

.tips-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 10px;
	background: var(--bg-secondary);
	border-radius: var(--radius-sm);
}

.tips-item i {
	color: var(--primary-red);
	margin-top: 2px;
	flex-shrink: 0;
}

.tips-item span {
	font-size: 14px;
	color: var(--text-secondary);
	line-height: 1.5;
}

       /* 拼音知识区域 */
.pinyin-knowledge {
	background: var(--bg-secondary);
	border-radius: var(--radius-lg);
	padding: 25px;
	margin: 30px 0;
	border: 1px solid var(--border-light);
}

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

.knowledge-card {
	background: var(--bg-card);
	border-radius: var(--radius-md);
	padding: 20px;
	border: 1px solid var(--border-light);
	box-shadow: var(--shadow-sm);
}

.knowledge-card h3 {
	font-size: 16px;
	color: var(--text-primary);
	margin-bottom: 15px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--border-light);
	display: flex;
	align-items: center;
	gap: 8px;
}

.knowledge-card h3 i {
	color: var(--primary-red);
}

.knowledge-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.knowledge-item {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 8px;
	background: var(--bg-secondary);
	border-radius: var(--radius-sm);
}

.knowledge-item i {
	color: var(--primary-red);
	margin-top: 2px;
	flex-shrink: 0;
}

.knowledge-item span {
	font-size: 14px;
	color: var(--text-secondary);
	line-height: 1.5;
}
    
       /* 近义词主区域 */
.synonym-main {
	margin: 30px 0;
}

        /* 近义词卡片网格 */
.synonym-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
	margin-bottom: 30px;
}

.synonym-card {
	background: var(--bg-card);
	border-radius: var(--radius-lg);
	padding: 20px;
	border: 1px solid var(--border-light);
	box-shadow: var(--shadow-sm);
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.synonym-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 4px;
	height: 100%;
	background: var(--primary-red);
}

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

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

.synonym-word {
	font-size: 22px;
	color: var(--text-primary);
	font-weight: 600;
	font-family: "楷体", "KaiTi", "STKaiti", serif;
}
/* 近义词卡片中的词语链接样式 */
.synonym-word-link {
	font-size: 22px;
	color: var(--text-primary);
	font-weight: 600;
	font-family: "楷体", "KaiTi", "STKaiti", serif;
	text-decoration: none;
	display: block;
	transition: all 0.3s ease;
	position: relative;
}

.synonym-word-link:hover {
	color: var(--primary-red);
	transform: translateY(-1px);
	text-shadow: 0 2px 4px rgba(44, 36, 22, 0.1);
}

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

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

.synonym-pinyin {
	font-size: 14px;
	color: var(--primary-red);
	font-weight: 500;
	margin-top: 4px;
}

.similarity-badge {
	background: var(--primary-red);
	color: white;
	padding: 4px 10px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
}

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

.synonym-example {
	background: var(--bg-secondary);
	padding: 10px 12px;
	border-radius: var(--radius-sm);
	border-left: 3px solid var(--accent-blue);
	font-size: 13px;
	color: var(--text-secondary);
	line-height: 1.5;
}

        /* 近义词对比表格 */
.comparison-section {
	margin: 40px 0;
}

.comparison-table {
	width: 100%;
	border-collapse: collapse;
	background: var(--bg-card);
	border-radius: var(--radius-md);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	border: 1px solid var(--border-light);
}

.comparison-table th {
	background: var(--primary-red);
	color: white;
	padding: 15px;
	text-align: left;
	font-weight: 600;
	font-size: 15px;
}

.comparison-table td {
	padding: 15px;
	border-bottom: 1px solid var(--border-light);
	color: var(--text-secondary);
	font-size: 14px;
}

.comparison-table tr:last-child td {
	border-bottom: none;
}

.comparison-table tr:nth-child(even) {
	background: var(--bg-secondary);
}

.word-cell {
	font-weight: 600;
	color: var(--text-primary);
	font-size: 16px;
}

        /* 用法辨析 */
.usage-section {
	background: var(--bg-secondary);
	border-radius: var(--radius-lg);
	padding: 25px;
	margin: 30px 0;
	border: 1px solid var(--border-light);
}

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

.usage-card {
	background: var(--bg-card);
	border-radius: var(--radius-md);
	padding: 20px;
	border: 1px solid var(--border-light);
	box-shadow: var(--shadow-sm);
}

.usage-card h3 {
	font-size: 16px;
	color: var(--text-primary);
	margin-bottom: 15px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--border-light);
	display: flex;
	align-items: center;
	gap: 8px;
}

.usage-card h3 i {
	color: var(--primary-red);
}

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

.usage-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 10px;
	background: var(--bg-secondary);
	border-radius: var(--radius-sm);
}

.usage-item i {
	color: var(--primary-red);
	margin-top: 2px;
	flex-shrink: 0;
}

.usage-item span {
	font-size: 14px;
	color: var(--text-secondary);
	line-height: 1.5;
}
       /* 相关推荐 */
.recommendation-section {
	margin: 30px 0;
}

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

.recommendation-card {
	background: var(--bg-card);
	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;
	box-shadow: var(--shadow-sm);
}

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

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

.recommendation-card .pinyin {
	font-size: 13px;
	color: var(--primary-red);
	font-weight: 500;
}

.recommendation-card .type {
	font-size: 12px;
	color: var(--text-light);
	margin-top: 5px;
}        
/* 飘红词语样式 */
.highlight-word {
	color: var(--primary-red);
	font-weight: 700;
	background: rgba(195, 39, 43, 0.1);
	padding: 2px 4px;
	border-radius: 3px;
	border: 1px solid rgba(195, 39, 43, 0.2);
}

/* 近义词卡片样式 */
.synonym-meaning {
	color: var(--text-secondary);
	line-height: 1.6;
	margin-bottom: 12px;
	font-size: 14px;
}

.synonym-example {
	background: var(--bg-secondary);
	padding: 10px 12px;
	border-radius: var(--radius-sm);
	border-left: 3px solid var(--accent-blue);
	font-size: 13px;
	color: var(--text-secondary);
	line-height: 1.5;
}  
        /* 核心信息 */
.word-core-info {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 18px;
	margin-bottom: 28px;
	padding: 22px;
	background: var(--bg-secondary);
	border-radius: var(--radius-md);
	border: 1px solid var(--border-light);
}

.info-item {
	display: flex;
	flex-direction: column;
	gap: 8px;
	text-align: center;
	padding: 14px;
	background: var(--bg-card);
	border-radius: var(--radius-sm);
	border: 1px solid var(--border-light);
}
.info-item a {
    color: inherit; 
    text-decoration: none; 
}
.info-label {
	font-size: 13px;
	color: var(--text-light);
	font-weight: 500;
}

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

        /* 词语属性信息 */
.word-attributes {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px dashed var(--border-light);
}

.attribute-group {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.attribute-title {
	font-size: 14px;
	color: var(--text-secondary);
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 6px;
}
.attribute-title a {
    color: inherit; 
    text-decoration: none; 
}
.attribute-title i {
	color: var(--primary-red);
}

.attribute-content {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.attribute-tag {
	padding: 4px 12px;
	background: var(--bg-secondary);
	color: var(--text-primary);
	text-decoration: none;
	border-radius: 16px;
	font-size: 13px;
	border: 1px solid var(--border-medium);
	transition: all 0.3s ease;
}

.attribute-tag:hover {
	background: var(--primary-red);
	color: white;
	border-color: var(--primary-red);
	transform: translateY(-1px);
}
       /* 数据库内容样式 - 保持原有HTML结构 */
.title-line-cross {
	display: flex;
	align-items: center;
	margin: 35px 0 20px 0;
	position: relative;
}

.title-line-cross:after, .title-line-cross:before {
	content: "";
	flex-grow: 1;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--border-medium), transparent);
}

.title-line-cross h4 {
	margin: 0 20px;
	color: var(--text-primary);
	font-size: 18px;
	font-weight: 600;
	background: var(--bg-card);
	padding: 0 15px;
	position: relative;
}

.title-line-cross h4::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 3px;
	height: 16px;
	background: var(--primary-red);
	border-radius: 2px;
}

        /* 词语标题 */
h3 {
	color: var(--text-primary);
	font-size: 22px;
	margin: 20px 0 15px 0;
	padding-left: 15px;
	border-left: 4px solid var(--primary-red);
	font-weight: 600;
}

h3 .pinyin {
	margin-left: 15px;
	font-size: 16px;
	color: var(--primary-red);
	font-weight: 500;
	font-style: italic;
}

        /* 词条内容 */
.ci-entries {
	background: var(--bg-card);
	border-radius: var(--radius-md);
	padding: 20px;
	margin: 15px 0 25px 0;
	border: 1px solid var(--border-light);
	box-shadow: var(--shadow-sm);
}

.explain {
	font-size: 15px;
	color: var(--text-primary);
	line-height: 1.7;
	margin-bottom: 15px;
	padding-left: 25px;
	position: relative;
}

.explain .no {
	position: absolute;
	left: 0;
	top: 0;
	color: var(--primary-red);
	font-weight: 600;
	font-size: 14px;
	background: rgba(195, 39, 43, 0.1);
	width: 20px;
	height: 20px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.extra {
	padding-left: 25px;
	margin-bottom: 12px;
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 14px;
}

.extra.last {
	margin-bottom: 20px;
}

.badge {
	display: inline-block;
	padding: 4px 10px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	text-align: center;
	white-space: nowrap;
	border-radius: 4px;
	flex-shrink: 0;
	margin-top: 2px;
}

.badge-info {
	color: white !important;
	background: var(--accent-blue) !important;
	border: 1px solid var(--accent-blue);
}

.content {
	color: var(--text-secondary);
	line-height: 1.6;
	flex: 1;
}

.content strong {
	color: var(--primary-red);
	font-weight: 600;
}

        /* 翻译部分 */
.ci-fanyi {
	background: var(--bg-card);
	border-radius: var(--radius-md);
	padding: 20px;
	margin: 15px 0 25px 0;
	border: 1px solid var(--border-light);
	box-shadow: var(--shadow-sm);
}

.ci-fanyi ul {
	list-style: none;
}

.ci-fanyi li {
	display: flex;
	align-items: center;
	padding: 10px 0;
	border-bottom: 1px dashed var(--border-light);
}

.ci-fanyi li:last-child {
	border-bottom: none;
}

.badge-primary {
	color: white !important;
	background: var(--primary-red) !important;
	padding: 6px 12px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	margin-right: 12px;
	border: 1px solid var(--primary-red);
	flex-shrink: 0;
	min-width: 60px;
	text-align: center;
}

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

        /* 网络解释 */
.ci-baike {
	background: var(--bg-card);
	border-radius: var(--radius-md);
	padding: 20px;
	margin: 15px 0;
	border: 1px solid var(--border-light);
	box-shadow: var(--shadow-sm);
}

.ci-baike h3 {
	color: var(--text-primary);
	font-size: 18px;
	margin: 0 0 15px 0;
	padding-left: 0;
	border-left: none;
	border-bottom: 1px solid var(--border-light);
	padding-bottom: 10px;
}

.ci-baike p {
	color: var(--text-secondary);
	line-height: 1.7;
	font-size: 14px;
	text-align: justify;
}
        /* 同音词和相关词区域 */
.related-section {
	margin: 30px 0;
}

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

.word-item {
	background: var(--bg-card);
	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;
	box-shadow: var(--shadow-sm);
}

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

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

.word-item .pinyin {
	font-size: 13px;
	color: var(--primary-red);
	font-weight: 500;
}

        /* 学习扩展区域 */
.learning-extension {
	background: var(--bg-secondary);
	border-radius: var(--radius-lg);
	padding: 25px;
	margin: 30px 0;
	border: 1px solid var(--border-light);
}

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

.extension-card {
	background: var(--bg-card);
	border-radius: var(--radius-md);
	padding: 20px;
	border: 1px solid var(--border-light);
	box-shadow: var(--shadow-sm);
}

.extension-card h3 {
	font-size: 16px;
	color: var(--text-primary);
	margin-bottom: 15px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--border-light);
	display: flex;
	align-items: center;
	gap: 8px;
}

.extension-card h3 i {
	color: var(--primary-red);
}

.usage-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.usage-item {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 8px;
	background: var(--bg-secondary);
	border-radius: var(--radius-sm);
}

.usage-item i {
	color: var(--primary-red);
	margin-top: 2px;
	flex-shrink: 0;
}

.usage-item span {
	font-size: 13px;
	color: var(--text-secondary);
	line-height: 1.5;
}
/* 响应式设计 */
@media (max-width: 768px) {
	.pinyin-stats {
		flex-direction: column;
		gap: 15px;
	}

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

	.tool-input-group {
		flex-direction: column;
	}

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

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

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

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

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

	.comparison-table {
		display: block;
		overflow-x: auto;
	}

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

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

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

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

	.word-core-info {
		grid-template-columns: 1fr;
	}

	.words-grid {
		grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	}

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

@media (max-width: 480px) {
	.hc-main {
		padding: 20px;
	}

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

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

	.homophone-categories {
		justify-content: center;
	}

	.pinyin-display .char {
		min-width: 50px;
		margin-right: 10px;
	}

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

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

	.explain {
		padding-left: 20px;
	}

	.extra {
		padding-left: 20px;
	}

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