.scenario-list-page {
  padding: 0 16px;
}

.info-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.info-icon {
  color: #2563eb;
  font-size: 20px;
  margin-top: 2px;
  flex-shrink: 0;
}

.info-text {
  font-size: 13px;
  color: #1e40af;
  line-height: 1.5;
  margin: 0;
  font-weight: 500;
}

.section {
  margin-bottom: 24px;
}

.section-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-left: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1e293b;
}

.section-dot {
  width: 4px;
  height: 14px;
  background: #2563eb;
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.4);
}

.section-title-independent {
  .section-dot {
    background: #fb923c;
    box-shadow: 0 0 8px rgba(251, 146, 60, 0.4);
  }
}

.section-dot-independent {
  background: #fb923c;
  box-shadow: 0 0 8px rgba(251, 146, 60, 0.4);
}

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

.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 60vh;
  gap: 16px;
}

.loading-text {
  color: #666;
  font-size: 14px;
}

.search-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px;
}

.search-input-wrapper {
  position: relative;
  flex: 1;

  .ant-input {
    border-radius: 8px;
    height: 40px;
  }
}

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

.pagination-container {
  display: flex;
  justify-content: center;
  padding: 14px 0;
  background: white;
  border-radius: 12px;
  margin-top: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

  :global(.ant-pagination) {
    .ant-pagination-item {
      border-radius: 6px;
      border: 1px solid #d9d9d9;

      &:hover {
        border-color: var(--primary-color);
      }

      &.ant-pagination-item-active {
        background: var(--primary-color);
        border-color: var(--primary-color);

        a {
          color: white;
        }
      }
    }

    .ant-pagination-prev,
    .ant-pagination-next {
      border-radius: 6px;
      border: 1px solid #d9d9d9;

      &:hover {
        border-color: var(--primary-color);
        color: var(--primary-color);
      }
    }
  }
}

.plan-item {
  background: white;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;

  &:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
}

.plan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.plan-name {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  flex: 1;
  margin-right: 12px;
}

.plan-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.more-btn {
  padding: 4px;
  min-width: auto;
  height: 28px;
  width: 28px;
  border-radius: 4px;

  &:hover {
    background-color: #f5f5f5;
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.stat-item {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  border: 1px solid #e9ecef;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;

  &:hover {
    background: #e6f7ff;
    border-color: #91d5ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.15);
  }

  &:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(24, 144, 255, 0.1);
  }

  &:hover::after {
    opacity: 1;
  }
}

.stat-label {
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
  font-weight: 500;
}

.stat-value {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  line-height: 1.2;
}

.plan-footer {
  border-top: 1px solid #f0f0f0;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
}

.last-execution {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #999;

  svg {
    font-size: 14px;
    color: #999;
  }
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.empty-text {
  color: #999;
  font-size: 14px;
  margin-bottom: 20px;
}

.create-first-btn {
  height: 40px;
  padding: 0 24px;
  border-radius: 20px;
}

// 加载更多按钮样式
.load-more-container {
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

.load-more-btn {
  height: 44px;
  padding: 0 32px;
  border-radius: 22px;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;

  &:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  &:active {
    transform: translateY(0);
  }
}

// 没有更多数据提示样式
.no-more-data {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  color: #999;
  font-size: 14px;

  span {
    position: relative;
    padding: 0 20px;

    &::before,
    &::after {
      content: "";
      position: absolute;
      top: 50%;
      width: 40px;
      height: 1px;
      background-color: #e0e0e0;
    }

    &::before {
      left: -50px;
    }

    &::after {
      right: -50px;
    }
  }
}

.action-menu-dialog {
  background: white;
  border-radius: 16px 16px 0 0;
  padding: 20px;
  max-height: 60vh;
  display: flex;
  flex-direction: column;
}

.action-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;

  &:hover {
    background-color: #f5f5f5;
  }

  &.danger {
    color: #ff4d4f;

    &:hover {
      background-color: #fff2f0;
    }
  }
}

.action-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.action-text {
  font-size: 16px;
  font-weight: 500;
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;

  h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
  }
}

.dialog-content {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.qr-dialog {
  background: white;
  border-radius: 16px;
  padding: 20px;
  width: 100%;
}

.qr-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 16px;
  color: #666;
  font-size: 14px;
}

.qr-image {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 8px;
}

.qr-error {
  text-align: center;
  color: #ff4d4f;
  font-size: 14px;
  padding: 40px 20px;
}

.qr-link-section {
  margin-top: 20px;
  width: 100%;
  padding: 0 10px;
}

.link-label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
  text-align: left;
}

.link-input-wrapper {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;

  @media (max-width: 480px) {
    flex-direction: column;
    gap: 12px;
  }
}

.link-input {
  flex: 1;

  .ant-input {
    border-radius: 8px;
    font-size: 12px;
    color: #666;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;

    &:focus {
      border-color: #1890ff;
      box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
    }
  }

  @media (max-width: 480px) {
    width: 100%;
  }
}

.copy-button {
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  flex-shrink: 0;

  .anticon {
    font-size: 12px;
  }

  @media (max-width: 480px) {
    width: 100%;
    justify-content: center;
  }
}
