.container {
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
  background-color: #fff;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding: 16px;
  background-color: #f8f9fa;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);

  .headerLeft {
    display: flex;
    align-items: center;
    gap: 16px;

    p {
      margin: 0;
      font-size: 20px;
      font-weight: 500;
      color: #333;
      display: flex;
      align-items: center;
      gap: 8px;

      :global {
        .anticon {
          font-size: 24px;
          color: var(--theColor5);
        }
      }
    }
  }

  .backButton {
    padding: 8px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;

    &:hover {
      color: var(--theColor5);
      background-color: rgba(166, 106, 228, 0.1);
    }

    :global {
      .anticon {
        font-size: 20px;
      }
    }
  }
}

.content {
  background-color: #f8f9fa;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.tabs {
  :global {
    .ant-tabs-nav {
      margin-bottom: 24px;
    }

    .ant-tabs-tab {
      font-size: 15px;
      padding: 12px 24px;
      color: #666;
      transition: all 0.3s ease;

      &:hover {
        color: var(--theColor5);
      }

      :global {
        .anticon {
          margin-right: 8px;
          font-size: 16px;
        }
      }
    }

    .ant-tabs-tab-active {
      .ant-tabs-tab-btn {
        color: var(--theColor5);
        font-weight: 500;
      }
    }

    .ant-tabs-ink-bar {
      background-color: var(--theColor5);
      height: 2px;
    }
  }
}

.section {
  padding: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  background-color: #fff;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;

  :global {
    .ant-input, .ant-input-textarea {
      background-color: #fff;
      border: 1px solid rgba(0, 0, 0, 0.1);
      color: #333;
      border-radius: 8px;
      transition: all 0.3s ease;

      &:hover, &:focus {
        border-color: var(--theColor5);
        box-shadow: 0 0 0 2px rgba(166, 106, 228, 0.2);
      }
    }

    .ant-select {
      .ant-select-selector {
        background-color: #fff;
        border: 1px solid rgba(0, 0, 0, 0.1);
        color: #333;
        border-radius: 8px;
        transition: all 0.3s ease;

        &:hover, &:focus {
          border-color: var(--theColor5);
          box-shadow: 0 0 0 2px rgba(166, 106, 228, 0.2);
        }
      }
    }

    .ant-btn {
      background-color: var(--theColor5);
      border: none;
      border-radius: 8px;
      height: 40px;
      font-size: 15px;
      transition: all 0.3s ease;

      &:hover {
        background-color: var(--theColor6);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(166, 106, 228, 0.3);
      }

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

      .anticon {
        margin-right: 8px;
      }
    }
  }
}

.dimensions {
  display: flex;
  gap: 16px;
}

.polling {
  margin-top: 16px;
  text-align: center;
  padding: 24px;
  background-color: #f8f9fa;
  border-radius: 12px;
  animation: fadeIn 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);

  :global {
    .ant-spin {
      margin-right: 8px;
    }

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

.result {
  margin-top: 16px;
  text-align: center;
  padding: 16px;
  border: 1px dashed rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  animation: fadeIn 0.3s ease;
  background-color: #fff;

  img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

// 添加响应式样式
@media (max-width: 768px) {
  .container {
    padding: 16px;
  }

  .content {
    padding: 16px;
  }

  .tabs {
    :global {
      .ant-tabs-tab {
        padding: 8px 16px;
        font-size: 14px;
      }
    }
  }

  .section {
    padding: 16px;
  }
} 