* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.xinkangcheng-scene-based {
  padding: var(--gap-100) 0;
  background: #fff;
}

.scene-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
  margin-bottom: 40px;
}

.header-left {
  flex-shrink: 0;
}

.main-title {
  font-family: var(--font-family);
  font-size: var(--font-64);
  font-weight: 800;
  color: #111;
  line-height: 1.25;
  max-width: 636px;
}

.header-right {
  flex: 1;
  max-width: 400px;
}

.main-description {
  font-family: var(--font-family);
  font-size: var(--font-24);
  font-weight: 400;
  color: #666;
  line-height: 1.25;
}

.scene-main {
  position: relative;
  margin-bottom: 40px;
  border-radius: 24px;
  overflow: hidden;
}

.image-wrapper {
  width: 100%;
  aspect-ratio: 1600 / 780;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
}

.scene-images-container {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}

.scene-image-wrapper {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.scene-bg-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  transition: transform 0.5s ease;
  transform: scale(1);
  transform-origin: center center;
}

.image-wrapper:hover .scene-bg-image {
  transform: scale(1.1);
}

.floating-card {
  position: absolute;
  top: 40px;
  right: 40px;
  width: 560px;
  border-radius: 20px;
  background: #FF7206;
  padding: 47px 47px 44px;
  color: #ffffff;
  z-index: 10;
}

.card-heading {
  color: #fff;
  font-family: var(--font-family);
  font-size: var(--font-30);
  font-weight: 700;
  line-height: 1.2666;
  margin-bottom: 18px;
  transition: transform 0.4s ease;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  transition: transform 0.4s ease;
}

.card-tags.is-empty {
  display: none;
}

.card-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 10px 14px;
  border-radius: 100px;
  background: #FFD664;
  color: #CD5900;
  font-family: var(--font-family);
  font-size: var(--font-14);
  font-weight: 500;
  line-height: calc(18/14);
}

.card-text {
  color: #fff;
  font-family: var(--font-family);
  font-size: var(--font-18);
  font-weight: 500;
  line-height: calc(18/14);
  margin-bottom: 40px;
  transition: transform 0.4s ease;
}

.card-action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 240px;
  min-height: 60px;
  padding: 10px 25px;
  background: #ffffff;
  color: #FF6900;
  text-align: center;
  text-decoration: none;
  border-radius: 30px;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: var(--font-20);
  line-height: 1.5;
  cursor: pointer;
}

.scene-tabs {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  padding: 36px 104px 41px 81px;
  gap: 55px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3), transparent);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  cursor: grab;
}

.scene-tabs:active {
  cursor: grabbing;
}

.scene-tabs::-webkit-scrollbar {
  display: none;
}

.scene-tabs {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.tab-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
  color: rgba(255, 255, 255, 0.7);
}

.tab-btn:hover {
  color: #ffffff;
}

.tab-btn {
  position: relative;
}

.tab-btn.active {
  color: #ffffff;
}

.tab-icon-wrapper {
  position: relative;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.tab-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.5;
}

.tab-btn.active .tab-icon {
  opacity: 1;
}

.tab-text-wrapper {
  height: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tab-text {
  font-family: var(--font-family);
  font-size: var(--font-22);
  font-weight: 500;
  text-align: left;
  line-height: 1.091;
}

.tab-text-line {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.40);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.tab-btn.active .tab-text-line {
  background: #ffffff;
  animation: progressFill 0.6s ease-out forwards;
}

@keyframes progressFill {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}

.tab-btn.active .tab-text {
  font-weight: 800;
}

@media (max-width: 1500px) {
  .floating-card {
    top: 30px;
    right: 30px;
    width: 500px;
    padding: 38px 36px 34px;
  }

  .scene-tabs {
    padding: 16px 84px 21px 61px;
    gap: 55px;
  }

  .tab-icon-wrapper {
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 1200px) {
  .scene-header {
    gap: 40px;
  }

  .floating-card {
    width: 430px;
    top: 20px;
    right: 20px;
    padding: 28px 27px;
  }

  .card-heading {
    margin-bottom: 14px;
  }

  .card-tags {
    gap: 8px;
    margin-bottom: 14px;
  }

  .card-text {
    margin-bottom: 24px;
  }

  .card-action {
    min-width: 200px;
    min-height: 52px;
    font-size: var(--font-18);
  }

  .scene-tabs {
    gap: 10px;
  }

  .tab-icon-wrapper {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 1024px) {
  .scene-header {
    flex-direction: column;
    gap: 20px;
  }

  .header-right {
    min-width: 100%;
  }

  .main-title {
    max-width: 100%;
  }

  .image-wrapper {
    height: 420px;
  }

  .scene-images-container {
    height: 100%;
  }
}

@media (max-width: 768px) {
  .image-wrapper {
    width: 100%;
    height: auto;
    aspect-ratio: 650 / 780;
  }

  .scene-images-container {
    height: 100%;
  }

  .scene-bg-image {
    height: 100% !important;
  }

  .floating-card {
    width: calc(100% - 80px);
    padding: 32px;
    top: 40px;
    right: 40px;
    left: 40px;
  }

  .card-heading {
    margin-bottom: 14px;
  }

  .card-tags {
    gap: 8px;
    margin-bottom: 16px;
  }

  .card-tag {
    min-height: 28px;
    padding: 8px 12px;
  }

  .card-text {
    margin-bottom: 26px;
  }

  .card-action {
    min-width: 210px;
    min-height: 54px;
    padding: 14px 20px;
  }

  .scene-tabs {
    padding: 20px;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
  }

  .scene-tabs::-webkit-scrollbar {
    display: none;
  }

  .scene-tabs {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .tab-btn {
    width: 436px;
    flex-shrink: 0;
    gap: 20px;
    flex: none;
  }

  .tab-icon-wrapper {
    width: 72px;
    height: 72px;
  }

  .tab-icon {
    width: 54px;
    height: 54px;
  }

  .tab-text {
    font-size: 22px;
  }
}

@media (max-width: 576px) {
  .image-wrapper {
    width: 100%;
    aspect-ratio: 650 / 780;
  }

  .scene-images-container {
    height: 100%;
  }

  .floating-card {
    width: calc(100% - 36px);
    padding: 18px;
    top: 18px;
    right: 18px;
    left: 18px;
  }

  .card-heading {
    margin-bottom: 12px;
  }

  .card-tags {
    gap: 6px;
    margin-bottom: 12px;
  }

  .card-tag {
    padding: 7px 12px;
    font-size: 12px;
  }

  .card-text {
    margin-bottom: 18px;
  }

  .card-action {
    min-width: 180px;
    min-height: 48px;
    padding: 13px 18px;
    font-size: var(--font-16);
  }

  .scene-tabs {
    padding: 18px 14px;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
  }

  .scene-tabs::-webkit-scrollbar {
    display: none;
  }

  .scene-tabs {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .tab-btn {
    width: 80%;
    flex-shrink: 0;
    gap: 10px;
    flex: none;
  }

  .tab-icon-wrapper {
    width: 38px;
    height: 38px;
  }

  .tab-icon {
    width: 21px;
    height: 21px;
  }

  .tab-text {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .image-wrapper {
    width: 100%;
    aspect-ratio: 650 / 780;
  }

  .floating-card {
    width: calc(100% - 32px);
    right: 16px;
    top: 10px;
    left: 16px;
    padding: 20px;
  }

  .card-heading {
    margin-bottom: 10px;
  }

  .card-tags {
    margin-bottom: 10px;
  }

  .card-text {
    margin-bottom: 16px;
  }

  .card-action {
    min-width: 164px;
    min-height: 44px;
    padding: 12px 16px;
    font-size: var(--font-16);
  }

  .scene-tabs {
    padding: 16px 12px;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
  }

  .scene-tabs::-webkit-scrollbar {
    display: none;
  }

  .scene-tabs {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .tab-btn {
    flex-shrink: 0;
    gap: 8px;
  }

  .tab-icon-wrapper {
    width: 36px;
    height: 36px;
  }

  .tab-icon {
    width: 20px;
    height: 20px;
  }
}
