/* 新增的排版优化样式 */
  .name-sections {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
  }
  
  .name-section {
    flex: 1;
    min-width: 300px;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  }
  
  .name-section .title {
    font-size: 18px;
    color: #333;
    padding-bottom: 10px;
    margin-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
    font-weight: bold;
  }
  
  .name-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 15px;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .name-list li {
    flex: 0 0 calc(50% - 15px); /* 两列布局 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .name-list a {
    color: #3366cc;
    text-decoration: none;
    transition: color 0.2s;
  }
  
  .name-list a:hover {
    color: #ff6600;
    text-decoration: underline;
  }
  
  /* 解名部分使用三列布局，因为项目更多 */
  .name-section.ming-list .name-list li {
    flex: 0 0 calc(33.333% - 15px);
  }
  
  /* 常见姓氏排版优化 - 一排显示5个 */
  .surnames-container {
    padding: 10px 0;
  }
  
  .surnames-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 固定为5列 */
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .surnames-grid li {
    text-align: center;
  }
  
  .surnames-grid .character {
    display: inline-block;
    width: 100%;
    min-width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 4px;
    text-align: center;
    font-size: 16px;
    color: #333;
    background-color: #f0f0f0;
    transition: all 0.3s ease;
    text-decoration: none;
    box-sizing: border-box;
  }
  
  .surnames-grid .character:hover {
    background-color: #3366cc;
    color: white;
    transform: scale(1.1);
    text-decoration: none;
  }