.agent-main {
  /* overflow-x: hidden; */
}

.agent-main .main-hero {
  padding: 190px 24px 110px;
}

.agent-main .bottlenecks {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 60px;
  padding: 120px 20px;
}
.agent-main .bottlenecks .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.agent-main .bottlenecks .cards {
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  justify-content: center;
  gap: 20px;
}
.agent-main .bottlenecks .card {
  width: 100%;
  padding: 80px 40px;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  border: 0;
  background-color: #F8F8F8;
  height: 100%;
}

.agent-main .bottlenecks .card img {
  width: 32px;
  height: 32px;
  margin-bottom: 40px;
}

.agent-main .bottlenecks .card h3 {
  font-weight: 800;
  font-style: 95 ExtraBold;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: 0px;
  color: var(--black);
  margin-bottom: 10px;
}

.agent-main .bottlenecks .card p {
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0px;
  color: var(--text);
}

.agent-main .features {
  background-color: #f8f8f8;
}

.agent-main .features .tabs-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.agent-main .featureTabs {
  border: 1px solid var(--black);
  border-radius: 4px;
  background-color: var(--white);
  flex-wrap: nowrap;
}

.agent-main .featureTabs.nav-tabs .nav-item {
  width: 25%;
}

.agent-main .featureTabs.nav-tabs .nav-link {
  width: 100%;
  padding: 13px 0;
  margin: 0;
  border: 0;
  border-radius: 4px;
  font-weight: 400;
  font-style: 55 Regular;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0px;
  text-align: center;
  color: var(--black);
}

.agent-main .featureTabs.nav-tabs .nav-link.active {
  background-color: var(--black);
  color: var(--white);
}

.feature-tab-content .content {
  position: relative;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.feature-tab-content .content-left {
  width: 580px;
  height: 326px;
}
.feature-tab-content .content-left img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-tab-content .content-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.feature-tab-content .content-right h3 {
  font-weight: 800;
  font-size: 28px;
  line-height: 100%;
  letter-spacing: 0%;
  color: var(--black);
}
.feature-tab-content .content-right h4 {
  font-weight: 500;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: 0%;
  color: var(--black);
}

.feature-tab-content .content-right-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.feature-tab-content .content-right-item img {
  width: 24px;
  height: 24px;
}

.content-right-item-info {
  display: flex;
  flex-direction: column;
}
.content-right-item-info p {
  font-weight: 400;
  font-style: 55 Regular;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0%;
  color: var(--text);
}

.feature-tab-content .content-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.feature-tab-content .content-text {
  position: relative;
  z-index: 1;
  color: var(--white);
  width: 100%;
  height: 100%;
  padding: 60px 80px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: start;
}
.feature-tab-content .content-text h3 {
  font-weight: 800;
  font-size: 32px;
  line-height: 45px;
  letter-spacing: 0px;
}
.feature-tab-content .content-text .feature-subtitle {
  font-weight: 800;
  font-size: 18px;
  line-height: 25px;
  letter-spacing: 0px;
  margin-bottom: 40px;
}

.feature-tab-content .content-text .feature-desc {
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0px;
}

.agent-main .build {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 64px;
}

.agent-main .build .cards {
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-content: center;
  gap: 40px;
  position: relative;
}
.agent-main .build .card {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  border-radius: 8px;
  border: 0;
  height: 100%;
  position: relative;
}

.agent-main .build .cards .card-line {
  width: 80%;
  max-width: 860px;
  height: 1px;
  position: absolute;
  top: 36px;
  left: 50%;
  transform: translate(-50%, 0);
  border-top: 1px solid transparent;
  border-image: repeating-linear-gradient(
    to right,
    #000 0,
    #000 8px,
    transparent 8px,
    transparent 16px
  ) 1;
  z-index: 2;
}
.agent-main .build .card .top-img {
  width: 80px;
  height: 80px;
  position: relative;
  z-index: 3;
}

.agent-main .build .card .card-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.agent-main .build .card h3 {
  font-weight: 700;
  font-size: 24px;
  line-height: 24px;
  letter-spacing: 0px;
  min-height: 48px;
  color: var(--black);
  text-align: center;
  display: inline-flex;
  align-items: center;
}

.agent-main .build .card p {
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  color: var(--text);
}


.agent-actions {
  background-color: #F8F8F8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.agent-actions .actions-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.agent-actions .actions-top {
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-content: center;
  gap: 20px;
}

.agent-actions .actions-item { 
  width: 100%;
  height: 290px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  padding: 20px;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}

.agent-actions .actions-item .actions-bg { 
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.agent-actions .actions-bottom {
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  justify-content: center;
  gap: 40px;
}

.agent-actions .actions-info {
  position: relative;
  z-index: 2;
  color: var(--white);
}
.agent-actions .actions-info h3 {
  font-weight: 800;
  font-size: 24px;
  line-height: 100%;
  letter-spacing: 0px;
  margin-bottom: 10px;
}
.agent-actions .actions-info h4 {
  font-weight: 800;
  font-size: 16px;
  line-height: 100%;
  letter-spacing: 0px;
}
.agent-actions .actions-info p {
  font-weight: 400;
  font-size: 14px;
  line-height: 100%;
  letter-spacing: 0px;
}

.agent-built {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.agent-built .built-content {
  width: 1200px;
  max-width: 100%;
  height: 400px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
  margin: 0 auto;
}

.agent-built .built-content .built-item {
  flex: 1;
  height: 100%;
  cursor: pointer;
  position: relative;
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: flex 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: flex;
}

.agent-built .built-content .built-item::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.0001) 0%, #000000 100%);
}

.agent-built .built-content .built-item.active {
  flex: 4;   /* 展开比例 */
}

.agent-built .built-content .built-item .built-info {
  position: absolute;
  left: 30px;
  bottom: 30px;
  width: 740px;
  z-index: 2;
  color: var(--white);
  pointer-events: none; /* 防止遮挡鼠标事件 */
}
.agent-built .built-content .built-item .built-info h3:nth-child(1) {
  opacity: 1;
  visibility: visible;
  max-width: 175px;
  transition: opacity 0.3s ease;
}
.agent-built .built-content .built-item.active .built-info h3:nth-child(1) {
  opacity: 0;
  visibility: hidden;
  position: absolute; /* 移出文档流避免占用空间，但不使用 display: none */
}
.agent-built .built-content .built-item .built-info h3:nth-child(2) {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 0;
  transition: opacity 0.3s ease;
}
.agent-built .built-content .built-item.active .built-info h3:nth-child(2) {
  opacity: 1;
  visibility: visible;
  position: relative;
}
.agent-built .built-content .built-item .built-info p {
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0px;
  opacity: 0;
  visibility: hidden;
  height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease-in-out;
}
.agent-built .built-content .built-item.active .built-info p {
  opacity: 1;
  visibility: visible;
  height: auto;
  margin-top: 10px;
  transition: opacity 0.3s ease-in-out 0.2s;
}
.agent-built .built-content .built-item .built-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translateZ(0); /* 开启硬件加速 */
}

.agent-built .built-content .built-item .built-img img {
  width: 800px !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateZ(0); /* 开启硬件加速 */
  transition: none;
}


.agent-built .built-content .built-item .built-info h3 {
  font-weight: 800;
  font-size: 28px;
  line-height: 100%;
  letter-spacing: 0px;
}

.agent-built .built-content .built-item.active {
  /* 移除 width: 800px，统一使用 flex */
}

.agent-built .built-content .built-item.active .built-info h3 {
  margin-bottom: 10px;
}

.agent-built .built-content-mobile {
  width: 100%;
  overflow-x: auto !important;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
  display: flex;
  gap: 20px;
  padding: 0 20px;
}

.agent-built .built-content-mobile .built-mobile-item {
  width: 95%;
  height: 400px;
  transition: width 0.5s ease-in-out;
  cursor: pointer;
  position: relative;
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex-shrink: 0;
  scroll-snap-align: center;
}

.agent-built .built-content-mobile .built-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.agent-built .built-content-mobile .built-mobile-item .built-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: none;
}

.agent-built .built-content-mobile .built-mobile-item .built-info {
  position: absolute;
  left: 20px;
  bottom: 20px;
  width: calc(100% - 40px);
  z-index: 2;
  transition: none;
  color: var(--white);
}

.agent-built .built-content-mobile .built-mobile-item h3 {
  font-weight: 800;
  font-size: 28px;
  line-height: 100%;
  letter-spacing: 0px;
  margin-bottom: 10px;
}

.agent-built .built-content-mobile .built-mobile-item .built-info p {
  display: block !important;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease-in-out 0.5s, visibility 0s linear 0.5s;
}

.agent-protected {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 60px;
}

.protected-content {
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  justify-content: center;
  gap: 40px;
}

.protected-content .protected-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background: var(--white);
  border-radius: 8px;
  padding: 30px;
  border: 1px solid #DDDDDD;
}
.protected-content .protected-item img {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
}
.protected-content .protected-item h3 {
  font-weight: 800;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: 0px;
  color: var(--black);
}
.protected-content .protected-item p {
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0px;
  color: var(--text);
}

.features {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.features .tabs-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
  max-width: 1200px;
  overflow: hidden;
}

@media screen and (max-width: 1280px) { 
  .features .tabs-container {
    max-width: 100%;
    /* padding: 0 20px; */
  }
  .features .tabs-container .featureTabs {
    display: flex;
  }
  .features .tabs-container .featureTabs .nav-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
  }
  .features  .featureTabs.nav-tabs .nav-link {
    width: 100%;
    flex: 1;
    white-space: nowrap;
  }
}

@media screen and (max-width: 1200px) {
  .main-hero .banner-img {
    width: 520px;
  }
  .agent-main .bottlenecks .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .wf-main > section {
    padding-left: 20px;
    padding-right: 20px;
  }
  .feature-tab-content .content-left {
    width: 40%;
    height: auto;
  }
  .agent-built .built-content {
    display: none;
  }
}

@media screen and (min-width: 1200px) {
  .agent-built .built-content-mobile {
    display: none!important;
  }
}

@media screen and (max-width: 1024px) {
  .agent-main .main-hero {
    flex-direction: column;
    gap: 60px;
  }
  .main-hero .banner-img {
    width: 100%;
  }
  .main-hero .hero-content {
    align-items: center;
  }
  .main-hero h1 {
    text-align: center;
  }
  .protected-content {
    gap: 20px;
  }
}

@media screen and (max-width: 960px) {
  .agent-main .featureTabs {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    border: none;
    background-color: transparent;
    gap: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    width: 100%;
    justify-content: flex-start;
    scroll-behavior: smooth; /* 添加平滑滚动 */
  }
  .agent-main .feature-tab-content .content-text {
    padding: 60px 40px;
  }

  .featureTabs::-webkit-scrollbar {
    display: none;
  }

  .agent-main .featureTabs.nav-tabs .nav-link {
    padding: 12px;
    font-size: 14px;
    flex: 0 0 auto;
    width: auto;
    min-width: 160px;
    scroll-snap-align: center;
    background-color: transparent;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
  }
  
  .agent-main .featureTabs.nav-tabs .nav-link.active {
    background-color: var(--black);
    border-color: var(--black);
    color: var(--white);
  }
  .feature-tab-content .content {
    flex-direction: column;
  }
  .feature-tab-content .content-left {
    width: 100%;
    max-width: 580px;
  }

  .agent-main .build .cards {
    grid-template-columns: repeat(1, 1fr);
  }
  .agent-main .build .card {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    justify-content: flex-start;
  }
  .agent-main .build .card .card-info {
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
  }
  .agent-main .build .card h3 {
    min-height: 32px;
  }
  .agent-main .build .card p {
    text-align: left;
  }
  .agent-main .build .cards .card-line {
    width: 1px;
    height: 80%;
    left: 40px;
    border-left: 1px solid transparent;
    border-image: repeating-linear-gradient(
      to bottom,
      #000 0,
      #000 8px,
      transparent 8px,
      transparent 16px
    ) 1;
  }
  .agent-actions .actions-top,
  .agent-actions .actions-bottom {
    grid-template-columns: repeat(1, 1fr);
  }
  .agent-actions .actions-item .actions-bg {
    object-fit: cover;
  }
}


@media screen and (max-width: 680px) {
  .main-hero h1 {
    font-weight: 800;
    font-size: 24px;
    line-height: 32px;
    letter-spacing: 0px;
    text-align: center;
  }
  .main-hero p {
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 0px;
    text-align: center;
    margin-bottom: 40px;
  }
  .agent-main .bottlenecks .cards {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media screen and (max-width: 560px) {
  .agent-main .build .cards .card-line {
    display: none;
  }
  .agent-main .build .card {
    flex-direction: column;
    align-items: flex-start;
  }
  .protected-content {
    grid-template-columns: repeat(1, 1fr);
  }
}