  /* 页面容器 */
  .container {
    max-width: 960px;          /* 页面最大宽度 */
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
  }
  
  /* 标题和错误样式 */
  h2, h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
  }
  
  .error {
    color: red;
    font-weight: bold;
  }
  
  /* 模型渲染错误提示 */
  .model-error {
    color: red;
    position: absolute;
    top: 10px;
    left: 10px;
  }

  /* word信息 */
  .centered-info {
    text-align: left;
    margin-bottom: 20px;
    margin-top: 50px;
  }

  .centered-info p {
    margin: 10px 0; 
  }
  
  .word-link {
    text-decoration: none;
    font-weight: normal;
    color: #000;
    transition: font-weight 0.2s ease;
  }

  .word-link:hover {
    font-weight: bold;
  }
  .pid-list { 
    display: inline; 
  }

  .pid-item {
    cursor: pointer; margin-right: 10px; color: #1565c0; text-decoration: none;
  }

  .pid-item.active { 
    font-weight: 700; color: #c62828; text-decoration: none; 
  }

  /* ===== 结构视图与序列区域 ===== */
  .structure-table-wrapper {
    margin-top: 20px;
    width: 100%;
  }
  
  .structure-table {
    width: 100%;
    /*border-collapse: collapse;*/
  }
  
  .sequence-row td {
    background-color: #e6f2ff; /* 淡蓝色背景 */
    padding: 10px;
    text-align: center;
  }
  
  .viewer-row td {
    background-color: white;
    padding: 10px;
    border: 1px solid #ccc;
  }
  
  /* 一级序列展示栏 */
  #primary-sequence {
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
    word-break: break-word;
    font-family: monospace;
    /* display: flex; */
    flex-wrap: wrap;
  }
  
  /* 残基样式 */
  .residue { 
    display: inline-block; 
    margin: 2px 2px; 
    padding: 2px 6px;
    border-radius: 4px; 
    background-color: #f3f3f3; 
    cursor: pointer; 
    font-size: 12px;
    border: 1px solid #e6e6e6;
    user-select: none;
  }
  .residue:hover { background-color: #ffe3e3; }

  /* 结构视图框外壳 */
  #viewer-wrapper {
    width: 100%;
    max-width: 100%;
    height: 500px;
    border: 1px solid #ccc;
    padding: 8px;
    box-sizing: border-box;
    margin-bottom: 20px;
  }
  
  #viewer {
    width: 100%;
    height: 100%;
    position: relative;
    /*border: 1px solid #ccc;*/
    box-sizing: border-box;
  }
  
  #viewer.loading {
    min-height: 500px;
  }
  /* 下载按钮样式 */
  .download-button {
    margin-top: 10px;
    text-align: left;
  }

  .download-button a {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
  }

  .download-button a:hover {
    background: linear-gradient(135deg, #2980b9, #1f618d);
  }
  
  