.ship-container {
  display: flex;
  gap: 30px;
  max-width: 1400px;
  margin: 50px auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

.ship-sidebar {
  width: 260px;
  background: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  height: fit-content;
  flex-shrink: 0;
}

/* ... 样式保持不变 ... */

.ship-categories {
  margin-bottom: 30px;
}

.category-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.category-btn {
  background: #e4e7eb;
  padding: 10px 14px;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  transition: all 0.2s;
  min-width: 220px; /* 设置最小宽度，确保所有按钮至少达到这个宽度 */
  height: 40px; /* 设置固定高度 */
  display: flex; /* 使用flex布局 */
  align-items: center; /* 垂直居中 */
  justify-content: center; /* 水平居中 */
  text-align: center; /* 文本居中 */
  flex-shrink: 0; /* 防止按钮被压缩 */
}

.category-btn.active,
.category-btn:hover {
  background: #0073aa;
  color: #fff;
}

.ship-filter label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
}

.filter-value {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

#apply-filter {
  width: 100%;
  padding: 8px;
  background: #0073aa;
  color: white;
  border: none;
  border-radius: 6px;
  margin-top: 15px;
  cursor: pointer;
}

.ship-content {
  flex: 1;
  padding: 0;
  width: 100%;
  max-width: none;
}

.ship-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 35px;
  justify-items: stretch;
  align-items: start;
  width: 100%;
  margin: 0 auto;
}

/* 船舶卡片样式 */
.ship-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ship-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.ship-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* 为no_image.png添加更强的样式，确保正确缩小显示 */
.ship-card img[src*="no_image.png"] {
  object-fit: contain !important;
  background-color: #f8f9fa !important;
  width: auto !important;
  max-width: 80% !important;
  max-height: 140px !important;
  margin: 20px auto !important;
  display: block !important;
}

.ship-card h3 {
  font-size: 1.1em;
  margin: 10px;
}

.ship-card p {
  font-size: 0.9em;
  color: #555;
  margin: 0 10px 10px;
}

.pagination {
  text-align: center;
  margin: 30px 0;
}

.range-slider {
    position: relative;
    height: 60px;
    margin-bottom: 20px;
}

.range-slider input[type=range] {
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    width: 100%;
    position: absolute;
    top: 30px; /* 调整滑块位置以适应较小的容器高度 */
    pointer-events: none; /* 禁止父元素拦截事件 */
    background: transparent;
}

.range-slider input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #0073aa;
    border-radius: 50%;
    pointer-events: all;
    margin-top: 8px; /* 增加调整量，使滑块更靠下 */
    position: relative;
    z-index: 3;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2); /* 增加阴影使滑块更明显 */
}

.range-slider input[type=range]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #0073aa;
    border-radius: 50%;
    cursor: pointer;
    margin-top: 8px; /* 增加调整量，使滑块更靠下 */
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    border: none;
}

.range-slider .range-values {
    position: absolute;
    top: 5px;
    width: 100%;
    font-size: 14px; /* 调整字体大小以适应较小的容器 */
    font-weight: 600; /* 保持粗体显示 */
    color: #333;
    text-align: center;
    padding: 2px 0; /* 减少内边距 */
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 5px;
    line-height: 1; /* 调整行高 */
}

/* 特别为长度和速度范围显示设置样式 */
#length-range-display, #speed-range-display {
    font-size: 18px; /* 更大的字体 */
    color: #0073aa; /* 使用主题色使其更醒目 */
    display: inline-block;
    padding: 2px 8px;
    background: rgba(255,255,255,0.8);
    border-radius: 3px;
}

.range-slider .track {
    position: absolute;
    top: 48px;
    left: 0;
    right: 0;
    height: 4px;
    background: #e4e7eb;
    border-radius: 2px;
    z-index: 1;
}

.range-slider .range-highlight {
    position: absolute;
    top: 48px;
    height: 4px;
    background: #0073aa;
    border-radius: 2px;
    z-index: 2;
}

