/* 巡礼竖向时间轴 + 设置面板 + 当前镜头标记 */

/* 1. 轨道本体：固定在工作台左侧，独立于内容滚动区 */
#fan-rail {
  position: fixed;
  top: 86px;
  bottom: 16px;
  right: 476px;
  width: 54px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 6px 12px;
  background: #fffffff2;
  border: 1px solid #e2eae5;
  border-radius: 10px;
  box-shadow: 0 8px 26px #1f39301f;
  backdrop-filter: blur(6px);
}
#fan-rail[hidden] { display: none; }
.fan-rail-title {
  font-size: 9px;
  letter-spacing: .18em;
  color: #6d8377;
}
.fan-rail-track {
  position: relative;
  flex: 1;
  width: 26px;
  min-height: 120px;
  border-radius: 13px;
  background: #eef3ef;
  box-shadow: inset 0 0 0 1px #dfe8e3;
  cursor: pointer;
  touch-action: none;
  outline: none;
}
.fan-rail-track:focus-visible { box-shadow: inset 0 0 0 1px #dfe8e3, 0 0 0 3px #b9d8c6; }
.fan-rail-segs { position: absolute; inset: 0; border-radius: 13px; overflow: hidden; }
.fan-rail-seg {
  position: absolute;
  left: 0;
  width: 26px;
  min-height: 0;
  border: 0;
  padding: 0;
  background: #f7faf8;
  border-top: 1px solid #e7efe9;
  color: #5c7367;
  font: inherit;
  font-size: 9px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.fan-rail-seg:nth-child(even) { background: #f1f6f3; }
.fan-rail-seg span { opacity: .8; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.fan-rail-seg:hover { background: #e6f1ea; color: #175b3f; }
.fan-rail-seg.active { background: #dcebe2; color: #14563d; }
.fan-rail-seg.current { background: #e4f2ea; }
.fan-rail-seg.current span { opacity: 1; font-weight: 700; }

.fan-rail-thumb {
  position: absolute;
  left: -7px;
  width: 40px;
  height: 14px;
  margin-top: -7px;
  border-radius: 999px;
  background: #b25b7a;
  box-shadow: 0 2px 8px #8f44603d, inset 0 0 0 1px #a34f6d;
  pointer-events: none;
  transition: top .08s linear;
}
.fan-rail.is-dragging .fan-rail-thumb { transition: none; }
.fan-rail-thumb i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  margin: -1px 0 0 -7px;
  border-radius: 1px;
  background: #ffffffc9;
  box-shadow: 0 3px 0 #ffffffc9, 0 -3px 0 #ffffffc9;
}
.fan-rail-hover {
  position: absolute;
  right: 40px;
  transform: translateY(-50%);
  max-width: 240px;
  padding: 5px 8px;
  border-radius: 6px;
  background: #22352b;
  color: #f4faf6;
  font-size: 10.5px;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  box-shadow: 0 6px 20px #1a2d2433;
}
.fan-rail-hover[hidden] { display: none; }

.fan-rail-readout {
  display: grid;
  justify-items: center;
  gap: 1px;
  font-variant-numeric: tabular-nums;
}
.fan-rail-readout b { font-size: 10px; font-weight: 600; color: #2c4c3b; }
.fan-rail-readout span { font-size: 9px; color: #7b8d82; }

@media (min-width: 900px) and (max-width: 1179px) {
  #fan-rail { right: 416px; width: 48px; }
  .fan-rail-track, .fan-rail-seg { width: 22px; }
  .fan-rail-seg { width: 22px; }
  .fan-rail-thumb { left: -9px; width: 40px; }
}
@media (max-width: 899px) {
  #fan-rail { display: none; }
}

/* 2. 桌面端隐藏原有的横向时间轴，只在小屏保留 */
@media (min-width: 900px) {
  .fan-timeline-inline { display: none; }
}

/* 3. 当前镜头：去掉孤立的红线，改成可读的标记 */
.fan-card.is-timeline-active {
  background: #f8fbf9;
  box-shadow: none;
  border-radius: 0;
}
.fan-card.is-timeline-active h3 { color: #253f31; }
.fan-card-current-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 0 6px;
  border-radius: 999px;
  background: #f4e6ec;
  color: #8d3f5c;
  font-size: 9.5px;
  line-height: 1.8;
  vertical-align: 1px;
}

/* 4. 设置面板 */
.fan-settings {
  position: absolute;
  inset: 8px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 15px;
  background: #fffffff8;
  border: 1px solid #e1eae4;
  border-radius: 10px;
  box-shadow: 0 12px 40px #1d342a2e;
  overflow: auto;
}
.fan-settings[hidden] { display: none; }
.fan-settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.fan-settings-head b { font-size: 14px; color: #1e3d2e; }
.fan-settings-head button { font-size: 20px; line-height: 1; color: #6d8177; padding: 2px 6px; }
.fan-settings-sub { margin: -4px 0 2px; font-size: 10.5px; color: #7a8b81; }
.fan-setting {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 10px;
  border: 1px solid #e6eee9;
  border-radius: 8px;
  background: #fbfdfb;
}
.fan-setting input { margin-top: 2px; accent-color: #176b43; }
.fan-setting b { display: block; font-size: 12px; font-weight: 500; color: #26432f; }
.fan-setting small { display: block; margin-top: 3px; font-size: 10.5px; line-height: 1.6; color: #7a8c81; }
.fan-setting-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px; border: 1px solid #e6eee9; border-radius: 8px; background: #fbfdfb; }
.fan-setting-row span { font-size: 12px; color: #26432f; }
.fan-setting-row select { font: inherit; font-size: 11.5px; padding: 5px 8px; border: 1px solid #cfdcd4; border-radius: 6px; background: #fff; color: #22402f; }
.fan-settings-note { margin: 2px 0 0; font-size: 10.5px; line-height: 1.7; color: #7d8e84; }
.fan-settings-open { white-space: nowrap; }

/* 5. 详情页右上角设置入口 */
.fan-detail-nav-right{display:inline-flex;align-items:center;gap:8px}
.fan-settings-open{font:inherit;font-size:10px;color:#2f6b4d;background:#eef5f0;border:1px solid #d7e5db;border-radius:999px;padding:3px 9px;cursor:pointer}
.fan-settings-open:hover{background:#e4f1e8;color:#14563b}
