/* ==============================================================
   上传页（按参考图规范）
   ============================================================== */
.upload-page { padding-bottom: 60px; }

.upload-form {
  max-width: 960px;
  margin: 28px auto 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

/* ---------- 通用区块 ---------- */
.up-section { position: relative; }

.up-label {
  font-size: 15px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 10px;
  display: block;
}
.up-req { color: #e53e3e; margin-left: 2px; font-weight: 700; }

.up-text-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e2e8f0;
  background: #f7fafc;
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 14px;
  color: #2d3748;
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
  font-family: inherit;
}
.up-text-input::placeholder { color: #a0aec0; }
.up-text-input:focus {
  border-color: #4299e1;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.12);
}
.up-text-input.has-error { border-color: #e53e3e; background: #fff5f5; }

.up-error {
  color: #e53e3e;
  font-size: 13px;
  margin-top: 6px;
  font-weight: 600;
}

/* ---------- 视频上传区 ---------- */
.up-video-section .upload-area {
  border: 2px dashed #cbd5e0;
  border-radius: 12px;
  background: #f7fafc;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
}
.up-video-section .upload-area:hover,
.up-video-section .upload-area.dragover {
  border-color: #667eea;
  background: #edf2ff;
}
.up-video-section .upload-icon { font-size: 44px; margin-bottom: 8px; }
.up-video-section .upload-main-text { font-size: 15px; font-weight: 600; color: #2d3748; }
.up-video-section .upload-hint { font-size: 12.5px; color: #a0aec0; margin-top: 6px; }

.uploaded-file {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #c6f6d5;
  background: #f0fff4;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
}
.uploaded-file .fname {
  flex: 1;
  font-weight: 600;
  color: #22543d;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.uploaded-file .remove-btn {
  background: #fff;
  border: 1px solid #fc8181;
  color: #c53030;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12.5px;
  cursor: pointer;
  transition: all .2s;
}
.uploaded-file .remove-btn:hover { background: #fff5f5; }

/* ---------- 对局回放文件区（非必填） ---------- */
.up-replay-section .upload-area {
  border: 2px dashed #cbd5e0;
  border-radius: 10px;
  background: #f7fafc;
  padding: 22px 20px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
}
.up-replay-section .upload-area:hover,
.up-replay-section .upload-area.dragover {
  border-color: #667eea;
  background: #edf2ff;
}
.up-replay-section .upload-icon { font-size: 34px; margin-bottom: 6px; }
.up-replay-section .upload-main-text { font-size: 14px; font-weight: 600; color: #2d3748; }
.up-replay-section .upload-hint { font-size: 12.5px; color: #a0aec0; margin-top: 6px; }

.upload-progress-wrap { margin-top: 10px; }
.progress-bar-outer {
  width: 100%;
  height: 8px;
  background: #edf2f7;
  border-radius: 4px;
  overflow: hidden;
}
.progress-bar-inner {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #667eea, #4299e1);
  border-radius: 4px;
  transition: width .15s ease;
}
.progress-text {
  margin-top: 6px;
  font-size: 12.5px;
  color: #718096;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ---------- 素材简介 ---------- */
.intro-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid #e2e8f0;
  background: #f7fafc;
  border-radius: 6px;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.intro-input-wrap:focus-within {
  border-color: #4299e1;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.12);
}
.intro-input-wrap.has-error { border-color: #e53e3e; background: #fff5f5; }

.up-intro-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 13px 80px 13px 16px;
  font-size: 15px;
  color: #2d3748;
  outline: none;
  font-family: inherit;
}
.up-intro-input::placeholder { color: #e53e3e; font-weight: 600; }
.char-count {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12.5px;
  color: #a0aec0;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

/* ---------- 嫌疑人列表 ---------- */
.suspects-title {
  font-size: 18px;
  font-weight: 800;
  color: #1a202c;
  margin: 0 0 6px;
}
.suspects-hint {
  font-size: 13px;
  color: #718096;
  margin: 0 0 14px;
}

#suspects-container { display: flex; flex-direction: column; gap: 18px; }

.suspect-card {
  position: relative;
  background: #fff;
  border: 1px solid #edf2f7;
  border-radius: 12px;
  padding: 24px 26px 24px;
  overflow: hidden;
}
.suspect-watermark {
  position: absolute;
  right: 24px;
  top: 8px;
  font-size: 110px;
  font-weight: 900;
  color: rgba(237, 242, 247, 0.55);
  line-height: 1;
  pointer-events: none;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  letter-spacing: -4px;
}
.suspect-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf2f7;
}
.suspect-hash {
  color: #e53e3e;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}
.suspect-head-title {
  flex: 1;
  font-size: 16px;
  font-weight: 800;
  color: #1a202c;
}
.suspect-remove {
  background: #fff5f5;
  color: #c53030;
  border: 1px solid #fed7d7;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 12.5px;
  cursor: pointer;
  transition: all .2s;
  min-height: 32px;
}
.suspect-remove:hover { background: #fed7d7; }

/* 四列网格 */
.suspect-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}
.sg-label {
  font-size: 14px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 8px;
}
.sg-label-hint { color: #718096; font-weight: 500; font-size: 12.5px; margin-left: 2px; }

/* ---------- 自定义段位下拉 ---------- */
.custom-select { position: relative; }
.cs-trigger {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #e2e8f0;
  background: #f7fafc;
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 14px;
  color: #2d3748;
  cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .2s;
  font-family: inherit;
  min-height: 44px;
}
.cs-trigger:hover { border-color: #cbd5e0; }
.custom-select.is-open .cs-trigger {
  border-color: #4299e1;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.12);
}
.cs-value { font-size: 14px; text-align: left; }
.cs-placeholder { color: #a0aec0; }
.cs-arrow { color: #a0aec0; font-size: 11px; margin-left: 8px; transition: transform .2s; }
.custom-select.is-open .cs-arrow { transform: rotate(180deg); }

.cs-options {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  max-height: 280px;
  overflow-y: auto;
  z-index: 50;
  display: none;
  padding: 4px 0;
}
.custom-select.is-open .cs-options { display: block; }
.cs-option {
  padding: 9px 14px;
  font-size: 14px;
  color: #2d3748;
  cursor: pointer;
  transition: background .12s;
}
.cs-option:hover { background: #edf2f7; }
.cs-option.is-selected {
  background: #ebf8ff;
  color: #2b6cb0;
  font-weight: 600;
}

/* ---------- 作弊特征（方块复选框） ---------- */
.cheat-chars {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.cc-label {
  font-size: 15px;
  font-weight: 700;
  color: #1a202c;
  margin-right: 4px;
}
.cc-hint {
  font-size: 12.5px;
  color: #718096;
  margin-right: 8px;
}
.cc-options { display: flex; gap: 10px; flex-wrap: wrap; }
.cc-opt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  padding: 8px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  transition: all .2s;
  font-size: 13.5px;
  color: #2d3748;
  min-height: 40px;
}
.cc-opt:hover { border-color: #cbd5e0; background: #f7fafc; }
.cc-cb { display: none; }
.cc-box {
  width: 15px;
  height: 15px;
  border: 1.5px solid #cbd5e0;
  border-radius: 3px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
  flex-shrink: 0;
  box-sizing: border-box;
}
.cc-cb:checked + .cc-box {
  background: #4299e1;
  border-color: #4299e1;
}
.cc-cb:checked + .cc-box::after {
  content: '✓';
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}
.cc-opt:has(.cc-cb:checked) {
  background: #ebf8ff;
  border-color: #90cdf4;
  color: #2b6cb0;
  font-weight: 600;
}

/* ---------- 时间轴记录 ---------- */
.timeline-section {}
.tl-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.tl-label { font-size: 15px; font-weight: 700; color: #1a202c; }
.tl-hint { font-size: 12.5px; color: #718096; }

.tl-list { display: flex; flex-direction: column; gap: 12px; }

.tl-item {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 16px;
  padding: 14px 16px;
  background: #fafbfc;
  border: 1px solid #edf2f7;
  border-radius: 8px;
}
.tl-left { display: flex; flex-direction: column; gap: 6px; }
.tl-index-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tl-index-label { font-size: 14px; font-weight: 700; color: #2d3748; }
.tl-range { font-size: 12px; color: #718096; }
.tl-hms-label { font-size: 12.5px; color: #718096; margin-top: 4px; }

.tl-time-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 180px;
}
.tl-clock-icon {
  position: absolute;
  left: 10px;
  font-size: 13px;
  color: #a0aec0;
  pointer-events: none;
}
.tl-time-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 6px;
  padding: 8px 12px 8px 30px;
  font-size: 14px;
  color: #2d3748;
  font-variant-numeric: tabular-nums;
  outline: none;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.tl-time-input:focus {
  border-color: #4299e1;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.12);
}
.tl-current { font-size: 12.5px; color: #718096; }
.tl-current-val { font-variant-numeric: tabular-nums; color: #4a5568; font-weight: 600; }

.tl-right { min-width: 0; }
.tl-desc-wrap {
  position: relative;
  height: 100%;
}
.tl-desc {
  width: 100%;
  box-sizing: border-box;
  height: 100%;
  min-height: 88px;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 6px;
  padding: 10px 60px 10px 12px;
  font-size: 13.5px;
  color: #2d3748;
  outline: none;
  resize: vertical;
  font-family: inherit;
  line-height: 1.5;
  transition: border-color .2s, box-shadow .2s;
}
.tl-desc::placeholder { color: #a0aec0; }
.tl-desc:focus {
  border-color: #4299e1;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.12);
}
.tl-char-count {
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-size: 11.5px;
  color: #a0aec0;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.tl-delete {
  position: absolute;
  top: 0;
  right: 0;
  background: transparent;
  border: none;
  color: #fc8181;
  font-size: 12.5px;
  cursor: pointer;
  padding: 4px 6px;
  font-weight: 600;
  transition: color .2s;
}
.tl-delete:hover { color: #c53030; }

/* ---------- 添加按钮 ---------- */
.add-suspect-btn,
.add-timeline-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  background: #fff;
  color: #4299e1;
  border: 1.5px dashed #90cdf4;
  border-radius: 8px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
  min-height: 44px;
}
.add-suspect-btn:hover,
.add-timeline-btn:hover {
  background: #ebf8ff;
  border-color: #4299e1;
}
.add-timeline-btn { width: 100%; justify-content: center; padding: 8px 16px; }
.add-icon { font-size: 16px; font-weight: 700; line-height: 1; }

/* ---------- 提交按钮 ---------- */
.submit-btn {
  align-self: center;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 15px 60px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
  transition: all .25s;
  box-shadow: 0 4px 14px rgba(102,126,234,0.35);
  font-family: inherit;
  min-width: 260px;
  min-height: 48px;
}
.submit-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(102,126,234,0.45); }
.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* ==============================================================
   ✨ 上传页 · 统一按压 / 键盘焦点 / 拖拽高亮反馈
   ============================================================== */
.submit-btn:active { transform: translateY(0) scale(0.97); box-shadow: 0 2px 8px rgba(102,126,234,0.35); }

/* 输入类：键盘 Tab 焦点用一个更明显的聚焦环（替换默认 outline） */
.up-text-input:focus-visible,
.up-intro-input:focus-visible,
.cs-trigger:focus-visible,
.tl-time-input:focus-visible,
.tl-desc:focus-visible {
  outline: none;
  border-color: #4299e1;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.18);
}

/* 按钮类统一按压反馈 */
.add-suspect-btn:active,
.add-timeline-btn:active { transform: translateY(1px) scale(0.97); }
.suspect-remove:active { background: #fed7d7; transform: scale(0.95); }
.tl-delete:active { transform: scale(0.92); }
.cs-option:active { background: #e2e8f0; }
.upload-area:active { background: #e0e7ff; }

/* 复选框（作弊特征）：点击按下微微缩动 */
.cc-opt:active { transform: scale(0.97); }

/* 下拉选项 hover 增加左色条（段位选择更醒目） */
.cs-option.is-selected { background: #ebf8ff; }

/* 动效降级 */
@media (prefers-reduced-motion: reduce) {
  .upload-area, .cs-options, .intro-input-wrap, .progress-bar-inner,
  .suspect-card, .tl-item { transition: none !important; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 760px) {
  .suspect-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tl-item { grid-template-columns: 1fr; gap: 10px; }
  .suspect-watermark { font-size: 70px; right: 12px; top: 4px; }
  .tl-time-input-wrap { width: 100%; }
  .submit-btn { width: 100%; padding: 14px; min-width: 0; }
  .upload-form { gap: 22px; }
  .up-video-section .upload-area { padding: 28px 16px; }
  .suspect-card { padding: 18px 18px; }
  .tl-desc { min-height: 72px; }
}
@media (max-width: 480px) {
  .suspect-grid { grid-template-columns: 1fr; }
  .suspect-card { padding: 16px; }
  .cc-opt { padding: 7px 12px; min-height: 36px; }
  .submit-btn { font-size: 15px; }
}
