:root {
  --primary-color: #061d59;
  --lightblue-color: #69c7ec;
  --text-gray: #231e1e;
  --text-light-gray: #666666;
  --text-btn-gray: #4e4e4e;
  --bg-light-gray: #f5f5f5;
  --bg-light-blue: #edf3f7;

}
.services{width: 100%;}
.services img{width: 100%;}
.services .tabs{width: 100%; display: flex; justify-content: space-evenly; align-items: center; padding: 0.34rem 0 0.3rem; position: relative;}
.services .tab-content{position: absolute; z-index: 1; background-color: #ffffff; width: 100%; }
.services .tab-content.sticky{position: fixed; top: 0; z-index: 100;}
.services .tab-content .line{width: 100%; height:0.04rem; background: var(--primary-color);}
.services .tab-content .line span{display: block; width: 10%; height:100%; background: var(--lightblue-color);}
.services .tabs .tab{font-size: var(--font-size-16); font-weight: 500; color: var(--primary-color); cursor: pointer; width: 1.25rem; text-align: center; transition: all 0.3s ease; }
.services .tabs .tab:hover{color: var(--lightblue-color);}
.services .tabs .tab.active{color: var(--lightblue-color); font-weight: 700;}

/* Purchase Phase Styles */
.purchase_phase {
  padding: 1.66rem 2.38rem;
  max-width: 14.40rem;
  margin: 0 auto;
  background: #ffffff;
}
.purchase_phase.sticky{margin-top: 0.62rem;}

.purchase-content {
  display: flex;
  gap: 75px;
}

.purchase-letf {
  padding-right: 0.2rem;
}
.purchase-letf img{width: 6.8rem;}

.purchase-title {
  font-size: var(--font-size-30);
  font-weight: bolder;
  color: #000;
  line-height: 1.6;
  margin-bottom: 0.24rem;
  text-align: center;
}


.purchase-subtitle {
  font-size: var(--font-size-22);
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 0.6rem;
  text-align: center;
}

.purchase-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  
}

.purchase-center img {
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
}

.purchase-right {
  flex: 1;
}

.feature-item {
  border-bottom: 1px solid #bbbbbb;
  padding-top: 36px;
  padding-bottom: 36px;
  padding-left: 5px;
  padding-right: 17px;
}

.feature-item.active {
  border-top: 1px solid #bbbbbb;
}

.feature-item:first-child {
  border-top: 1px solid #bbbbbb;
}

.feature-item:last-of-type {
  border-bottom: none;
  margin-bottom: 30px;
}

.feature-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.feature-title {
  font-size: var(--font-size-22);
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.1rem;
  line-height: 1.4;
}
.feature-header .digg-icon{
  width: 0.08rem;
  height: 0.08rem;
  background: var(--primary-color);
  border-radius: 50%;
  margin-right: 0.1rem;
}

.feature-icon {
  font-size: var(--font-size-30);
  color: var(--primary-color);
  margin-left: 0.15rem;
  transition: all 0.3s ease;
  display: inline-block;
}
.feature-item.active .feature-icon{color: var(--lightblue-color);}
.feature-content {
  margin-top: 0.26rem;
  /* 移动端性能优化 */
  will-change: max-height, opacity;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.feature-content p {
  font-size: var(--font-size-16);
  color: var(--text-light-gray);
  line-height: 1.6;
  margin: 0;
}

.btn-box{
  margin-top: 0.2rem;
}
.purchase-btn {
  display: inline-block;
  padding: 0 0.2rem;
  line-height: 0.37rem;
  border: 1px solid var(--text-gray);
  border-radius: 4px;
  color: var(--text-btn-gray);
  font-size: var(--font-size-16);
  font-weight: 500;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.purchase-btn:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(6, 29, 89, 0.3);
}

/* Usage Phase Styles */
.usage_phase {
  background: #e8f4f8;
  min-height: 100vh;
  position: relative;
}

.usage-phase-container {
  max-width: 14.40rem;
  margin: 0 auto;
  padding: 0.8rem 2.38rem;
}

.usage-phase-title {
  font-size: var(--font-size-40);
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.6;
  text-align: center;
}

.usage-phase-content {
  display: flex;
  margin-top: 0.2rem;
  position: relative;
}

/* 确保固定时的导航栏样式 */
.usage-nav.is-pinned {
  z-index: 99;
}

/* 限制 pin-spacer 的尺寸，避免布局问题 */
.usage-phase-content .pin-spacer {
  flex: 0 0 3rem !important;
  width: 3rem !important;
  max-width: 3rem !important;
  min-width: 3rem !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.usage-nav {
  flex: 0 0 3.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-self: flex-start;
  height: fit-content;
  max-height: 100vh;
  overflow-y: auto;
  z-index: 10;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.usage-nav-item {
  display: flex;
  align-items: center;
  gap: 0.18rem;
  padding: 0.2rem 0;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  /* 移动端性能优化 */
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  -webkit-tap-highlight-color: transparent;
}

.nav-indicator {
  width: 0.04rem;
  height: 0.48rem;
  background: var(--primary-color);
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.usage-nav-item.active{
  background-color: #fff;
  /* color: var(--lightblue-color); */
}
.usage-nav-item.active .nav-indicator {
  background: var(--lightblue-color);
  /* background-color: #fff; */
}

.nav-text {
  font-size: var(--font-size-22);
  font-weight: bolder;
  color: var(--primary-color);
  transition: all 0.3s ease;
  line-height: 1.6;
}

.usage-nav-item.active .nav-text {
  color: var(--lightblue-color);
}

.usage-content-wrapper {
  flex: 1;
  position: relative;
  min-height: 200px; /* 确保有最小高度，避免布局跳动 */
  /* height: 80vh;
  overflow-y: auto; */
}

.usage-content-item {
  background: #ffffff;
  padding:0.44rem 0.55rem;
  position: absolute;
  border-radius: 4px;
  /* 移动端性能优化 */
   opacity: 0;
   visibility: hidden;
   display: none;
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: opacity 0.2s ease-out, visibility 0.2s ease-out;
}

.usage-content-item.active {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  position: relative !important;
}

.content-subtitle {
  font-size: var(--font-size-30);
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.6;
  margin-bottom: 0.1rem;
}

.content-intro {
  font-size: var(--font-size-22);
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 0.1rem;
}

.content-accordion {
  margin-top: 0.2rem;
}

.accordion-item {
  border-bottom: 1px solid #bbbbbb;
  padding: 0.2rem 0.17rem 0.2rem 0.05rem;
}

.accordion-item:first-child {
  border-top: 1px solid #bbbbbb;
}

.accordion-header {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  cursor: pointer;
  user-select: none;
}

.accordion-bullet {
  font-size: var(--font-size-22);
  color: var(--primary-color);
  font-weight: 700;
  flex-shrink: 0;
}

.accordion-title {
  font-size: var(--font-size-22);
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
  flex: 1;
  line-height: 1.4;
}

.accordion-icon {
  font-size: var(--font-size-30);
  color: var(--primary-color);
  margin-left: 0.15rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.accordion-item.active .accordion-icon {
  color: var(--lightblue-color);
}

.accordion-content {
  margin-top: 0.1rem;
  padding-left: 0.15rem;
  /* 移动端性能优化 */
  will-change: max-height, opacity;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.accordion-content p {
  font-size: var(--font-size-16);
  color: var(--text-light-gray);
  line-height: 1.6;
  margin: 0;
}

/* Sticky scroll effect for navigation - GSAP ScrollTrigger will handle pinning */
.usage-nav.is-pinned {
  z-index: 99;
}

/* 确保 ScrollTrigger pin 时导航栏可见 */
.usage-nav[style*="position: fixed"],
.usage-nav[style*="position:fixed"] {
  z-index: 99 !important;
}


/* Recycling Phase Styles */
.recycling_phase {
  padding: 1.66rem 2.38rem;
  max-width: 14.40rem;
  margin: 0 auto;
  background: #ffffff;
}

.recycling-content {
  display: flex;
  gap: 75px;
}

.recycling-left {
  padding-right: 0.2rem;
}
.recycling-left img{width: 6.8rem;}

.recycling-title {
  font-weight: 700;
  color: #000;
  line-height: 1.6;
  margin-bottom: 0.24rem;
  font-size: var(--font-size-30);
  text-align: center;
}

.recycling-subtitle {
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 0.6rem;
  font-size: var(--font-size-22);
  text-align: center;
}

.recycling-right {
  flex: 1;
}



/* Want More Form Styles */
.want_more {
  padding: 1.66rem 2.38rem;
  max-width: 14.40rem;
  margin: 0 auto;
  background: var(--bg-light-blue);
}

.want-more-container {
  width: 100%;
  max-width: 100%;
}

.want-more-title {
  font-size: var(--font-size-60);
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 0.2rem;
}
.want-more-title::after{
  display: block;
  content: '';
  height: 7px;
  width:1.65rem;
  background: var(--lightblue-color);
  margin: 0 auto;
  margin-top: 0.36rem;
  margin-bottom: 0.36rem;
}

.want-more-subtitle {
  font-size: var(--font-size-30);
  color: var(--text-gray);
  text-align: center;
  margin-bottom: 0.6rem;
}

/* Contact Form Styles - matching contact-us.css */
.contact-form {
  width: 100%;
}

.contact-form-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap:0 0.6rem;
}

.form-left-column,
.form-right-column {
  display: flex;
  flex-direction: column;
}

.form-field {
  margin-bottom: 30px;
  position: relative;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  border: none;
  border-bottom: 1px solid #e0e0e0;
  padding: 0.35rem 0;
  font-size: var(--font-size-20);
  color: var(--text-gray);
  background: transparent;
  outline: none;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-bottom-color: var(--text-gray);
}

.form-field select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23231e1e' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  padding-right: 0.3rem;
}

.form-field select option {
  color: var(--text-gray);
  background: #fff;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-light-gray);
}

.form-field textarea {
  resize: vertical;
  min-height: 100px;
}

.privacy-checkbox {
  display: flex;
  align-items: flex-start;
  margin-top: 0.1rem;
  gap: 0.1rem;
  margin-bottom: 0.8rem;
}

.privacy-checkbox input[type="checkbox"] {
  margin-top: 0.03rem;
  flex-shrink: 0;
  width: 0.2rem;
  height: 0.2rem;
  cursor: pointer;
}

.privacy-checkbox input[type="checkbox"]:checked {
  accent-color: var(--primary-color);
}

.privacy-checkbox label {
  font-size: var(--font-size-20);
  color: var(--text-gray);
  line-height: 1.5;
  cursor: pointer;
}

.form-submit-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 0.4rem;
  gap: 0.2rem;
}

.send-button {
  height: 0.38rem;
  font-size: var(--font-size-16);
  color: var(--text-gray);
  background: transparent;
  border: 1px solid #d0d0d0;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  letter-spacing: 1px;
  border-radius: 0.05rem;
  min-width: 1.64rem;
}

.send-button:hover {
  border-color: var(--text-gray);
  background: var(--primary-color);
  color: #fff;
}

.send-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.send-button:disabled:hover {
  border-color: #d0d0d0;
  background: transparent;
  color: var(--text-gray);
}

/* 错误状态样式 */
.form-field.error input,
.form-field.error select,
.form-field.error textarea {
  border-bottom-color: #e74c3c;
}

.privacy-checkbox.error {
  color: #e74c3c;
}

.error-message {
  display: none;
  color: #e74c3c;
  font-size: var(--font-size-14);
  margin-top: 0.1rem;
  line-height: 1.4;
}

.error-message.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

.privacy-link{color:var(--lightblue-color)}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 手机版适配 */
@media (max-width: 768px) {
  .services .tabs {
    flex-wrap: wrap;
    padding: 0.33rem 0.1rem 0.2rem;
    height: 0.9rem;
  }

  .services .tab {
    width: auto;
    padding: 0 0.1rem;
  }

  .purchase_phase {
    padding:1rem 0.3rem;
  }

  .purchase-content {
    flex-direction: column;
    gap: 0.3rem;
  }

  purchase-letf {
    padding-right: 0;
  }

  .purchase-center {
    width: 100%;
  }

  .purchase-center img {
    max-width: 100%;
  }

  .usage-phase-container {
    padding: 0.5rem 0.5rem;
  }

  .usage-phase-content {
    flex-direction: column;
    gap: 0.3rem;
  }

  .usage-nav {
    display: none;
  }

  .usage-nav-item {
    white-space: nowrap;
    padding: 0.1rem 0.15rem;
  }

  .nav-indicator {
    width: 0.48rem;
    height: 0.04rem;
  }

  .usage-content-wrapper {
    width: 100%;
  }

  .usage-content-item {
    padding: 0.3rem 0.3rem;
    position: initial;
    opacity: 1; 
     visibility: visible; 
    display: block;
  }

  .recycling_phase {
    padding:1rem 0.3rem;
  }

  .recycling-content {
    flex-direction: column;
    gap: 0.5rem;
  }

  .recycling-left {
    padding-right: 0;
  }

  .want_more {
    padding: 0.8rem 0.3rem;
  }

  .contact-form-wrapper {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-left-column,
  .form-right-column {
    width: 100%;
  }

  .form-field {
    margin-bottom: 0.3rem;
  }

  .form-field input,
  .form-field textarea,
  .form-field select {
    font-size: var(--font-size-18);
    padding: 0.25rem 0;
  }

  .form-field textarea {
    min-height: 1.2rem;
  }

  .privacy-checkbox {
    margin-top: 0.2rem;
    margin-bottom: 0.4rem;
    gap: 0.1rem;
    align-items: baseline;
  }

  .privacy-checkbox input[type="checkbox"] {
    width: 0.2rem;
    height: 0.2rem;
    margin-top: 0.05rem;
    flex-shrink: 0;
  }

  .privacy-checkbox label {
    font-size: var(--font-size-16);
    line-height: 1.5;
  }

  .form-submit-wrapper {
    margin-top: 0.3rem;
    flex-direction: column;
    gap: 0.2rem;
  }

  .send-button {
    width: 100%;
    height: 0.5rem;
    font-size: var(--font-size-18);
    letter-spacing: 0.5px;
  }

  .error-message {
    font-size: var(--font-size-14);
    margin-top: 0.08rem;
  }
  .btn-box{text-align: center;}
  .purchase-btn{line-height: .6rem; padding: 0 0.4rem; margin: 0 auto;}
  .feature-header .digg-icon{width: 0.1rem; height: 0.1rem;}
  .services .tabs .tab{width:30.33%;}
}

/* 弹框样式 */
.popup-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  overflow-y: hidden;
}
.popup-modal .contact-form-wrapper .form-left-column{width: 100%;}
.popup-modal.active {
  display: flex;
}
.form-message {position: fixed; top: 50%; transform: translateY(-50%); left: 50%; transform: translateX(-50%);  z-index: 999;padding: 0.2rem 0.4rem;background: #fff; color: var(--primary-color);  box-shadow: 0 4px 70px rgba(0, 0, 0, 0.25);}
.popup-modal-content {
  position: relative;
  background: #ffffff;
  border-radius: 22px;
  padding: 0.5rem 0.6rem;
  max-width: 11.10rem;
  width: 90%;
  margin: 2rem auto;
  box-shadow: 0 4px 70px rgba(0, 0, 0, 0.25);
  max-height: 70vh;
  overflow-y: auto;
}

.popup-modal-close {
  position: absolute;
  top: 0.2rem;
  right: 0.2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.1rem;
  color: var(--primary-color);
  font-size: var(--font-size-22);
  line-height: 1;
  z-index: 10;
  transition: color 0.3s ease;
}

.popup-modal-close:hover {
  color: var(--primary-color);
}

.popup-modal-title {
  font-size: var(--font-size-40);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.2rem;
  margin-top: 0;
  text-align: center;
}

.popup-modal-intro {
  font-size: var(--font-size-22);
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 0.4rem;
}

/* Popup Modal Form Styles - using contact-form styles */
.popup-modal-content .contact-form {
  margin-top: 0.3rem;
}

.popup-modal-content .contact-form-wrapper {
  gap: 30px;
}

.popup-modal-content .form-submit-wrapper {
  justify-content: center;
  gap: 0.2rem;
}

.popup-modal-content .send-button {
  width: auto;
  padding: 0 0.2rem;
}

/* 注释弹框样式 */

.footnote-modal-content {
  position: absolute;
  background: #ffffff;
  border-radius: 8px;
  padding: 0.2rem 0.2rem;
  width: max-content;
  max-width: 8rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  pointer-events: auto;
  bottom: calc(100% + var(--font-size-14));
  left: 0;
  white-space: normal;
  z-index: 1000;
  word-wrap: break-word;
  overflow-wrap: break-word;
  display: none;
}

.footnote-modal-content.show-top {
  bottom: calc(100% + var(--font-size-14));
  top: auto;
}

.footnote-modal-content.show-bottom {
  top: calc(100% + var(--font-size-14));
  bottom: auto;
}

.footnote-modal-content.show-left {
  left: 0;
  right: auto;
}

.footnote-modal-content.show-right {
  right: 0;
  left: auto;
  transform: translateX(0);
}
.footnote-modal-content.show-center {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}



.footnote-text {
  font-size: var(--font-size-16);
  color: var(--text-gray);
  line-height: 1.5;
  margin: 0;
}

.footnote-trigger {
  cursor: pointer;
  color: var(--primary-color);
  font-size: var(--font-size-18);
  margin-left: 0.05rem;
  transition: color 0.3s ease;
  display: inline;
  position: relative;
  vertical-align: super;
  line-height: 0;
}
.footnote-trigger::before{
  content: '*';
}

.footnote-trigger:hover {
  color: var(--lightblue-color);
}
@media (min-width: 768px) {
  .footnote-trigger:hover .footnote-modal-content {
    display: inline-block;
  }
}

/* 移动端适配 */
@media (max-width: 768px) {
  .popup-modal-content {
    padding: 0.4rem 0.4rem;
    max-width: 80%;
    margin: 1rem auto;
  }

  .popup-modal-title {
    font-size: var(--font-size-22);
    margin-bottom: 0.15rem;
  }

  .popup-modal-intro {
    font-size: var(--font-size-14);
    margin-bottom: 0.3rem;
  }

  .popup-modal-content .contact-form-wrapper {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .popup-modal-content .form-submit-wrapper {
    flex-direction: column;
    gap: 0.15rem;
  }

  .popup-modal-content .send-button {
    width: 100%;
    min-width: auto;
  }

  .popup-modal-content .send-button.reserve-btn {
    flex: 1;
  }
  .footnote-modal-content {max-width: calc(80svw - 2rem);}
}