
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "Segoe UI", "SimSun-ExtB", "SimSun", "BabelStone Han", sans-serif;
}
        
        body {
            background-color: #f8f9fa;
            color: #333;
            line-height: 1.6;
        }
        
        header {
            background: linear-gradient(135deg, #8B1A1B, #B22222);
            color: #F8E1A4;
            padding: 12px 0;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            position: sticky;
            top: 0;
            z-index: 100;
        }
        
        
        .container {
            width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }
        
        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .logo {
            display: flex;
            align-items: center;
        }
        
        @font-face {
            font-family: 'QianP';
            src: url('/static/fonts/qianp.woff2') format('woff2');
            font-weight: 700; 
            font-style: normal;
            font-display: swap; 
        }
        
        .logo h1 {
            font-family: 'QianP', sans-serif; 
            font-size: 26px;
            font-weight: 700; 
            margin-left: 8px;
        }
        
        .search-bar {
            flex: 1;
            max-width: 450px;
            margin: 0 25px;
        }
        
        .search-bar form {
            display: flex;
        }
        
        .search-bar input {
            flex: 1;
            padding: 8px 15px;
            border: none;
            border-radius: 5px 0 0 5px;
            font-size: 14px;
            outline: none;
        }
        
        .search-bar button {
            background: #8B7355;
            color: #F8E1A4;
            border: none;
            padding: 0 18px;
            border-radius: 0 5px 5px 0;
            cursor: pointer;
            font-size: 14px;
            transition: background 0.3s;
        }
        
        .search-bar button:hover {
            background: #6B5A42;
        }
        
        nav ul {
            display: flex;
            list-style: none;
        }
        
        nav ul li {
            margin-left: 18px;
        }
        
        nav ul li a {
            color: #F8E1A4;
            text-decoration: none;
            font-size: 14px;
            transition: color 0.3s;
        }
        
        nav ul li a:hover {
            color: #FFFFFF;
        }
        
        main {
            padding: 25px 0;
            min-height: calc(100vh - 140px);
        }
        
        .main-content {
            display: flex;
            gap: 20px;
        }
        
        .left-column {
            flex: 7;
        }
        
        .right-column {
            flex: 3;
        }
        
        .section-title {
            text-align: center;
            margin-bottom: 20px;
            color: #2c3e50;
        }
        
        .section-title h2 {
            font-size: 24px;
            margin-bottom: 6px;
        }
        
        .section-title p {
            color: #7f8c8d;
            font-size: 14px;
        }
        
        .intro-panel {
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
            padding: 15px;
            margin-bottom: 20px;
        }
        
        .intro-panel h3 {
            font-size: 16px;
            margin-bottom: 12px;
            padding-bottom: 8px;
            border-bottom: 1px solid #eee;
            color: #2c3e50;
        }
        
        .intro-content {
            display: flex;
            gap: 15px;
        }
        
        .intro-image {
            flex: 0 0 180px;
        }
        
        .intro-image img {
            width: 100%;
            border-radius: 6px;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        }
        
        .intro-text {
            flex: 1;
        }
        
        .intro-text p {
            font-size: 14px;
            line-height: 1.6;
            color: #555;
            margin-bottom: 10px;
        }
        
        .character-detail-panel {
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
            padding: 15px;
            margin-bottom: 20px;
        }
        
        .character-detail-panel h3 {
            font-size: 16px;
            margin-bottom: 12px;
            padding-bottom: 8px;
            border-bottom: 1px solid #eee;
            color: #2c3e50;
        }
        
        .character-detail-header {
            display: flex;
            align-items: flex-start;
            gap: 20px;
        }
        
        .character-icon {
            flex: 0 0 120px;
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-right: 20px;
        }
        
        .character-writer-container {
            width: 100px;
            height: 100px;
            border: 1px solid #eee;
            border-radius: 6px;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 60px;
            color: #2c3e50;
        }
        
        .character-controls {
            display: flex;
            gap: 8px;
        }
        
        .character-controls button {
            background: #8B7355;
            color: #F8E1A4;
            border: none;
            padding: 5px 10px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 12px;
            transition: background 0.3s;
        }
        
        .character-controls button:hover {
            background: #6B5A42;
        }
        
        .character-title {
            flex: 1;
        }
        
        .character-title-main {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
        }
        
        .character-title-main h2 {
            font-family: "hygxFont", "PingFang SC", Microsoft YaHei, Helvetica, Hiragino Sans GB, WenQuanYi Micro Hei, sans-serif !important;
            font-size: 36px;
            margin-right: 10px;
            color: #2c3e50;
        }
        
        .character-copy {
            background: #8B7355;
            color: #F8E1A4;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
            cursor: pointer;
        }
                .character-copy:hover {
            background: #6B5A42;
            transform: translateY(-1px);
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        
        
.character-pinyin {
    background: #f5f5f5;
   
    border-radius: 5px 5px 0 0;

    margin-bottom: 1px;
    height: 25px;
}
 
        
        .character-title-pinyin .em {
            padding: 0 6px 0 2px;
            font-style: normal;
            font-size: 14px;
            font-family: Tahoma,"Helvetica Neue",Helvetica,Arial,sans-serif;
            font-weight: 700;
        }
        
        .character-title-extra {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
            margin-bottom: 10px;
            font-size: 14px;
            color: #666;
            margin-left: 4px;
        }
        
        .character-title-extra span.unicode {
            padding-left: 26px;
            background: url(https://static.cztjy.cn/images/unicode.png) 4px center no-repeat;
            background-size: 18px 18px;
        }
        
        .character-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
            margin-left: 4px;
        }
        
        .character-tags .badge {
            border: 1px solid #d7b664;
            color: #666;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
            text-decoration: none;
        }
        
        .character-tags .badge:hover {
            background: #e0e0e0;
        }
        
        .character-attrs {
            margin-top: 15px;
        }
        
        .character-attrs-list {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
        }
        
        .character-attrs-list label {
            flex: 0 0 80px;
            font-weight: bold;
            color: #666;
        }
        
        .character-attrs-list span {
            flex: 1;
            color: #333;
        }
        
        .character-attrs-list a {
            color: #8B7355;
            text-decoration: none;
        }
        
        .character-attrs-list a:hover {
            color: #8B1A1B;
        }
        
        .character-attrs-list .bishun {
            grid-column: 1 / -1;
        }
        
        .characters-panel {
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
            padding: 15px;
            margin-bottom: 20px;
        }
        
        .characters-panel h3 {
            font-size: 16px;
            margin-bottom: 12px;
            padding-bottom: 8px;
            border-bottom: 1px solid #eee;
            color: #2c3e50;
        }
        
        .characters-grid {
            display: grid;
            grid-template-columns: repeat(10, 1fr);
            gap: 10px;
        }
        
        .character-card {
            background: white;
            border-radius: 6px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
            transition: transform 0.3s, box-shadow 0.3s;
            text-align: center;
            cursor: pointer;
        }
        .character-card  a {
  text-decoration: none;
  color: inherit;
  outline: none;
        }
        .character-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
        }
        
 
        .pinyin-text {
            font-size: 12px;
            color: #555;
        }
        
        .character-hanzi {
            font-size: 20px;
            margin-bottom: 3px;
            color: #2c3e50;
        }
        
        .character-props {
            display: flex;
            justify-content: space-between;
            padding: 0 10px;
            margin-top: 1px;
            margin-bottom: 1px;
            font-size: 12px;
        }
        
        .prop {
            text-align: center;
        }
        
        .prop-value {
            font-weight: 300;
        }
        
        .navigation-panel {
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
            padding: 15px;
            margin-bottom: 20px;
        }
        
        .navigation-panel h3 {
            font-size: 16px;
            margin-bottom: 12px;
            padding-bottom: 8px;
            border-bottom: 1px solid #eee;
            color: #2c3e50;
        }
    
        .navigation-list {
            list-style: none;
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        
        .navigation-list li {
            flex: 1 0 calc(20% - 8px);
            text-align: center;
        }
        
        .navigation-list li a {
            display: block;
            padding: 6px 4px;
            background: #f5f5f5;
            border-radius: 4px;
            text-decoration: none;
            color: #555;
            font-size: 13px;
            transition: all 0.2s;
        }
        
        .navigation-list li a:hover {
            background: #e9e9e9;
            color: #8B1A1B;
        }
        
        .navigation-list.structure {
            gap: 10px;
        }
        
        .navigation-list.structure li {
            flex: 1 0 calc(33.33% - 10px);
        }
        
        .wuxing-jin {
            color: #D4AF37;
        }
        
        .wuxing-mu {
            color: #228B22;
        }
        
        .wuxing-shui {
            color: #1E90FF;
        }
        
        .wuxing-huo {
            color: #FF4500;
        }
        
        .wuxing-tu {
            color: #8B4513;
        }
        
        footer {
            background: #2F1B14;
            color: #F8E1A4;
            padding: 20px 0;
            text-align: center;
        }
        
 
 
        .copyright {
         
            font-size: 12px;
            color: #D4AF37;
        }
        
        .character-detail-header {
            display: flex;
            align-items: flex-start;
            margin-bottom: 20px;
            gap: 20px;
        }
        
        .player-container {
            flex: 0 0 200px;
            background: #fafafa;
            border-radius: 10px;
            padding: 15px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }
        
        .canvas-wrapper {
            background: white;
            margin-bottom: 15px;
            box-shadow: inset 0 0 0 1px #f0f0f0;
            display: flex;
            justify-content: center;
            align-items: center;
            width: 150px;
            height: 150px;
            margin: 0 auto 15px;
            background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 96' fill='%23fff' stroke='%23ddd'%3E%3Cpath d='M96 0L0 96zM0 0l96 96z' stroke-dasharray='1,2'/%3E%3Cpath d='M0 48h96zM48 0v96z' stroke-dasharray='1,3'/%3E%3C/svg%3E") center no-repeat;
        }
        
        .controls {
            margin-bottom: 5px;
        }
        
        .speed-controls {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin-bottom: 10px;
        }
        
        .speed-controls span {
            font-size: 13px;
            color: #666;
            font-weight: bold;
        }
        
        .btn {
            background: #f0f0f0;
            border: none;
            padding: 6px 12px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 12px;
            transition: all 0.2s;
        }
        
        .btn:hover {
            background: #e0e0e0;
        }
        
        .speed-btn.active, .btn:active {
            background: #d2091c;
            color: #F8E1A4;
        }
        
        .info {
            background: white;
            border-radius: 8px;
            padding: 12px;
            font-size: 13px;
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
        }
        
        .info h3 {
            font-size: 14px;
            margin-bottom: 8px;
            color: #2c3e50;
            border-bottom: none;
            padding-bottom: 0;
        }
        
        .info p {
            margin-bottom: 6px;
            display: flex;
        }
        
        .info p strong {
            margin-left: 5px;
        }
        
        .loading, .error {
            padding: 10px;
            text-align: center;
            border-radius: 4px;
            font-size: 13px;
        }
        
        .loading {
            background: #e8f4fd;
            color: #0066cc;
        }
        
        .error {
            background: #fde8e8;
            color: #cc0000;
        }
        
        .character-title {
            flex: 1;
        }
        
        .character-title-main {
            display: flex;
            align-items: center;
            margin-bottom: 12px;
        }
        
        .character-title-main h2 {
            font-size: 42px;
            margin-right: 15px;
            color: #2c3e50;
            font-weight: bold;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
        }
        

        .character-title-pinyin {
            margin-bottom: 12px;
            display: flex;
            align-items: center;
        }
        
 
        
        .character-pinyin .py {
            font-size: 22px;
            margin-right: 10px;
            color: #8B1A1B;
            font-weight: bold;
        }
        
        .character-pinyin .zy {
            font-size: 16px;
            color: #666;
        }
 
        
        .voice {
            display: flex;
            align-items: center;
            border: 1px solid rgba(255,0,0,.3);
            border-radius: 5px;
            padding: 14px 8px;
            height: 24px;
            cursor: pointer;
            transition: all .2s linear;
            margin-left: 4px;
        }
        
        .character-title-extra span {
            padding: 4px 10px;
            border-radius: 5px;
            font-size: 13px;
            border: 1px solid #d7b664;
        }
        
 
        
        .character-tags .badge:hover {
            background: #e0e0e0;
            transform: translateY(-1px);
        }
        
        .character-attrs {
            margin-top: 20px;
            background: #fafafa;
            border-radius: 10px;
            padding: 18px;
        }
        
        .character-attrs-list {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
        }
        
        .character-attrs-list p {
            display: flex;
            margin-bottom: 2px;
            align-items: center;
        }
        
        .character-attrs-list label {
            flex: 0 0 90px;
            font-weight: bold;
            color: #666;
            font-size: 14px;
        }
        
        .character-attrs-list span {
            flex: 1;
            color: #333;
            font-size: 14px;
        }
        
        .character-attrs-list a {
            color: #8B7355;
            text-decoration: none;
            transition: color 0.2s;
        }
        
        .character-attrs-list a:hover {
            color: #8B1A1B;
        }
        
        .character-attrs-list .bishun {
            grid-column: 1 / -1;
        }
        
        .character-attrs-list .w-100 {
            grid-column: 1 / -1;
        }
        
        .kangxi-dictionary-panel {
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
            padding: 15px;
            margin-bottom: 20px;
        }
        .kangxi-dictionary-panel h2 {
            font-size: 16px;
            margin-bottom: 12px;
            padding-bottom: 5px;
            border-bottom: 1px solid #eee;
            color: #2c3e50;
        }
        
        
        .kangxi-dictionary-panel h3 {
            font-size: 16px;
            margin-bottom: 12px;
            padding-bottom: 5px;
            border-bottom: 1px solid #eee;
            color: red;
        }
                .kangxi-dictionary-panel h3:before  {
            font-size: 15px;
content: "▶ ";
        }
        .kangxi-dictionary-content {
            font-size: 14px;
            line-height: 1.6;
            color: #555;
        }
        
        .kangxi-dictionary-head {
            margin-bottom: 5px;
            padding-bottom: 3px;
            border-bottom: 1px solid #eee;
        }
        
        .kangxi-dictionary-head p {
            margin-bottom: 8px;
        }
        .kangxi-dictionary-head strong {
            color: red;
        }     
        .kangxi-dictionary-head .attr {
             
            color: #8B7355;
        }
        
        .kangxi-dictionary-original {
            margin-bottom: 20px;
        }
        
        .kangxi-dictionary-original .explain {
            margin-bottom: 10px;
            padding-bottom: 10px;
            border-bottom: 1px dashed #eee;
        }
        
        .kangxi-dictionary-original .explain:last-child {
            border-bottom: none;
        }
        
        .kangxi-dictionary-original .pronounce{
          
            color: #fff;
            margin-right: 5px;
            background-color: #1881af;
            padding: 1px 3px;
            border-radius: 3px;
        }
        
        .kangxi-dictionary-original .eg {
        
            color: #fff;
            margin-right: 5px;
            background-color: #71a104;
            padding: 1px 3px;
            border-radius: 3px;
        }
        
        .kangxi-dictionary-original .name {
            
            color: #8B7355;
            border-bottom: 1px dotted red;
        }
        
        .kangxi-dictionary-original .zi-special {
            display: inline-block;
            vertical-align: middle;
        }
        
 
        .kangxi-dictionary-original .break {
            display: block;
            height: 5px;
        }
        
        .kangxi-dictionary-summary {
            margin-top: 5px;
            padding-top: 5px;
            border-top: 1px solid #eee;
        }
        
        .kangxi-dictionary-summary  em {
            margin: 0 2px;
            font-style: normal;
            color: red;
        }
        
        .kangxi-dictionary-summary p {
            margin-bottom: 8px;
        }
        
        .kangxi-dictionary-notes {
            margin-top: 15px;
            padding-top: 15px;
            border-top: 1px solid #eee;
            font-size: 12px;
            color: #888;
            text-align: center;
        }
        
        .shuowen-panel {
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
            padding: 15px;
            margin-bottom: 20px;
        }
        
        .shuowen-panel h2 {
            font-size: 15px;
            margin-bottom: 12px;
            padding-bottom: 5px;
            border-bottom: 1px solid #eee;
           color: #333;
        }
        
        .shuowen-panel h3 {
            font-size: 15px;
            margin-bottom: 12px;
            padding-bottom: 5px;
            border-bottom: 1px solid #eee;
           color: red;
        }
        .shuowen-panel h3:before {
            font-size: 15px;
content: "▶ ";
    
        }
        
        
        .shuowen-notify-danger{
        background-color: #fff;
    border-radius: 5px;
    border-left-color: red;
    padding: 5px;
    margin: -5px 0 15px;  
    border: 1px solid #E91E63;
    border-left-width: 5px;
            
            
        }
        .shuowen-content {
            font-size: 14px;
            line-height: 1.6;
            color: #555;
        }
        
        .shuowen-heading {
            margin-bottom: 15px;
            display: flex;
            justify-content: space-between;
            border-bottom: 2px dashed #9e9e9e2b;
        }
        
        .shuowen-heading h4 {
            font-size: 15px;
            color: #8B7355;
            margin-bottom: 5px;
        }
        .shuowen-zhang  {
    font-size: 14px;
    margin-bottom: 10px;
    margin-top: 10px;
        }    
 
        
        .shuowen-author {
            font-size: 14px;
            color: #1881af;
        }
        
        .shuowen-extra {
            margin-bottom: 15px;
            padding: 10px;
            background: #f9f9f9;
            border-radius: 5px;
        }
        
        .shuowen-extra span {
            margin-right: 5px;
        }
        
        .shuowen-extra strong {
            margin: 0 4px;
            color: red;
        }
        
        .shuowen-extra .ver {
            border: 1px solid red;
            background-color: #fff;
            border-radius: 3px;
            margin: 0 2px;
            padding: 2px 4px;
        }
        
        .shuowen-tag {
            color: #8B7355;
            background-color: #d6e4ff;
            font-style: normal;
            border-radius: 2px;
            padding: 2px 4px;
            margin-right: 6px;
        }
        
        .shuowen-subheading {
            display: flex;
            margin-bottom: 15px;
            padding-bottom: 8px;
            border-bottom: 1px dashed #eee;
        }
        .shuowen-subheading h4{
            font-size: 14px;
            color: red;
            margin-bottom: 5px;
        }
        .zi-special{
            font-size: 14px;
            color: red;
        }
        .shuowen-content h4,h5 {
            font-size: 14px;
            color: red;
            margin-bottom: 5px;
        }
        
        .shuowen-p{
            font-size: 14px;
           margin-bottom: 10px;
           margin-top: 10px;
        }
        
        .shuowen-variant {
            font-size: 13px;
            color: red;
            margin-left: 5px;
        }
        
        .shuowen-explain {
            margin-bottom: 15px;
            background: #f9f9f9;
            border-radius: 5px;
            padding: 4px 8px;
            display: flex;
            align-items: center;
            border-left: 4px solid #9d855d;
        }
        
        .zi-lazyload {
            width: 18px;
            height: 18px;
            vertical-align: -3px;
        }
        
        .shuowen-cover {
            align-self: flex-start;
            margin-right: 10px;
        }
        
        .shuowen-cover img {
            width: 60px;
            height: 60px;
            background-color: #fff;
        }
        
        .shuowen-note {
            margin-bottom: 15px;
            padding: 10px;
            background: #f0f7ff;
            border-radius: 5px;
            font-size: 14px;
        }
        
        .shuowen-source-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 15px;
            font-size: 13px;
        }
        
        .shuowen-source-table th {
            background: #f5f5f5;
            padding: 8px;
            text-align: left;
            border-bottom: 1px solid #eee;
        }
        
        .shuowen-source-table td {
            padding: 8px;
            border-bottom: 1px solid #eee;
        }
        
        .shuowen-source-table tr:hover {
            background: #f9f9f9;
        }
        
        .shuowen-notes {
            margin-top: 15px;
            padding-top: 15px;
            border-top: 1px solid #eee;
            font-size: 12px;
            color: #888;
            text-align: center;
        }
        
        .character-explanation-panel {
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
            padding: 15px;
            margin-bottom: 20px;
        }

        .character-explanation-panel h2 {
            font-size: 16px;
            margin-bottom: 6px;
            padding-bottom: 8px;
            border-bottom: 1px solid #eee;
            color: #2c3e50;
        }
        
        
        .character-explanation-panel h3 {
            font-size: 16px;
            margin-bottom: 6px;
            padding-bottom: 8px;
            border-bottom: 1px solid #eee;
            color: red;
        }
        .character-explanation-panel h3:before {
            font-size: 15px;
content: "▶ ";
    
        }
        
        .character-explanation-content {
            position: relative;
        }
        
        .character-explanation-header {
            position: sticky;
            top: 0;
            background: white;
            z-index: 10;
            padding: 10px 0;
            border-bottom: 1px solid #eee;
        }
        
        .character-explanation-header h2 {
            font-size: 18px;
            color: #2c3e50;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        
        .character-explanation-header a {
            font-size: 12px;
            color: #8B7355;
            text-decoration: none;
        }
        
        .character-explanation-header a:hover {
            color: #8B1A1B;
        }
        
        .d-flex{
            
           display: flex; 
            
        }
        .pinyin-nav, .kangxi-nav, .shuowen-nav {
    margin-bottom: 15px;
}

.pinyin-nav-list, .kangxi-nav-list, .shuowen-nav-list {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 5px;
}

.pinyin-nav-list a, .kangxi-nav-list a, .shuowen-nav-list a {
    display: block;
    padding: 6px 12px;
    background: #f5f5f5;
    border-radius: 4px;
    text-decoration: none;
    color: #555;
    font-size: 13px;
    white-space: nowrap;
    transition: all 0.2s;
    width: 100%;
    text-align: center;
    margin: 0 5px;
}

.pinyin-nav-list a.active, .kangxi-nav-list a.active, .shuowen-nav-list a.active {
    background: #8B7355;
    color: #F8E1A4;
}

.pinyin-nav-list a:hover:not(.active), 
.kangxi-nav-list a:hover:not(.active), 
.shuowen-nav-list a:hover:not(.active) {
    background: #e9e9e9;
    color: #8B1A1B;
}
        
        .pinyin-content {
            margin-bottom: 20px;
        }
        
        .pinyin-section {
            margin-bottom: 25px;
        }
        
        .pinyin-section-header {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
            padding-bottom: 8px;
            border-bottom: 1px solid #eee;
        }
        
        .pinyin-section-header h3 {
            font-size: 18px;
            color: red;
            margin-right: 10px;
            margin-bottom: 1px;
            padding-bottom: 1px;
        }
        .zi-font {
    font-family: "hygxFont", "PingFang SC", Microsoft YaHei, Helvetica, Hiragino Sans GB, WenQuanYi Micro Hei, sans-serif !important;
    font-weight: 500 !important;
    margin-left: 0 !important;
}
        
        .pinyin-section-alias {
            font-size: 14px;
            color: #666;
        }
        
        .pinyin-section-alias label {
            color: #8B7355;
            margin-right: 5px;
            font-size: 16px;
            font-weight: bold;
        }
        
        .pinyin-section-alias a {
            color: red;
            text-decoration: none;
            margin-right: 5px;
            font-size: 16px;
            font-weight: bold;
        }
        
        .pinyin-section-alias a:hover {
            color: #8B1A1B;
        }
        
        .pinyin-section-sup {
            background-color: #f60c0c;
            color: #fff;
            width: 14px;
            line-height: 14px;
            font-size: 12px;
            font-weight: 700;
            text-align: center;
            height: 14px;
            border-radius: 10px;
            margin: 8px;
            margin-bottom: 20px;
        }
        .pinyin-section sup {
            background-color: #f60c0c;
            color: #fff;
            width: 14px;
            line-height: 14px;
            font-size: 12px;
            font-weight: 700;
            text-align: center;
            height: 14px;
            border-radius: 10px;
            margin: 8px;
            margin-bottom: 20px;
        }
        .pinyin-section-voice {
            display: flex;
            align-items: center;
            border: 1px solid rgba(255,0,0,.3);
            border-radius: 5px;
            cursor: pointer;
            transition: all .2s linear;
        }
        
        .pinyin-section-voice:hover {
            background: #f9f9f9;
        }
        
        .pinyin-section-voice img {
            margin-right: 8px;
        }
        
        .pinyin-section-voice em {
            padding: 0 6px 0 2px;
            font-style: normal;
            font-size: 14px;
            font-family: Tahoma,"Helvetica Neue",Helvetica,Arial,sans-serif;
            font-weight: 700;
        }
        
        .basic-explanation {
            margin-bottom: 20px;
        }
        
        .basic-explanation h4 {
            background-color: #9e9e9e80;
            border-radius: 5px;
            padding: 5px 10px;
            font-size: 16px;
        }
        
        .explain-item {
            padding: 10px 0;
          margin-left: 30px;
            position: relative;
            border-bottom: 1px solid #9e9e9e12;
        }
        
.explain-en,
.explain-quotes,
.explain-eg {
    font-size: 14px;
    position: relative;
    padding-left: 0;
    margin-bottom: 0;
    margin-left: 20px;
    border-left: 1px solid #9e9e9e38;
    padding-top: 32px;
    line-height: 1.5;
}

.explain-en>label,
.explain-quotes>label,
.explain-eg>label {
    position: absolute;
    left: -20px;
    top: 8px;
    border-radius: 5px;
    width: 40px;
    height: 22px;
    line-height: 22px;
    box-sizing: content-box;
    color: #fff;
    z-index: 1;
    white-space: nowrap;
    text-align: center;
    font-size: 12px;
    margin-bottom: 0;
}

.explain-en>span,
.explain-quotes>span,
.explain-eg>span {
    display: block;
    padding: 6px 0 6px 15px;
    border-bottom: 1px solid #9e9e9e38;
}


.explain-en>label { background-color: #67a535; }
.explain-quotes>label { background-color: #8a0303; }
.explain-eg>label { background-color: #333; }

.explain-en>span { color: #E91E63; }
.explain-quotes>span { color: #795548; }
.explain-eg>span { color: #333; }

        
        .explain-item .no {
            flex: 0 0 30px;
            color: red;
            position: absolute;
    left: -26px;
        }
        
        .explain-item .text {
            flex: 1;
            color: #333;
            font-size: 14px;
        }
        
        .explain-item .eg {
            margin-left: 10px;
            color: #666;
            font-size: 14px;
        }
        
        .explain-item .eg label {
            margin-bottom: 0;
            border-radius: 5px;
            font-size: 12px;
            margin-right: 6px;
            text-align: center;
            color: #fff;
            line-height: 1.5;
            padding: 2px  6px;
            background-color: #666;
        }
        
        
        .en{
            font-size: 14px;
    font-style: normal;
    color: #607d8b;
        }
      .en::before {
    content: " [ ";
}
     .en:after {
    content: " ] ";
}   
        
        
        
        a.primary {
    padding-bottom: 1px;
    text-align: center;
    color: red;
    border-bottom: 1px solid var(--a-hover-color);
}
        .cankao {
    padding-bottom: 1px;
    text-align: center;
    color: #795548;
        font-weight: bold;
    border-bottom: 1px solid var(--a-hover-color);
}
        .detailed-explanation {
            margin-bottom: 20px;
        }
        
        .detailed-explanation-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 10px;
            border-bottom: 1px solid #9E9E9E;
        }
        
        .detailed-explanation-header h4 {
font-size: 16px;
    color: #333;
    background-color: #9e9e9e80;
    padding: 2px 5px;
    
margin-bottom: 2px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
        }
        
        .switch-container {
            display: flex;
            align-items: center;
            font-size: 14px;
            color: #666;
        }
        
        .switch {
            position: relative;
            display: inline-block;
            width: 40px;
            height: 20px;
            margin-right: 8px;
        }
        
        .switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        
        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            transition: .4s;
            border-radius: 20px;
        }
        
        .slider:before {
            position: absolute;
            content: "";
            height: 16px;
            width: 16px;
            left: 2px;
            bottom: 2px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }
        
        input:checked + .slider {
            background-color: #8B7355;
        }
        
        input:checked + .slider:before {
            transform: translateX(20px);
        }
        
        .part-of-speech {
            font-size: 16px;
            color: red;
            font-weight: bold;
            margin-bottom: 10px;
            padding-bottom: 5px;
            border-bottom: 1px solid #eee;
        }
        .part-of-speech::before {
    content: "《";
}
        .part-of-speech::after  {
    content: "》";
}    
        
        
        
        .explanation-content {
            margin-bottom: 15px;
        }
        
        .explanation-item {
            margin-bottom: 12px;
            font-size: 14px;
        }
        
        .explanation-item a {
            color: red;
        }
        
        .extra-info span {
            display: block;
            padding: 1px 0 6px 50px;
            border-bottom: 1px solid #9e9e9e12;
            color: #795548;
        }
        
        .explanation-item .no {
            color: #8B7355;
            font-weight: bold;
            margin-right: 5px;
        }
        
        .extra-info {
            margin-top: 10px;
            padding: 10px;
            background: #f9f9f9;
            border-radius: 5px;
        }
        
        .extra-info  label {
            position: absolute;
            border-radius: 5px;
            width: 40px;
            height: 22px;
            line-height: 22px;
            box-sizing: content-box;
            color: #fff;
            z-index: 1;
            white-space: nowrap;
            text-align: center;
            font-size: 12px;
            margin-bottom: 0;
        }
        
        .extra-info .en label {
            background-color: #67a535;
        }
        
        .extra-info .quotes label {
            background-color: #8a0303;
        }    
        
        .extra-info .eg label {
            background-color: #333;
        }  
        
        .extra-info .en {
            margin-bottom: 8px;
        }
        
        .extra-info .quotes {
            margin-bottom: 8px;
        }
        
        .extra-info .eg {
            margin-bottom: 8px;
        }
        
        .name-analysis-panel {
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
            padding: 15px;
            margin-bottom: 20px;
        }
        
        .name-analysis-panel h3 {
            font-size: 16px;
            margin-bottom: 12px;
            padding-bottom: 8px;
            border-bottom: 1px solid #eee;
            color: #2c3e50;
        }
        
        .name-analysis-header {
            text-align: center;
            margin-bottom: 20px;
        }
        
        .name-analysis-header h1 {
            font-size: 22px;
            color: #2c3e50;
            margin-bottom: 8px;
        }
        
        .name-analysis-header .subtitle {
            font-size: 14px;
            color: #7f8c8d;
        }
        
        .name-analysis-character {
            text-align: center;
            font-size: 48px;
            margin: 15px 0;
            color: #2c3e50;
            font-weight: bold;
        }
        
        .name-analysis-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 15px;
            margin-bottom: 20px;
        }
        
        .name-analysis-card {
            background: #fafafa;
            border-radius: 8px;
            padding: 15px;
            text-align: center;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
        }
        
        .name-analysis-card h2 {
            font-size: 15px;
            margin-bottom: 15px;
            color: #2c3e50;
            padding-bottom: 8px;
            border-bottom: 1px solid #eee;
        }
        
        .name-analysis-chart-container {
            height: 180px;
            margin-bottom: 15px;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        .name-analysis-stats-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
        }
        
        .name-analysis-stat-item {
            text-align: center;
        }
        
        .name-analysis-stat-value {
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 5px;
        }
        
        .name-analysis-stat-label {
            font-size: 12px;
            color: #7f8c8d;
        }
        
        .male-color {
            color: #4FACFE;
        }
        
        .female-color {
            color: #FD5E8F;
        }
        
        .first-color {
            color: #43E97B;
        }
        
        .last-color {
            color: #FF9A44;
        }
        
        .name-analysis-info-section {
            background: #fafafa;
            border-radius: 8px;
            padding: 15px;
            margin-top: 20px;
        }
        
        .name-analysis-info-title {
            font-size: 16px;
            margin-bottom: 12px;
            color: #2c3e50;
            padding-bottom: 8px;
            border-bottom: 1px solid #eee;
        }
        
        .name-analysis-info-content {
            font-size: 14px;
            line-height: 1.6;
            color: #555;
        }
        
        .name-analysis-info-content p {
            margin-bottom: 10px;
        }
        
        @media (max-width: 1200px) {
            .container {
                width: 100%;
            }
        }
        
        @media (max-width: 992px) {
            .character-detail-header {
                flex-direction: column;
            }
            
            .player-container {
                flex: 0 0 auto;
                width: 100%;
            }
            
            .character-attrs-list {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .main-content {
                flex-direction: column;
            }
            
            .left-column, .right-column {
                flex: 1;
            }
            
            .name-analysis-grid {
                grid-template-columns: 1fr;
            }
        }
        
        @media (max-width: 768px) {
            .header-content {
                flex-direction: column;
                gap: 15px;
            }
            
            .search-bar {
                max-width: 100%;
                margin: 0;
            }
            
            .characters-grid {
                grid-template-columns: repeat(4, 1fr);
            }
            
            .pinyin-nav-list {
                flex-wrap: wrap;
            }
        }
        
        @media (max-width: 576px) {
            .character-attrs-list {
                grid-template-columns: 1fr;
            }
            
            .character-title-main h2 {
                font-size: 36px;
            }
            
            .characters-grid {
                grid-template-columns: repeat(3, 1fr);
            }
            
            .navigation-list li {
                flex: 1 0 calc(33.33% - 8px);
            }
            
            .pinyin-section-header {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .pinyin-section-voice {
                margin-top: 10px;
            }
        }
        
        .character-list-panel {
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
            padding: 15px;
            margin-bottom: 20px;
        }
        .character-list-panel h3 {
    font-size: 16px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
    color: #2c3e50;
        }
        
        .character-list-panel .section-title {
            margin-bottom: 20px;
        }
        
        .character-list-panel .section-title h1 {
            font-size: 28px;
            margin-bottom: 8px;
            color: #2c3e50;
        }
        
        .character-list-panel .section-title p {
            color: #7f8c8d;
            font-size: 16px;
            max-width: 800px;
            margin: 0 auto;
            line-height: 1.5;
        }
        
        .list-content {
            display: flex;
            align-items: center;
            padding: 12px;
            border-bottom: 1px solid #f0f0f0;
            position: relative;
        }
        
        .list-content:last-child {
            border-bottom: none;
        }
        
        .list-left {
            display: flex;
            align-items: center;
            margin-right: 15px;
        }
        
        .list-word {
            font-size: 32px;
            color: #2c3e50;
            text-decoration: none;
            margin-right: 15px;
            font-weight: bold;
            min-width: 50px;
            text-align: center;
        }
        
        .list-word:hover {
            color: #8B1A1B;
        }
        
        .list-right {
            flex: 1;
        }
        
        .list-right ul {
            display: flex;
            list-style: none;
            margin-bottom: 5px;
            align-items: center;
        }
        
        .list-right ul li {
            margin-right: 15px;
        }
        
        .list-right span {
            color: #666;
            font-size: 14px;
            margin-right: 5px;
        }
        
        .list-right a {
            color: #8B7355;
            text-decoration: none;
            font-size: 14px;
        }
        
        .list-right a:hover {
            color: #8B1A1B;
        }
        
        .info-icon {
            margin-left: 5px;
            margin-top: 5px;
        }
        
        .audio {
            display: inline-block;

            background-size: contain;
            cursor: pointer;
        }
        
 
        
        .list-btn {
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 20px;
            height: 20px;
            background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%238B7355"><path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg>') no-repeat center;
            background-size: contain;
            cursor: pointer;
        }
        
        .list-btn:hover {
            background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%238B1A1B"><path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg>') no-repeat center;
            background-size: contain;
        }
        
        .character-image {
            width: 120px;
            height: 120px;
            background-image: url('/static/images/dict_wordBg2.png');
            background-size: contain;
            background-repeat: no-repeat;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 10px;
        }
        
        .character-image img {
            width: 110px;
            height: 110px;
        }
        
        .content-nav-list {
    --gap-x: 20px;
    --border-color: #9E9E9E;
    --text-color: #795548;
    --bg-color: #f5f5f5;
    
    padding: 5px 0 10px;
}

.content-nav-list .title {
    font-size: 20px;
    margin-bottom: 5px;
}   

.content-nav-list .list {
    display: flex;
    margin: 0 calc(var(--gap-x) * -1);
}  

.scroll-x .wrap {
    padding: 10px var(--gap-x);
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
}

.content-nav-list .list a {
    flex: 1;
    white-space: nowrap;
    text-align: center;
    border: 1px solid var(--border-secondary-color);
    background: var(--bg-color);
    border-radius: 5px;
    font-size: 14px;
    padding: 5px 10px;
    margin: 0 2px;
    color: var(--text-color);
    text-decoration: none;
}

.content-card-header {
    border-bottom: 1px solid var(--border-secondary-color);
    backdrop-filter: blur(5px);
    padding: 5px;
    position: sticky;
    top: -2px;
}

.content-card-header a {
    font-size: 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.content-card-header a:hover {
    color: red;
}

.content-card-header .title a::before {
    content: "#";
    margin-right: 6px;
    color: var(--border-color);
    font-size: 20px;
}

.content-card-body {
    padding: 5px 0;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px; 
}

.category-list li {
    width: calc(10% - 10px);
    list-style: none;
}

.category-list li a {
    background: #fff;
    border: 1px solid #9E9E9E;
    text-align: center;
    display: block;
    border-radius: 5px;
    padding: 1px 0;
    color: var(--body-color);
    box-shadow: var(--shadow-color);
    transition: all 0.2s ease;
    text-decoration: none;
}