    :root {
      --primary-red: #c3272b;
      --ink-black: #333333;
      --paper-beige: #f5f1e6;
    }
    body {
      background: var(--paper-beige);
      font-family: "Noto Serif SC", "Microsoft YaHei", sans-serif;
    }
    .navbar {
      border-bottom: 2px solid #d4af37;
    }
    .seo-keyword {
      color: var(--ink-black);
      font-size: 0.9rem;
      opacity: 0.8;
    }
    
    em{
        color: #f14668!important;
        font-weight: bold;
    }

    /* 基础信息样式 */
    .ci-attrs {
      border-top: 1px solid #eee;
    }
    .attr-item {
      display: flex;
      align-items: center;
      padding: 12px 0;
      border-bottom: 1px solid #eee;
    }
    .last-item {
      border-bottom: none !important;
    }
    .info-label {
      flex: 0 0 90px;
      font-weight: 600;
      padding: 4px 8px;
      border-radius: 4px;
      background: #fff;
      box-shadow: 0 2px 8px rgba(195,39,43,0.1);
      margin-right: 15px;
    }
    .info-content {
      flex: 1;
      line-height: 1.6;
    }
    .info-content a:hover {
      text-decoration: underline;
      color: #c3272b !important;
    }

    /* 基本解释样式 */
    .explain-box {
      border-left: 4px solid #c3272b;
      border-radius: 4px;
    }
    /* 扩展信息样式 */
    .ext-item {
      padding: 1rem 0;
      border-bottom: 1px solid #eee;
      display: flex;
      align-items: flex-start;
    }
    .info-tag {
      font-weight: 600;
      padding-left: 0.5rem;
      border-left: 3px solid #c3272b;
    }
    .info-content {
      padding-left: 1.5rem;
      line-height: 1.7;
    }
    .info-content a {
      margin-right: 5px;
    }    
    .no {
      display: inline-block;
      width: 1.8em;
      color: #666;
    }
    .tags a {
        margin: 3px 8px;
    }
    .tag.is-danger.is-light img,
    .tag.is-danger.is-light .py,
    .tag.is-danger.is-light .zy {
      cursor: pointer;
    }
    /* 详细解释样式 */
    .explain {
      line-height: 1.8;
      font-size: 1.05rem;
      padding-left: 1.5rem;
      _border-left: 3px solid #f0f0f0;
    }
    .dynasty-quote {
      display: block;
      margin: 1rem 0;
      padding: 0.8rem;
      background-color: #f8f9fa;
      border-radius: 4px;
      border-left: 3px solid #c3272b;
      color: #666;
    }
    .highlight {
      color: #c3272b;
      font-weight: 600;
      font-style: italic;
    }
    .literary-link {
      color: #c3272b !important;
      border-bottom: 1px dashed #c3272b;
    }
    .literary-link:hover {
      border-bottom-style: solid;
    }
    
    
/* 默认隐藏第11个及之后的列表项 */
.menu-list li:nth-child(n+17) {
  display: none;
}

/* 展开状态显示全部 */
.menu-list.is-expanded li {
  display: block !important;
}

/* 展开按钮样式 */
.expand-button {
  margin-top: 1rem;
  width: 100%;
  text-align: center;
  cursor: pointer;
  color: #f14668;
  transition: all 0.3s;
}
.expand-button:hover {
  background: #fff5f7;
}

/* 近反义词页核心样式 */
.cy-synonym-container {
  max-width: 900px;
  margin: 2rem auto;
}

/* 标题区 */
.cy-header {
  text-align: center;
  padding: 2rem 0;
  border-bottom: 2px solid #eee;
}
.cy-pinyin {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.cy-pinyin span {
  font-size: 1.2rem;
  color: #c3272b;
  padding: 0.3rem 0.8rem;
  background: rgba(195,39,43,0.1);
  border-radius: 4px;
}
.cy-title {
  font-size: 2.4rem;
  color: #c3272b;
  margin: 1rem 0;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* 近义词主体 */
.cy-main {
  margin-top: 2rem;
}
.cy-visual {
  text-align: center;
  margin: 2rem 0;
}
.cy-visual img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.cy-relation-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-family: system-ui, -apple-system, sans-serif;
  table-layout: fixed; /* 保持列宽稳定 */
}
.cy-relation-table th {
  background-color: #feecf0 !important;
}
.cy-relation-table th,.cy-relation-table td {
  padding: 12px 15px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e0e0e0;
  word-wrap: break-word; /* 处理长内容换行 */
}

/* 首列固定宽度 */
.cy-relation-table th:first-child,
.cy-relation-table td:first-child {
  width: 120px; /* 根据四个中文的常规宽度设置 */
  min-width: 120px;
}
/* 第一列文字颜色 */
.cy-relation-table th:first-child,
.cy-relation-table td:first-child {
  color: #cc0f35 !important;
}

/* 第二、三列自适应 */
.cy-relation-table th:nth-child(2),
.cy-relation-table td:nth-child(2),
.cy-relation-table th:nth-child(3),
.cy-relation-table td:nth-child(3) {
  width: auto;
  min-width: 180px; /* 设置最小宽度避免内容挤压 */
}

/* 表头样式 */
.cy-relation-table th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #2d2f31;
}

/* 斑马纹效果 */
.cy-relation-table tbody tr:nth-child(even) {
  background-color: #fcfcfc;
}

/* 逗号分隔优化 */
.cy-relation-table td:nth-child(2)::after,
.cy-relation-table td:nth-child(3)::after {
  content: ",";
  color: transparent; /* 隐藏最后一个逗号 */
}

.cy-relation-table td:nth-child(2) span,
.cy-relation-table td:nth-child(3) span {
  display: inline-block;
  margin-right: 0.3em;
}

/* 释义区块 */
.cy-definition {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  border-left: 4px solid #c3272b;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.cy-definition h3 {
  color: #c3272b;
  margin-bottom: 1.5rem;
}
.cy-definition dl {
  margin-left: 1rem;
}
.cy-definition dt {
  font-weight: 600;
  color: #333;
  margin: 1rem 0 0.5rem;
}
.cy-definition dd {
  margin-left: 1.5rem;
  color: #666;
  line-height: 1.7;
}
.cy-tip {
  display: inline-block;
  width: 60px;
  color: #c3272b;
  font-weight: 500;
}

/* 分页容器 */
.pages {
  --brand-color: #f14668;
  --hover-bg: rgba(241, 70, 104, 0.1);
  --active-bg: #f14668;
  margin: 2rem 0;
  overflow-x: auto; /* 添加水平滚动 */
}

/* 分页列表 */
.pages ul {
  display: inline-flex; /* 关键修改：改为行内flex */
  flex-wrap: nowrap; /* 禁止换行 */
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 100%; /* 保证容器宽度 */
  white-space: nowrap; /* 禁止文本换行 */
}

/* 分页项 */
.pages li {
  margin: 0 4px; /* 减少间距 */
  flex-shrink: 0; /* 禁止收缩 */
}

/* 链接样式 */
.pages a,
.pages span {
  display: block;
  min-width: 36px;
  padding: 8px 12px;
  text-align: center;
  text-decoration: none;
  color: #666;
  border: 1px solid rgba(241, 70, 104, 0.2);
  border-radius: 6px;
  transition: all 0.3s;
}

/* 当前页样式 */
.pages .active span {
  background: var(--active-bg);
  color: #fff;
  border-color: var(--brand-color);
}

/* 悬停效果 */
.pages a:hover:not(.active) {
  background: var(--hover-bg);
  color: var(--brand-color);
  border-color: var(--brand-color);
}

/* 上一页/下一页特殊样式 */
.prev-page a,
.next-page a {
  color: var(--brand-color)!important;
  border-color: var(--brand-color)!important;
}

/* 移动端优化 */
@media (max-width: 768px) {
  .pages {
    margin: 1.5rem -15px; /* 扩大触控区域 */
  }
  
  .pages ul {
    padding: 0 15px; /* 增加边距 */
  }
  
  .pages a,
  .pages span {
    min-width: 32px;
    padding: 6px 10px;
    font-size: 14px;
  }
  
  /* 隐藏中间页码 */
  li:not(.active):not(.prev-page):not(.next-page):not(:first-child):not(:last-child) {
    _display: none;
  }
}

/* 滚动条美化 */
.pages::-webkit-scrollbar {
  height: 3px;
}
.pages::-webkit-scrollbar-thumb {
  background: rgba(241,70,104,0.3);
}

/* 相关链接 */
.cy-related {
  margin-top: 2rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
}
.cy-related a {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.2rem;
  margin: 0.5rem;
  background: rgba(195,39,43,0.1);
  color: #c3272b;
  border-radius: 20px;
  transition: all 0.3s;
}
.cy-related a:hover {
  background: #c3272b;
  color: white;
  transform: translateY(-2px);
}
/* 工具页专用样式 */
.pinyin-tool {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 2rem;
  margin: 2rem auto;
  _max-width: 800px;
}

.pinyin-header {
  color: #c3272b;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #eee;
  text-align: center;
}

/* 输入输出区域 */
.pinyin-io-group {
  display: grid;
  gap: 1.5rem;
}
.pinyin-textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #eee;
  border-radius: 6px;
  font-family: "Noto Serif SC", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  resize: vertical;
  transition: all 0.3s;
}
.pinyin-textarea:focus {
  border-color: #c3272b;
  box-shadow: 0 0 8px rgba(195,39,43,0.1);
  outline: none;
}

/* 按钮组 */
.pinyin-controls {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}
.pinyin-button {
  padding: 0.8rem 1.5rem;
  background: #c3272b;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.pinyin-button:hover {
  background: #a61f23;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(166,31,35,0.2);
}
.pinyin-button:active {
  transform: translateY(0);
}
/* 选项卡样式 */
.cy-tabs {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #eee;
}
.cy-tab {
  cursor: pointer;
  padding: 0.5rem 1rem;
  color: #666;
  position: relative;
  transition: all 0.3s;
}
.cy-tab.active {
  color: #c3272b;
  font-weight: 600;
}
.cy-tab.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: #c3272b;
}
.cy-tab-content {
  display: none;
}
.cy-tab-content.active {
  display: block;
}
/* 新增样式 */
.menu-list.grid-cols-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 1rem;
}
.menu-list.grid-cols-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem 1rem;
}
.menu-list.grid-cols-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem 1rem;
}
.menu-list.grid-cols-5 li,.menu-list.grid-cols-4 li,.menu-list.grid-cols-2 li {
  margin: 0;
  padding: 0;
}
.menu-list.grid-cols-5 li a, .menu-list.grid-cols-4 li a, .menu-list.grid-cols-2 li a {
  padding: 0.5em 0.75em;
  border-radius: 4px;
  transition: all 0.3s;
}
.menu-list.grid-cols-5 li a:hover, .menu-list.grid-cols-4 li a:hover,.menu-list.grid-cols-2 li a:hover {
  background: rgba(195,39,43,0.1);
}
/* 新增自定义样式 */
.animal-cy-item .box {
  padding: 0.75rem;
  _min-height: 80px;
}
.animal-cy-item p {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

/* 初始隐藏第6条及之后的列表项 */
#sentenceList li:nth-child(n+6) {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* 展开时的动画效果 */
#sentenceList.expanded li {
  display: list-item;
  opacity: 1;
}

/* 初始状态 */
.explain-content {
  position: relative;
  max-height: 10em; /* 按10行计算 (假设1em=20px) */
  overflow: hidden;
  transition: max-height 0.5s ease;
}

/* 展开后 */
.explain-content.expanded {
  max-height: 1000px;
}

/* 渐变遮罩增强体验 */
.explain-content::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.9));
  opacity: 1;
  transition: opacity 0.3s ease;
}

.explain-content.expanded::after {
  opacity: 0;
}
/*  include  */
.title-line-cross {
    display: flex;
    align-items: center;
}
.title-line-cross:after, .title-line-cross:before {
    content: "";
    flex-grow: 1;
    height: 1px;
    overflow: hidden;
    background-color: #f0f0f0;
}
.mt-5>.title-line-cross {
    padding: 20px 0;
}
.mt-5>.title-line-cross h4 {
    color: unset;
    margin-bottom: 0;
}
.title-line-cross>h4 {
    margin: 0 20px;
}
.mt-5> h3 span {
    margin-left: 20px;
    font-size: 1.25rem;
    color: #6c757d;
}
.mt-5> h3 span::before {
    content: "[";
    margin-right: 6px;
}
.mt-5> h3 span::after {
    content: "]";
    margin-left: 6px;
}
.mt-5> h3 span::after, .mt-5> h3 span::before {
    font-size: 1rem;
}
.pinyin {
    font-family: "Pinyin", Tahoma, "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.ci-entries {
    --ci-gap: 20px;
}
.ci-entries .explain {
    font-size: .9375rem;
    position: relative;
    margin-left: 22px;
    margin-bottom: 20px;
    line-height: 160%;
}
.ci-entries .explain>.no {
    position: absolute;
    left: -22px;
    top: 0;
    color: red;
    font-family: "number";
    font-size: 1.125rem;
}
.ci-content a.primary {
    margin-left: 1px;
    margin-right: 1px;
}
.ci-content h3 {
    color: #6f42c1;
    font-size: 1rem;
    margin-bottom: 10px;
}
.ci-content h3 span {
    margin-left: 20px;
    font-size: 1.25rem;
    color: #6c757d;
}
a.primary {
    padding-bottom: 1px;
    text-align: center;
    color: red;
    border-bottom: 1px solid #dc3545;
}
.ci-entries .extra.last {
    margin-bottom: 20px;
}
.ci-entries .extra {
    padding-left: 16px;
    margin-bottom: calc(var(--ci-gap) / 2);
    color: #666;
    display: flex;
    line-height: 1.5rem;
    font-size: .875rem;
}
.ci-entries .extra .tag {
    height: 1.25rem;
    line-height: 1.25rem;
    padding: 0 .25rem;
    margin-top: .125rem;
    margin-right: 6px;
    flex-shrink: 0;
    align-self: flex-start;
}
.badge-info {
    color: #fff!important;
    background-color: #17a2b8!important;
}
.badge {
    display: inline-block;
    padding: .25em .4em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25rem;
    transition: color .15sease-in-out, background-color .15sease-in-out, border-color .15sease-in-out, box-shadow .15sease-in-out;
}
.badge-primary {
    color: #fff;
    background-color: #8b6cc3;
}
.ci-entries .extra .content {
    flex-grow: 1;
}
.ci-fanyi ul>li {
    padding-left: 1rem;
    display: flex;
    align-items: flex-start;
    padding-top: .25rem;
    padding-bottom: .25rem;
}
.ci-fanyi ul>li .content {
    display: inline-block;
    font-size: 14px;
    margin-left: .5rem;
    padding-bottom: .25rem;
    border-bottom: 1px solid #f0f0f0;
}
.ci-baike {
    line-height: 1.7;
}
.ci-baike>p {
    padding-left: 2px;
    font-size: .925rem;
}
/* 响应式优化 */
@media (max-width: 768px) {
  .pinyin-tool {
    padding: 1.5rem;
    _margin: 1rem;
  }
  .pinyin-header {
    font-size: 1.5rem;
  }
  .pinyin-button {
    flex: 1 1 100%;
    justify-content: center;
  }
}
/* 响应式处理 */
@media (max-width: 768px) {
  .cy-title {
    font-size: 1.8rem;
  }
  .cy-pinyin {
    flex-wrap: wrap;
  }
   .cy-relation-table {
    border: 0;
  }
  
  .cy-relation-table thead {
    display: none;
  }
  
  .cy-relation-table tr {
    display: block;
    margin-bottom: 1em;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
  }
  
  .cy-relation-table td {
    display: block;
    text-align: right;
    font-size: 0.9em;
    border-bottom: 1px dotted #e0e0e0;
  }
  
  .cy-relation-table td:last-child {
    border-bottom: 0;
  }
  
  .cy-relation-table td::before {
    content: attr(data-label);
    float: left;
    font-weight: 600;
    color: #2d2f31;
  }
  
  /* 首列在移动端保持突出 */
  .cy-relation-table td:first-child {
    background-color: #f8f9fa;
    font-weight: 500;
    border-bottom: 2px solid #e0e0e0;
  }
  .cy-relation-table th:first-child, .cy-relation-table td:first-child {
    min-width: -webkit-fill-available;
  }
  .cy-tabs {
    gap: 1rem;
    padding: 0 0.5rem;
  }
  .cy-tab {
    font-size: 0.9rem;
    padding: 0.5rem;
  }
    #sentenceList li {
    font-size: 0.9rem;
      }  
      
  /* 重置父容器布局 */
  .columns.is-multiline {
    display: flex !important;
    flex-wrap: wrap !important;
    margin: 0 -0.25rem !important; /* 抵消子元素边距 */
  }

  /* 强制子元素宽度 */
  .columns.is-multiline>.column.is-2,.columns.is-multiline>.column.is-3 {
    flex: 0 0 calc(50% - 0.5rem) !important;
    max-width: calc(50% - 0.5rem) !important;
    margin: 0.25rem !important;
    padding: 0 !important; /* 清除默认padding */
  }

  /* 内容容器优化 */
  .column.is-2 .box {
    margin: 0;
    padding: 0.75rem 0.5rem;
    min-height: 80px; /* 统一高度 */
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* 汉字大小优化 */
  .has-text-danger {
    _font-size: 1.4rem !important;
    line-height: 1.2;
  }

  /* 拼音优化 */
  small {
    font-size: 0.7rem !important;
    opacity: 0.8;
    margin-top: 0.2rem;
  }   
      
}
    /* 布局控制 */
    @media screen and (min-width: 769px) {
      .is-order-1 { order: 1; }
      .is-order-2 { order: 2; }
    }

    /* 移动端优化 */
    @media screen and (max-width: 768px) {
      .info-label {
        flex-basis: 80px;
        margin-right: 10px;
      }
      .attr-item {
        padding: 10px 0;
      }
      .ext-item {
        flex-direction: column;
      }
      .info-tag {
        margin-bottom: 0.5rem;
        padding-left: 0;
        border-left: none;
      }
      .info-content {
        padding-left: 0;
      }
      .explain {
        padding-left: 1rem;
        font-size: 1rem;
      }
      .dynasty-quote {
        padding: 0.6rem;
        margin: 0.8rem 0;
      }
    }