/* 主内容区 */
.hc-main {
	padding: 30px;
	display: grid;
	grid-template-columns: 250px 1fr;
	gap: 30px;
}

/* 页面标题 */
        .page-header {
            padding: 60px 40px 40px;
            background: linear-gradient(135deg, rgba(245, 241, 232, 0.8), rgba(255, 254, 252, 0.9));
            border-bottom: 1px dashed var(--border-light);
            position: relative;
            overflow: hidden;
            text-align: center;
        }

        .page-header::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23c3272b' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
            opacity: 0.3;
        }
.page-title {
	font-size: 32px;
	color: var(--text-primary);
	margin-bottom: 10px;
	font-weight: 700;
	font-family: "楷体", "KaiTi", "STKaiti", serif;
	grid-column: 1 / -1;
}

.page-subtitle {
	font-size: 16px;
	color: var(--text-secondary);
	margin-bottom: 30px;
	grid-column: 1 / -1;
}

/* 侧边栏 */
.sidebar {
	background: var(--bg-card);
	border-radius: var(--radius-lg);
	padding: 25px;
	border: 1px solid var(--border-light);
	box-shadow: var(--shadow-sm);
	align-self: start;
	position: sticky;
	top: 20px;
}

.sidebar-section {
	margin-bottom: 30px;
}

.sidebar-section:last-child {
	margin-bottom: 0;
}

.sidebar-title {
	font-size: 18px;
	color: var(--text-primary);
	margin-bottom: 15px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--primary-red);
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
}

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

.category-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.category-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 15px;
	color: var(--text-secondary);
	text-decoration: none;
	border-radius: var(--radius-md);
	transition: all 0.3s ease;
	border: 1px solid transparent;
}

.category-item:hover {
	color: var(--primary-red);
	background: var(--bg-secondary);
	border-color: var(--border-light);
}

.category-item.active {
	color: var(--primary-red);
	background: rgba(195, 39, 43, 0.08);
	border: 1px solid rgba(195, 39, 43, 0.2);
	font-weight: 500;
}

.category-count {
	margin-left: auto;
	font-size: 12px;
	color: var(--text-light);
	background: var(--bg-tertiary);
	padding: 2px 8px;
	border-radius: 10px;
}

.alphabet-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.alphabet-item {
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bg-secondary);
	color: var(--text-secondary);
	border-radius: var(--radius-md);
	text-decoration: none;
	font-weight: 500;
	transition: all 0.3s ease;
	border: 1px solid var(--border-light);
}

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

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

.word-length-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.length-item {
	padding: 8px 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bg-secondary);
	color: var(--text-secondary);
	border-radius: var(--radius-md);
	text-decoration: none;
	font-weight: 500;
	transition: all 0.3s ease;
	border: 1px solid var(--border-light);
}

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

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

.radical-filter {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
}

.radical-item {
	padding: 8px 5px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bg-secondary);
	color: var(--text-secondary);
	border-radius: var(--radius-md);
	text-decoration: none;
	font-weight: 500;
	transition: all 0.3s ease;
	border: 1px solid var(--border-light);
	font-size: 16px;
}

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

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

.stroke-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.stroke-item {
	padding: 8px 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bg-secondary);
	color: var(--text-secondary);
	border-radius: var(--radius-md);
	text-decoration: none;
	font-weight: 500;
	transition: all 0.3s ease;
	border: 1px solid var(--border-light);
}

.stroke-item:hover {
	background: var(--accent-blue);
	color: white;
	border-color: var(--accent-blue);
}

.stroke-item.active {
	background: var(--accent-blue);
	color: white;
	border-color: var(--accent-blue);
}        
/* 内容区域 */
.content-area {
	display: flex;
	flex-direction: column;
	gap: 25px;
}
        .synonym-tabs {
            display: flex;
            background: var(--bg-secondary);
            border-radius: var(--radius-md);
            padding: 8px;
            border: 1px solid var(--border-light);
            box-shadow: var(--shadow-sm);
        }

        .synonym-tab {
            flex: 1;
            padding: 12px 20px;
            text-align: center;
            background: transparent;
            border: none;
            color: var(--text-secondary);
            font-weight: 500;
            border-radius: var(--radius-sm);
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            font-family: "PingFang SC", "Microsoft YaHei", serif;
        }

        .synonym-tab:hover {
            color: var(--primary-red);
            background: rgba(255, 255, 255, 0.5);
        }

        .synonym-tab.active {
            color: var(--primary-red);
            background: white;
            box-shadow: var(--shadow-sm);
            font-weight: 600;
        }

        .synonym-tab i {
            font-size: 16px;
        }

        .mode-toggle {
            display: flex;
            border: 1px solid var(--border-medium);
            border-radius: var(--radius-md);
            overflow: hidden;
            margin-bottom: 20px;
        }

        .mode-btn {
            flex: 1;
            padding: 10px 20px;
            background: var(--bg-secondary);
            color: var(--text-secondary);
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 500;
        }

        .mode-btn:hover {
            background: var(--bg-tertiary);
        }

        .mode-btn.active {
            background: var(--primary-red);
            color: white;
        }
        .synonym-list {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .tab-content {
            display: none;
        }
        
        .tab-content.active {
            display: block;
        }

        .synonym-card {
            background: var(--bg-card);
            border-radius: var(--radius-lg);
            padding: 24px;
            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;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--primary-red), var(--accent-blue));
        }

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

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

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

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

        .synonym-type {
            display: inline-block;
            padding: 4px 12px;
            background: var(--accent-blue);
            color: white;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 500;
            margin-left: 10px;
        }

        .synonym-actions {
            display: flex;
            gap: 8px;
        }       
        .synonym-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-bottom: 16px;
        }     
       .meaning-section {
            padding: 16px;
            background: var(--bg-secondary);
            border-radius: var(--radius-md);
            border-left: 3px solid var(--primary-red);
        }



        .synonym-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 10px;
        }

        .synonym-tag {
            padding: 6px 12px;
            background: linear-gradient(135deg, var(--primary-red), var(--red-light));
            color: white;
            border-radius: 16px;
            font-size: 13px;
            font-weight: 500;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .synonym-tag:hover {
            transform: translateY(-1px);
            box-shadow: 0 3px 8px rgba(195, 39, 43, 0.3);
        }

        .antonym-tag {
            background: linear-gradient(135deg, var(--accent-blue), var(--blue-light));
        }

        .synonym-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 13px;
            color: var(--text-light);
            padding-top: 16px;
            border-top: 1px dashed var(--border-light);
        }
        .usage-info {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .usage-item {
            display: flex;
            align-items: center;
            gap: 5px;
        }

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

        .empty-state {
            text-align: center;
            padding: 60px 20px;
            color: var(--text-light);
        }

        .empty-state i {
            font-size: 48px;
            margin-bottom: 20px;
            opacity: 0.5;
        }

        .empty-state h3 {
            font-size: 18px;
            margin-bottom: 10px;
            color: var(--text-secondary);
        }        
        
        
/* 筛选栏 */
.filter-bar {
	background: var(--bg-card);
	border-radius: var(--radius-lg);
	padding: 20px;
	border: 1px solid var(--border-light);
	box-shadow: var(--shadow-sm);
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 15px;
}

.filter-group {
	display: flex;
	align-items: center;
	gap: 10px;
}

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

.filter-select {
	padding: 8px 15px;
	border: 1px solid var(--border-medium);
	border-radius: var(--radius-md);
	background: var(--bg-secondary);
	color: var(--text-primary);
	font-size: 14px;
	cursor: pointer;
	transition: all 0.3s ease;
}

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

.view-toggle {
	display: flex;
	border: 1px solid var(--border-medium);
	border-radius: var(--radius-md);
	overflow: hidden;
}

.view-btn {
	padding: 8px 15px;
	background: var(--bg-secondary);
	color: var(--text-secondary);
	border: none;
	cursor: pointer;
	transition: all 0.3s ease;
	font-size: 14px;
}

.view-btn:hover {
	background: var(--bg-tertiary);
}

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

        /* 汉字列表 */
.character-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 20px;
}

.character-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;
	text-align: center;
}

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

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

.character-hanzi {
	font-size: 48px;
	color: var(--text-primary);
	font-weight: 700;
	margin-bottom: 10px;
	font-family: "楷体", "KaiTi", "STKaiti", serif;
	text-decoration: none;
	display: block;
}

.character-hanzi:hover {
	color: var(--primary-red);
}

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

.character-details {
	display: flex;
	justify-content: space-between;
	margin-bottom: 10px;
	font-size: 13px;
	color: var(--text-secondary);
}

.character-radical, .character-strokes {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.detail-label {
	font-size: 11px;
	color: var(--text-light);
	margin-bottom: 3px;
}

.detail-value {
	font-weight: 600;
}

.character-meaning {
	color: var(--text-secondary);
	line-height: 1.5;
	margin-bottom: 15px;
	font-size: 14px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 42px;
}

.character-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 12px;
	color: var(--text-light);
}

.character-tags {
	display: flex;
	gap: 5px;
}

.character-tag {
	padding: 3px 8px;
	background: var(--bg-secondary);
	color: var(--text-light);
	border-radius: 10px;
	font-size: 11px;
}

.character-frequency {
	display: flex;
	align-items: center;
	gap: 3px;
	color: var(--primary-red);
}


/* 成语列表 */
.idiom-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
}

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

.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-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-md);
}

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

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

.idiom-title:hover {
	color: var(--primary-red);
}

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

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

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

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

.idiom-meaning {
	color: var(--text-secondary);
	line-height: 1.6;
	margin-bottom: 15px;
	font-size: 14px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.idiom-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 12px;
	color: var(--text-light);
}

.idiom-tags {
	display: flex;
	gap: 5px;
}

.idiom-tag {
	padding: 3px 8px;
	background: var(--bg-secondary);
	color: var(--text-light);
	border-radius: 10px;
	font-size: 11px;
}

.idiom-frequency {
	display: flex;
	align-items: center;
	gap: 3px;
	color: var(--primary-red);
}

        /* 造句类型切换 */
.sentence-tabs {
	display: flex;
	background: var(--bg-secondary);
	border-radius: var(--radius-md);
	padding: 8px;
	border: 1px solid var(--border-light);
	box-shadow: var(--shadow-sm);
	margin-bottom: 30px;
}

.sentence-tab {
	flex: 1;
	padding: 12px 20px;
	text-align: center;
	background: transparent;
	border: none;
	color: var(--text-secondary);
	font-weight: 500;
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: "PingFang SC", "Microsoft YaHei", serif;
}

.sentence-tab:hover {
	color: var(--primary-red);
	background: rgba(255, 255, 255, 0.5);
}

.sentence-tab.active {
	color: var(--primary-red);
	background: white;
	box-shadow: var(--shadow-sm);
	font-weight: 600;
}

.sentence-tab i {
	font-size: 16px;
}

        /* 造句网格布局 */
.sentence-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
	gap: 25px;
	margin-bottom: 40px;
}

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

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

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

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

.sentence-main {
	display: flex;
	align-items: center;
	gap: 15px;
}

.sentence-type {
	font-size: 14px;
	color: white;
	padding: 4px 12px;
	border-radius: 12px;
	font-weight: 600;
	background: var(--accent-blue);
}

.sentence-type.chengyu {
	background: var(--primary-red);
}

.sentence-type.ciyu {
	background: var(--accent-gold);
}

.sentence-info {
	flex: 1;
}

.sentence-title {
	font-size: 22px;
	color: var(--text-primary);
	font-weight: 700;
	margin-bottom: 5px;
	font-family: "楷体", "KaiTi", "STKaiti", serif;
}
.sentence-title a{
    text-decoration: none;
    color: inherit;
}
.sentence-pinyin {
	font-size: 14px;
	color: var(--primary-red);
	font-weight: 500;
}

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

.sentence-content {
	margin-bottom: 20px;
}

.sentence-text {
	color: var(--text-secondary);
	line-height: 1.8;
	font-size: 16px;
	padding: 15px;
	background: var(--bg-secondary);
	border-radius: var(--radius-md);
	border-left: 3px solid var(--primary-red);
	position: relative;
}

.sentence-text::before {
	content: """;
            position: absolute;
            top: 5px;
            left: 10px;
            font-size: 24px;
            color: var(--primary-red);
            opacity: 0.3;
            font-family: serif;
        }

        .sentence-meaning {
            color: var(--text-light);
            font-size: 14px;
            margin-top: 10px;
            padding-left: 15px;
            border-left: 2px dashed var(--border-light);
        }

        .sentence-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 13px;
            color: var(--text-light);
            padding-top: 15px;
            border-top: 1px dashed var(--border-light);
        }

        .sentence-tags {
            display: flex;
            gap: 8px;
        }

        .sentence-tag {
            padding: 4px 10px;
            background: var(--bg-secondary);
            color: var(--text-light);
            border-radius: 12px;
            font-size: 11px;
            font-weight: 500;
        }

        .sentence-source {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .sentence-source i {
            color: var(--primary-red);
        }

        /* 刷新按钮 */
        .refresh-section {
            text-align: center;
            margin-bottom: 30px;
        }

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

        .refresh-btn:hover {
            background: var(--red-dark);
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
        }
        /* 字母导航 */
        .letter-nav {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 30px;
            padding: 20px;
            background: var(--bg-secondary);
            border-radius: var(--radius-lg);
            border: 1px solid var(--border-light);
            justify-content: center;
            position: sticky;
            top: 20px;
            z-index: 100;
            box-shadow: var(--shadow-sm);
        }

        .letter-link {
            width: 42px;
            height: 42px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: white;
            color: var(--text-secondary);
            border-radius: var(--radius-md);
            text-decoration: none;
            font-weight: 600;
            font-size: 16px;
            transition: all 0.3s ease;
            border: 1px solid var(--border-light);
        }

        .letter-link:hover {
            background: var(--primary-red);
            color: white;
            border-color: var(--primary-red);
            transform: translateY(-2px);
        }

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

        /* 拼音内容区 */
        .pinyin-content {
            display: flex;
            flex-direction: column;
            gap: 40px;
        }

        /* 拼音组 */
        .pinyin-group {
            scroll-margin-top: 120px;
        }

        .group-header {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--primary-red);
        }

        .group-letter {
            width: 60px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--primary-red);
            color: white;
            font-size: 28px;
            font-weight: 700;
            border-radius: var(--radius-lg);
            font-family: "楷体", "KaiTi", "STKaiti", serif;
        }

        .group-title {
            font-size: 24px;
            color: var(--text-primary);
            font-weight: 700;
        }

        /* 拼音列表 */
        .pinyin-list {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
            gap: 15px;
            margin-bottom: 30px;
        }

        .pinyin-item {
            background: var(--bg-card);
            border-radius: var(--radius-md);
            padding: 20px;
            border: 1px solid var(--border-light);
            box-shadow: var(--shadow-sm);
            transition: all 0.3s ease;
            text-decoration: none;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
            aspect-ratio: 1/1; /* 保持正方形 */
        }

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

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

        .pinyin-symbol {
            font-size: 24px;
            color: var(--text-primary);
            font-weight: 700;
            font-family: "楷体", "KaiTi", "STKaiti", serif;
        }
        /* 词语列表 */
.word-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
}

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

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

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

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

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

.word-title:hover {
	color: var(--primary-red);
}

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

.word-actions {
	display: flex;
	gap: 5px;
}

.word-meaning {
	color: var(--text-secondary);
	line-height: 1.6;
	margin-bottom: 15px;
	font-size: 14px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.word-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 12px;
	color: var(--text-light);
}

.word-tags {
	display: flex;
	gap: 5px;
}

.word-tag {
	padding: 3px 8px;
	background: var(--bg-secondary);
	color: var(--text-light);
	border-radius: 10px;
	font-size: 11px;
}

.word-frequency {
	display: flex;
	align-items: center;
	gap: 3px;
	color: var(--primary-red);
}

        /* 分类区域 */
        .category-section {
            margin-bottom: 40px;
        }

        .category-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 2px solid var(--primary-red);
        }

        .category-title {
            font-size: 24px;
            color: var(--text-primary);
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 10px;
        }

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

        .category-count-badge {
            background: var(--primary-red);
            color: white;
            padding: 6px 14px;
            border-radius: 16px;
            font-size: 14px;
            font-weight: 500;
        }

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

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

        .character-item::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--primary-red), var(--accent-blue));
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }

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

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

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

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

        .character-count {
            position: absolute;
            top: 5px;
            right: 5px;
            background: var(--accent-blue);
            color: white;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 10px;
            font-weight: 600;
        }
        /* 卡片底部 */
        .card-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 20px;
            border-top: 1px dashed var(--border-light);
        }

        .character-counts {
            display: flex;
            align-items: center;
            gap: 8px;
            color: var(--text-light);
            font-size: 13px;
        }

        .character-counts i {
            color: var(--accent-gold);
        }
        .character-counts a {
            color: inherit;
            text-decoration: none;
            transition: color 0.3s ease;
        }
        
        .character-counts a:hover {
            color: var(--primary-red);
            text-decoration: underline;
        }
        
        /* 为除最后一个之外的所有链接添加顿号 */
        .character-counts a:not(:last-child)::after {
            content: "、";
        }
        .card-actions {
            display: flex;
            gap: 10px;
        }        
        
/* 随机推荐区块样式 */
.random-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 25px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

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

.random-header {
    text-align: center;
    margin-bottom: 25px;
}

.random-title {
    font-size: 24px;
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
}

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

.random-subtitle {
    font-size: 14px;
    color: var(--text-light);
    font-style: italic;
}

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

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

.random-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-red), var(--accent-blue));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.random-item:hover {
    background: var(--bg-tertiary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

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

.random-character {
    font-size: 36px;
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 8px; /* 减少底部间距 */
    font-family: "楷体", "KaiTi", "STKaiti", serif;
}

/* 新增：组词数量样式 - 特别调整了间距 */
.random-count {
    font-size: 12px;
    color: var(--accent-blue);
    font-weight: 500;
    margin-bottom: 15px; /* 增加与下面词语的间距 */
    padding: 2px 10px;
    background: rgba(42, 110, 187, 0.1);
    border-radius: 10px;
    display: inline-block;
}

.random-words {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.word-tag {
    padding: 4px 10px;
    background: var(--primary-red);
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.random-item:hover .word-tag {
    background: var(--accent-blue);
    transform: scale(1.05);
}

/* 无数据提示样式 */
.no-data {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
    font-style: italic;
    grid-column: 1 / -1;
}


        /* 统计信息卡片 */
.stats-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin-bottom: 30px;
}

.stat-card {
	background: var(--bg-card);
	border-radius: var(--radius-lg);
	padding: 20px;
	border: 1px solid var(--border-light);
	box-shadow: var(--shadow-sm);
	text-align: center;
	transition: all 0.3s ease;
}

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

.stat-icon {
	font-size: 32px;
	color: var(--primary-red);
	margin-bottom: 10px;
}

.stat-number {
	font-size: 28px;
	font-weight: 700;
	color: var(--text-primary);
	margin-bottom: 5px;
}

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

        /* 笔顺分类导航 */
        .stroke-nav {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 30px;
            justify-content: center;
        }

        .stroke-nav-item {
            padding: 12px 24px;
            background: var(--bg-secondary);
            color: var(--text-secondary);
            border-radius: var(--radius-md);
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s ease;
            border: 1px solid var(--border-light);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .stroke-nav-item:hover {
            color: var(--primary-red);
            background: var(--bg-card);
            border-color: var(--primary-red);
        }

        .stroke-nav-item.active {
            background: var(--primary-red);
            color: white;
            border-color: var(--primary-red);
        }
        
        /* 笔顺列表网格 */
        .stroke-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 25px;
            margin-bottom: 40px;
        }

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

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

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

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

        .stroke-main {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .stroke-char {
            font-size: 42px;
            font-weight: 700;
            color: var(--text-primary);
            font-family: "楷体", "KaiTi", "STKaiti", serif;
            width: 60px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--bg-secondary);
            border-radius: var(--radius-md);
            border: 1px solid var(--border-light);
        }

        .stroke-info {
            flex: 1;
        }

        .stroke-title {
            font-size: 20px;
            color: var(--text-primary);
            font-weight: 700;
            margin-bottom: 5px;
        }

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

        .stroke-badge {
            background: var(--accent-gold);
            color: white;
            padding: 4px 12px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 600;
        }

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

        /* 笔顺预览 */
        .stroke-preview {
            margin-bottom: 20px;
            background: var(--bg-secondary);
            border-radius: var(--radius-md);
            padding: 15px;
            text-align: center;
        }

        .preview-title {
            font-size: 14px;
            color: var(--text-secondary);
            font-weight: 600;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

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

        .stroke-sequence {
            display: flex;
            justify-content: center;
            gap: 8px;
            margin-bottom: 10px;
        }

        .stroke-step {
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: white;
            border-radius: 50%;
            font-size: 14px;
            font-weight: 700;
            color: var(--primary-red);
            border: 1px solid var(--border-light);
            box-shadow: var(--shadow-sm);
        }

        .stroke-animation {
            font-size: 32px;
            font-weight: 700;
            color: var(--text-primary);
            font-family: "楷体", "KaiTi", "STKaiti", serif;
            margin: 10px 0;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .stroke-details {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
            margin-bottom: 20px;
        }

        .detail-item {
            background: var(--bg-secondary);
            border-radius: var(--radius-md);
            padding: 10px;
            text-align: center;
        }

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

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

        .stroke-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 13px;
            color: var(--text-light);
            padding-top: 15px;
            border-top: 1px dashed var(--border-light);
        }

        .stroke-count {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .stroke-count i {
            color: var(--primary-red);
        }

        .stroke-link {
            color: var(--primary-red);
            text-decoration: none;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 5px;
            transition: all 0.3s ease;
        }

        .stroke-link:hover {
            color: var(--red-dark);
            gap: 8px;
        }        

        /* 结构分类导航 */
.structure-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 30px;
	justify-content: center;
}

.structure-nav-item {
	padding: 12px 24px;
	background: var(--bg-secondary);
	color: var(--text-secondary);
	border-radius: var(--radius-md);
	text-decoration: none;
	font-weight: 500;
	transition: all 0.3s ease;
	border: 1px solid var(--border-light);
	display: flex;
	align-items: center;
	gap: 8px;
}

.structure-nav-item:hover {
	color: var(--primary-red);
	background: var(--bg-card);
	border-color: var(--primary-red);
}

.structure-nav-item.active {
	background: var(--primary-red);
	color: white;
	border-color: var(--primary-red);
}

        /* 结构网格布局 */
.structure-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
	gap: 25px;
	margin-bottom: 40px;
}

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

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

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

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

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

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

.structure-badge {
	background: var(--accent-gold);
	color: white;
	padding: 4px 12px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
}

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

.structure-examples {
	margin-bottom: 20px;
}

.examples-title {
	font-size: 14px;
	color: var(--text-secondary);
	font-weight: 600;
	margin-bottom: 10px;
	display: flex;
	align-items: center;
	gap: 8px;
}

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

.examples-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 8px;
}

        /* 典型例字超链接样式 - 重点设计部分 */
.example-char-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: var(--bg-secondary);
	border-radius: var(--radius-md);
	font-size: 18px;
	font-weight: 700;
	color: var(--text-primary);
	text-decoration: none;
	transition: all 0.3s ease;
	border: 1px solid var(--border-light);
	position: relative;
	overflow: hidden;
}

.example-char-link::before {
	content: "";
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
	transition: left 0.5s;
}

.example-char-link:hover {
	background: var(--primary-red);
	color: white;
	transform: translateY(-2px) scale(1.05);
	box-shadow: 0 4px 8px rgba(195, 39, 43, 0.3);
	border-color: var(--primary-red);
}

.example-char-link:hover::before {
	left: 100%;
}
        .radical-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 13px;
            color: var(--text-light);
            padding-top: 15px;
            border-top: 1px dashed var(--border-light);
        }

        .radical-count {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .radical-count i {
            color: var(--primary-red);
        }

        .radical-link {
            color: var(--primary-red);
            text-decoration: none;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 5px;
            transition: all 0.3s ease;
        }

        .radical-link:hover {
            color: var(--red-dark);
            gap: 8px;
        }

        /* 为不同类型的结构添加不同的悬停效果 */
.structure-card:nth-child(1) .example-char-link:hover {
	background: linear-gradient(135deg, var(--primary-red), #e74c3c);
}

.structure-card:nth-child(2) .example-char-link:hover {
	background: linear-gradient(135deg, var(--accent-blue), #3498db);
}

.structure-card:nth-child(3) .example-char-link:hover {
	background: linear-gradient(135deg, var(--accent-gold), #f1c40f);
}

.structure-card:nth-child(4) .example-char-link:hover {
	background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.structure-card:nth-child(5) .example-char-link:hover {
	background: linear-gradient(135deg, #8e44ad, #9b59b6);
}

.structure-card:nth-child(6) .example-char-link:hover {
	background: linear-gradient(135deg, #e67e22, #f39c12);
}

.structure-card:nth-child(7) .example-char-link:hover {
	background: linear-gradient(135deg, #16a085, #1abc9c);
}

.structure-card:nth-child(8) .example-char-link:hover {
	background: linear-gradient(135deg, #c0392b, #e74c3c);
}

.structure-features {
	background: var(--bg-secondary);
	border-radius: var(--radius-md);
	padding: 15px;
	margin-bottom: 20px;
}

.features-title {
	font-size: 14px;
	color: var(--text-secondary);
	font-weight: 600;
	margin-bottom: 10px;
	display: flex;
	align-items: center;
	gap: 8px;
}

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

.feature-list {
	list-style: none;
	padding-left: 0;
}

.feature-item {
	padding: 5px 0;
	color: var(--text-secondary);
	font-size: 13px;
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.feature-item::before {
	content: "•";
	color: var(--accent-blue);
	font-weight: bold;
}

.structure-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 13px;
	color: var(--text-light);
	padding-top: 15px;
	border-top: 1px dashed var(--border-light);
}

.structure-count {
	display: flex;
	align-items: center;
	gap: 5px;
}

.structure-count i {
	color: var(--primary-red);
}

.structure-link {
	color: var(--primary-red);
	text-decoration: none;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 5px;
	transition: all 0.3s ease;
}

.structure-link:hover {
	color: var(--red-dark);
	gap: 8px;
}

        /* 五行关系图 */
        .wuxing-relation {
            max-width: 600px;
            margin: 40px auto 0;
            position: relative;
        }

        .relation-container {
            position: relative;
            height: 300px;
        }

        .relation-item {
            position: absolute;
            width: 80px;
            height: 80px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 700;
            font-size: 20px;
            box-shadow: var(--shadow-md);
            transition: all 0.3s ease;
            cursor: pointer;
            z-index: 2;
        }

        .relation-item:hover {
            transform: scale(1.1);
            box-shadow: var(--shadow-lg);
        }

        .metal-item { 
            top: 10px; 
            left: 50%; 
            transform: translateX(-50%);
            background: linear-gradient(135deg, var(--metal-color), #e6d8a5);
        }
        .wood-item { 
            top: 50%; 
            right: 10px; 
            transform: translateY(-50%);
            background: linear-gradient(135deg, var(--wood-color), #c8e6c9);
        }
        .water-item { 
            bottom: 10px; 
            left: 50%; 
            transform: translateX(-50%);
            background: linear-gradient(135deg, var(--water-color), #bbdefb);
        }
        .fire-item { 
            top: 50%; 
            left: 10px; 
            transform: translateY(-50%);
            background: linear-gradient(135deg, var(--fire-color), #ffcdd2);
        }
        .earth-item { 
            top: 50%; 
            left: 50%; 
            transform: translate(-50%, -50%);
            background: linear-gradient(135deg, var(--earth-color), #d7ccc8);
        }

        .relation-line {
            position: absolute;
            background: var(--text-light);
            opacity: 0.3;
            z-index: 1;
        }

        .line-1 { top: 50px; left: 50%; width: 2px; height: 100px; }
        .line-2 { top: 50%; right: 50px; width: 100px; height: 2px; transform: translateY(-50%); }
        .line-3 { bottom: 50px; left: 50%; width: 2px; height: 100px; }
        .line-4 { top: 50%; left: 50px; width: 100px; height: 2px; transform: translateY(-50%); }

        .relation-label {
            position: absolute;
            font-size: 12px;
            color: var(--text-light);
            font-weight: 500;
            z-index: 1;
        }

        .label-1 { top: 100px; left: 50%; transform: translateX(-50%); }
        .label-2 { top: 50%; right: 130px; transform: translateY(-50%); }
        .label-3 { bottom: 100px; left: 50%; transform: translateX(-50%); }
        .label-4 { top: 50%; left: 130px; transform: translateY(-50%); }

        /* 五行列表 */
        .wuxing-main {
            padding: 40px;
        }

        .wuxing-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 30px;
            margin-top: 40px;
        }

        /* 五行卡片 */
        .wuxing-card {
            background: var(--bg-card);
            border-radius: var(--radius-lg);
            padding: 30px;
            border: 1px solid var(--border-light);
            box-shadow: var(--shadow-sm);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }

        .wuxing-card::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .wuxing-card.metal::before { background: var(--metal-color); }
        .wuxing-card.wood::before { background: var(--wood-color); }
        .wuxing-card.water::before { background: var(--water-color); }
        .wuxing-card.fire::before { background: var(--fire-color); }
        .wuxing-card.earth::before { background: var(--earth-color); }

        .wuxing-card:hover {
            transform: translateY(-8px);
            box-shadow: var(--shadow-lg);
            border-color: var(--border-medium);
        }

        .wuxing-card:hover::before {
            opacity: 1;
        }

        .card-header {
            display: flex;
            align-items: center;
            gap: 20px;
            margin-bottom: 25px;
            padding-bottom: 20px;
            border-bottom: 1px dashed var(--border-light);
        }
        .card-header a {
            color: inherit;
            text-decoration: none;
        }
        .element-icon {
            width: 70px;
            height: 70px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 30px;
            box-shadow: var(--shadow-md);
        }

        .metal-icon { background: linear-gradient(135deg, var(--metal-color), #e6d8a5); }
        .wood-icon { background: linear-gradient(135deg, var(--wood-color), #c8e6c9); }
        .water-icon { background: linear-gradient(135deg, var(--water-color), #bbdefb); }
        .fire-icon { background: linear-gradient(135deg, var(--fire-color), #ffcdd2); }
        .earth-icon { background: linear-gradient(135deg, var(--earth-color), #d7ccc8); }

        .element-info {
            flex: 1;
        }

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

        .element-pinyin {
            font-size: 16px;
            color: var(--text-light);
            font-weight: 500;
        }

        /* 属性详情 */
        .property-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
            margin-bottom: 25px;
        }

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

        .metal-card .property-item { border-left-color: var(--metal-color); }
        .wood-card .property-item { border-left-color: var(--wood-color); }
        .water-card .property-item { border-left-color: var(--water-color); }
        .fire-card .property-item { border-left-color: var(--fire-color); }
        .earth-card .property-item { border-left-color: var(--earth-color); }

        .property-item:hover {
            transform: translateX(5px);
            box-shadow: var(--shadow-sm);
        }

        .property-label {
            font-size: 12px;
            color: var(--text-light);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

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

        /* 相生相克 */
        .relation-info {
            margin-bottom: 25px;
        }

        .relation-title {
            font-size: 16px;
            color: var(--text-secondary);
            font-weight: 600;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

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

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

        .relation-tag {
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .metal-tag { 
            background: var(--metal-light); 
            color: var(--metal-color);
            border: 1px solid var(--metal-light);
        }
        .wood-tag { 
            background: var(--wood-light); 
            color: var(--wood-color);
            border: 1px solid var(--wood-light);
        }
        .water-tag { 
            background: var(--water-light); 
            color: var(--water-color);
            border: 1px solid var(--water-light);
        }
        .fire-tag { 
            background: var(--fire-light); 
            color: var(--fire-color);
            border: 1px solid var(--fire-light);
        }
        .earth-tag { 
            background: var(--earth-light); 
            color: var(--earth-color);
            border: 1px solid var(--earth-light);
        }

        .relation-tag:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }

        .relation-tag.sheng {
            position: relative;
            padding-left: 35px;
        }

        .relation-tag.sheng::before {
            content: "→";
            position: absolute;
            left: 12px;
            font-weight: bold;
        }

        .relation-tag.ke {
            position: relative;
            padding-left: 35px;
        }

        .relation-tag.ke::before {
            content: "×";
            position: absolute;
            left: 12px;
            font-weight: bold;
        }
        /* 知识扩展区域 */
.knowledge-section {
	background: var(--bg-card);
	border-radius: var(--radius-lg);
	padding: 30px;
	border: 1px solid var(--border-light);
	box-shadow: var(--shadow-sm);
	margin-bottom: 30px;
}

.section-title {
	font-size: 24px;
	color: var(--text-primary);
	margin-bottom: 20px;
	font-weight: 700;
	font-family: "楷体", "KaiTi", "STKaiti", serif;
	display: flex;
	align-items: center;
	gap: 12px;
	border-bottom: 2px solid var(--primary-red);
	padding-bottom: 10px;
}

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

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

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

.knowledge-item:hover {
	background: var(--bg-tertiary);
	transform: translateY(-3px);
}

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

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

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

        /* 部首分类导航 */
        .radical-nav {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 30px;
            justify-content: center;
        }

        .radical-nav-item {
            padding: 12px 24px;
            background: var(--bg-secondary);
            color: var(--text-secondary);
            border-radius: var(--radius-md);
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s ease;
            border: 1px solid var(--border-light);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .radical-nav-item:hover {
            color: var(--primary-red);
            background: var(--bg-card);
            border-color: var(--primary-red);
        }

        .radical-nav-item.active {
            background: var(--primary-red);
            color: white;
            border-color: var(--primary-red);
        }

        /* 部首网格布局 */
        .radical-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 25px;
            margin-bottom: 40px;
        }

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

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

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

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

        .radical-main {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .radical-char {
            font-size: 42px;
            font-weight: 700;
            color: var(--text-primary);
            font-family: "楷体", "KaiTi", "STKaiti", serif;
            width: 60px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--bg-secondary);
            border-radius: var(--radius-md);
            border: 1px solid var(--border-light);
        }

        .radical-info {
            flex: 1;
        }

        .radical-title {
            font-size: 20px;
            color: var(--text-primary);
            font-weight: 700;
            margin-bottom: 5px;
        }
        .radical-bhua {
            font-size: 14px;
            color: var(--primary-red);
            font-weight: 500;
        }
        .radical-pinyin {
            font-size: 14px;
            color: var(--primary-red);
            font-weight: 500;
        }

        .radical-badge {
            background: var(--accent-gold);
            color: white;
            padding: 4px 12px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 600;
        }

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

        .radical-examples {
            margin-bottom: 20px;
        }

        .examples-title {
            font-size: 14px;
            color: var(--text-secondary);
            font-weight: 600;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

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

        .examples-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 8px;
        }
        @media (max-width: 1200px) {
            .wuxing-grid {
                grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            }
        }

/* 响应式设计 */
@media (max-width: 992px) {
	.hc-main {
		grid-template-columns: 1fr;
	}

	.sidebar {
		position: static;
	}

	.idiom-list {
		grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	}

	.word-list {
		grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	}

	.character-list {
		grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	}

	.radical-filter {
		grid-template-columns: repeat(6, 1fr);
	}

	.structure-grid {
		grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	}
            .radical-grid {
                grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            }
	.examples-grid {
		grid-template-columns: repeat(4, 1fr);
	}
	            .stroke-grid {
                grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            }
                        .sentence-grid {
                grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
            }
                        .synonym-content {
                grid-template-columns: 1fr;
            }
                        .pinyin-list {
                grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
            }
            
            .wuxing-main {
                padding: 30px;
            }            
}

@media (max-width: 768px) {
	.hc-main {
		padding: 20px;
		display: block;
	}
    .hc-search {
        width: 100%;
    }
    
    .hc-search input {
        width: 100%;
    }
	.filter-bar {
		flex-direction: column;
		align-items: flex-start;
	}

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

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

	.character-list {
		_grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	}

	.radical-filter {
		grid-template-columns: repeat(3, 1fr);
	}

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

	.examples-grid {
		grid-template-columns: repeat(6, 1fr);
	}

	.knowledge-grid {
		grid-template-columns: 1fr;
	}
    .filter-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .stroke-grid {
        grid-template-columns: 1fr;
    }	
     .sentence-grid {
        grid-template-columns: 1fr;
    }
    
    .sentence-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .sentence-actions {
        align-self: flex-end;
    }
     .radical-grid {
        grid-template-columns: 1fr;
    }
    .random-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .random-character {
        font-size: 28px;
    }
    
    .random-count {
        margin-bottom: 12px; /* 移动端适当减小间距 */
    }  
    .synonym-tabs {
        flex-direction: column;
    }    
                .pinyin-list {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
     .property-grid {
        grid-template-columns: 1fr;
    }
    
    .wuxing-main {
        padding: 20px;
    }
    
    .wuxing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }           
}

@media (max-width: 480px) {
	.page-title {
		font-size: 28px;
	}

	.sidebar {
		padding: 20px;
	}

	.alphabet-filter {
		justify-content: center;
	}

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

	.radical-filter {
		grid-template-columns: repeat(4, 1fr);
	}

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

	.examples-grid {
		grid-template-columns: repeat(4, 1fr);
	}

	.structure-nav {
		justify-content: flex-start;
		overflow-x: auto;
		padding-bottom: 10px;
	}
    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stroke-nav {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .stroke-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .stroke-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .stroke-badge {
        align-self: flex-start;
    }
    
    .stroke-details {
        grid-template-columns: 1fr;
    }
    .sentence-tabs {
        flex-direction: column;
    }
    
    .sentence-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }   
     .radical-nav {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .radical-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .radical-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .radical-badge {
        align-self: flex-start;
    }     
     .random-section {
        padding: 20px;
    }
    
    .random-title {
        font-size: 20px;
    }
    
    .random-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .random-character {
        font-size: 24px;
    }
    
    .random-count {
        font-size: 11px;
        margin-bottom: 10px;
    }
    
    .word-tag {
        font-size: 11px;
        padding: 3px 8px;
    }         
    .category-title {
        font-size: 20px;
    }
    
    .character-grid {
        grid-template-columns: repeat(auto-fill, minmax(55px, 1fr));
    }
    
    .character-text {
        font-size: 22px;
    }    
    
    .synonym-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .synonym-actions {
        align-self: flex-end;
    }            
     .pinyin-list {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    }
    
    .letter-nav {
        padding: 15px 10px;
    }
            
    .letter-link {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .group-letter {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .group-title {
        font-size: 20px;
    }
    
    .pinyin-symbol {
        font-size: 24px;
    }     
    .element-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .element-name {
        font-size: 24px;
    }
    
    .relation-container {
        height: 250px;
    }
    
    .relation-item {
        width: 60px;
        height: 60px;
        font-size: 16px;
    }            
}