/* 红色鲨鱼胶囊 · 滑动分段 */

.shark-seg {
  --seg-pad: 4px;
  position: relative;
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  padding: var(--seg-pad);
  border-radius: 980px;
  background: rgba(22, 22, 23, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  isolation: isolate;
}

.shark-seg__thumb {
  position: absolute;
  top: var(--seg-pad);
  left: 0;
  height: calc(100% - var(--seg-pad) * 2);
  width: 0;
  border-radius: 980px;
  background: #c41e3a;
  z-index: 0;
  transition: transform 0.38s cubic-bezier(0.25, 0.1, 0.25, 1),
    width 0.38s cubic-bezier(0.25, 0.1, 0.25, 1);
  pointer-events: none;
  display: flex;
  align-items: center;
  padding-left: 12px;
  box-sizing: border-box;
}
.shark-seg__thumb::before {
  content: "";
  width: 18px;
  height: 11px;
  flex-shrink: 0;
  background: var(--fin-icon, url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2028%2016%27%20fill%3D%27none%27%3E%3Cg%20transform%3D%27translate%2828%200%29%20scale%28-1%201%29%27%3E%3Cpath%20d%3D%22M2.2%209.2C5.2%206.2%2010.2%204.6%2015.2%205.2c2.4.3%204.6%201.1%206.6%202.1l3.4-1.3-1.5%202.4%201.9%201.5-3.8.2c-2.6.1-5.2.8-7.4%202.1-2.4%201.4-5.3%201.6-8.1.4L2%2011.8l.2-2.6z%22%20fill%3D%22%23fff%22%2F%3E%3Cpath%20d%3D%22M11.2%205.4L13.6.9l2.5%204.3%22%20fill%3D%22%23fff%22%2F%3E%3Cpath%20d%3D%22M13.6.9L16.1%205.2%22%20stroke%3D%22%23ff8a96%22%20stroke-width%3D%221.35%22%20stroke-linecap%3D%22round%22%2F%3E%3Ccircle%20cx%3D%225.1%22%20cy%3D%228.4%22%20r%3D%22.55%22%20fill%3D%22%231a1a1a%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"))
    center / contain no-repeat;
  opacity: 0.95;
}

.shark-seg__item {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 18px 8px 18px;
  border-radius: 980px;
  color: rgba(245, 245, 247, 0.78);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s ease;
}
.shark-seg__item.is-on {
  color: #fff;
  /* 给拇指鲨鱼 logo 留空：选中项左侧多一点内边距 */
  padding-left: 34px;
}
.shark-seg__item:hover {
  color: #fff;
  text-decoration: none;
  opacity: 1;
}

/* 底部固定条 */
.floating-dock.shark-seg {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 80;
}

/* 色温分段导航：滑动红胶囊 */
.subnav-inner.shark-seg {
  display: flex;
  width: max-content;
  max-width: 100%;
  margin: 8px auto;
  background: rgba(22, 22, 23, 0.92);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}
.subnav {
  position: sticky;
  top: 48px;
  z-index: 65;
  background: rgba(245, 245, 247, 0.86);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  justify-content: center;
  padding: 8px 12px;
}
.subnav-inner.shark-seg .shark-seg__item {
  font-size: 12px;
  font-weight: 500;
  min-height: 32px;
  padding: 6px 14px;
  color: rgba(245, 245, 247, 0.55);
}
.subnav-inner.shark-seg .shark-seg__item.is-on {
  color: #fff;
  padding-left: 30px;
}
.subnav-inner.shark-seg .shark-seg__thumb::before {
  width: 14px;
  height: 9px;
}

/* 覆盖旧 floating-dock 主键样式，避免双红底 */
.floating-dock a.primary {
  background: transparent !important;
}
.floating-dock a.primary::before {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .shark-seg__thumb {
    transition: none !important;
  }
}
