/* 外层容器居中 */
.browser-container {
    max-width: 1800px;   /* 最大宽度 */
    height: 50%;
    padding: 1rem;
    border-radius: 12px;
    border-color: #577fee;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden; /* 避免 iframe 超出容器 */

    /* 新增：让容器水平居中 */
    margin: 2rem auto;
}
.selector {
  max-width: 1200px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 18px 22px;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(79, 109, 212, 0.08);
  margin: 0 auto 18px auto;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 20px;
  font-weight: 500;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 50%, #f5f0ff 100%);
}
/* iframe 居中 */
#jbrowse-frame {
    display: block;      /* 让 iframe 变成块级元素 */
    margin: 0 auto;      /* 水平居中 */
    width: 100%;
    height: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: inset 0 0 4px rgba(0,0,0,0.05);
}
main {
    flex-direction: column;
    height: 100vh;
}

.control-panel {
    background: #f8f9fa;
    padding: 10px 15px;
    display: flex;
    gap: 10px;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

.selector .control {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.selector .control label {
  color: #3a4f8a;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.selector .gene-search input {
  min-width: 200px;
  padding: 8px 14px;
  border: 2px solid #d0d7f0;
  border-radius: 10px;
  background: #fff;
  color: #333;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  font-size: 20px;
  transition: all 0.25s ease;
}

.selector .gene-search button {
  padding: 9px 24px;
  border: none;
  background: linear-gradient(135deg, #5b8def, #4a7de0);
  color: white;
  border-radius: 10px;
  cursor: pointer;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: 0 3px 10px rgba(79, 109, 212, 0.25);
  transition: all 0.25s ease;
}
#species-select {
  min-width: 200px;
  padding: 8px 36px 8px 12px;
  border: 2px solid #d0d7f0;
  border-radius: 10px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 12 12'%3E%3Cpath fill='%235a6fc4' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 12px center;
  -webkit-appearance: none;
  appearance: none;
  color: #333;
  cursor: pointer;
  font-size: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  transition: all 0.25s ease;
}

.selector .gene-search input:hover,
#species-select:hover {
  border-color: #8fa4e8;
  box-shadow: 0 2px 10px rgba(79, 109, 212, 0.12);
}

.selector .gene-search input:focus,
#species-select:focus {
  outline: none;
  border-color: #5b6fd4;
  box-shadow: 0 0 0 3px rgba(91, 111, 212, 0.12);
}

.selector .gene-search input::placeholder {
  color: #aab2c5;
  font-size: 20px;
}

.selector .gene-search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(79, 109, 212, 0.32);
  background: linear-gradient(135deg, #4a7de0, #3e6dd4);
}

.selector .gene-search button:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(79, 109, 212, 0.2);
}

.result-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: #fff;

  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.result-table th,
.result-table td {
  border: 1px solid #e2e8f0;
  padding: 10px;
  text-align: center;
  font-size: 15px;
}

.result-table th {
  background: #f1f5fb;
  font-weight: 600;
}

#gene-info-table {
  max-width: 1600px;   /* 最大宽度 */
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display:none; 
  margin:20px auto;
}
