/* 行动队列（中间顶部） */
.action-queue {
  background: var(--paper-white);
  border: 2px solid var(--ink-black);
  border-radius: 0;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.1);
}

.queue-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--wash-ink);
}

.queue-title {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 18px;
  color: var(--ink-black);
}

.queue-controls {
  display: flex;
  gap: 8px;
}

.queue-control-btn {
  width: 40px;
  height: 36px;
  border: 2px solid var(--ink-black);
  background: var(--paper-white);
  cursor: pointer;
  font-size: 16px;
  font-family: 'Ma Shan Zheng', cursive;
  font-weight: bold;
  color: var(--ink-black);
  border-radius: 0;
  transition: all 0.2s ease;
  position: relative;
}

.queue-control-btn::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--ink-black);
  z-index: -1;
  transition: all 0.2s ease;
}

.queue-control-btn:hover {
  background: var(--seal-red);
  color: white;
  transform: translate(2px, 2px);
}

.queue-control-btn:hover::after {
  transform: translate(-2px, -2px);
}

.current-action {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--wash-ink);
  border-radius: 0;
  padding: 12px;
  margin-bottom: 10px;
}

.action-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.action-name {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 16px;
  color: var(--ink-black);
}

.action-time {
  font-size: 13px;
  color: var(--light-ink);
  font-family: 'Noto Serif SC', serif;
}

.progress-bar {
  height: 10px;
  background: var(--wash-ink);
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--ink-black);
}

.progress-fill {
  height: 100%;
  background: var(--seal-red);
  transition: width 0.25s linear;
  border-radius: 0;
  will-change: width;
}

.queue-items {
  max-height: 120px;
  overflow-y: auto;
}

.queue-item {
  padding: 8px 12px;
  border-left: 3px solid var(--seal-red);
  margin-bottom: 6px;
  font-size: 14px;
  font-family: 'Noto Serif SC', serif;
  background: rgba(197, 60, 60, 0.05);
  border-radius: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.queue-item.active {
  background: rgba(59, 96, 136, 0.1);
  border-left-color: var(--color-rare);
}

.queue-item-main {
  min-width: 0;
}

.queue-item-name {
  color: var(--ink-black);
}

.queue-item-count {
  font-size: 12px;
  color: var(--seal-red);
  font-weight: bold;
}

.queue-item-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.queue-mini-btn {
  min-width: 28px;
  height: 28px;
  border: 1px solid var(--ink-black);
  background: var(--paper-white);
  cursor: pointer;
  font-family: 'Ma Shan Zheng', cursive;
}

.queue-mini-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.queue-mini-btn.danger {
  color: var(--seal-red);
}

/* 自定义滚动条 */
.queue-items::-webkit-scrollbar {
  width: 6px;
}

.queue-items::-webkit-scrollbar-track {
  background: var(--wash-ink);
  border-radius: 0;
}

.queue-items::-webkit-scrollbar-thumb {
  background: var(--light-ink);
  border-radius: 0;
}

.queue-items::-webkit-scrollbar-thumb:hover {
  background: var(--ink-black);
}

/* 次数选择弹窗 */
.repeat-modal-content {
  max-width: 500px;
  background: var(--paper-white);
  border: 3px solid var(--ink-black);
  border-radius: 0;
  padding: 0;
  box-shadow: 12px 12px 0px rgba(0, 0, 0, 0.15);
}

.repeat-modal-content .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  border-bottom: 2px solid var(--ink-black);
  background: var(--paper-light);
}

.repeat-modal-content .modal-header h3 {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 22px;
  color: var(--ink-black);
  margin: 0;
}

.modal-close {
  width: 36px;
  height: 36px;
  border: 2px solid var(--ink-black);
  background: var(--paper-white);
  font-size: 24px;
  color: var(--ink-black);
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
  font-weight: bold;
}

.modal-close:hover {
  background: var(--seal-red);
  color: white;
  transform: rotate(90deg);
}

.modal-body {
  padding: 25px;
  background: var(--paper-white);
}

.action-desc {
  font-family: 'Noto Serif SC', serif;
  font-size: 16px;
  color: var(--ink-black);
  margin-bottom: 20px;
  text-align: center;
  padding: 12px;
  background: var(--paper-light);
  border-radius: 0;
  border: 1px solid var(--wash-ink);
}

.repeat-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.repeat-option-btn {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  border: 2px solid var(--ink-black);
  background: var(--paper-white);
  cursor: pointer;
  font-family: 'Noto Serif SC', serif;
  font-size: 16px;
  border-radius: 0;
  transition: all 0.2s ease;
  position: relative;
}

.repeat-option-btn::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--ink-black);
  z-index: -1;
  transition: all 0.2s ease;
}

.repeat-option-btn:hover {
  background: var(--seal-red);
  color: white;
  transform: translate(3px, 3px);
}

.repeat-option-btn:hover::after {
  transform: translate(-3px, -3px);
}

.repeat-option-btn:hover .option-text {
  color: white;
}

.option-icon {
  font-size: 28px;
  font-family: 'Ma Shan Zheng', cursive;
  color: var(--seal-red);
  font-weight: bold;
  min-width: 40px;
  text-align: center;
}

.option-text {
  color: var(--ink-black);
  font-weight: 500;
}

.custom-repeat-input {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 0;
  border: 2px solid var(--ink-black);
}

.custom-repeat-input label {
  font-family: 'Noto Serif SC', serif;
  font-size: 15px;
  color: var(--ink-black);
}

.custom-repeat-input input {
  flex: 1;
  padding: 8px 12px;
  border: 2px solid var(--ink-black);
  background: var(--paper-white);
  font-family: 'Noto Serif SC', serif;
  font-size: 16px;
  border-radius: 0;
  transition: border-color 0.3s ease;
}

.custom-repeat-input input:focus {
  outline: none;
  border-color: var(--seal-red);
}

.custom-repeat-input .action-btn {
  flex-shrink: 0;
  padding: 8px 20px;
}


/* 兼容新版结构，保持原有水墨视觉 */
.queue-empty {
  padding: 12px;
  border: 1px dashed var(--wash-ink);
  color: var(--light-ink);
  text-align: center;
  background: rgba(0, 0, 0, 0.02);
  font-family: 'Noto Serif SC', serif;
}

.progress-fill.paused {
  filter: grayscale(0.35);
}
