/* CSS Reset and Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background-color: #f5f5f5;
}

body {
  font-family: 'Nunito', sans-serif;
  font-size: 18px; /* Added base font size for PC */
  color: #333333;
  line-height: 1.625;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  max-width: 1920px;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.05);
  overflow-x: hidden;
}

img {
  /* PC 端样式 */
  body {
    font-family: 'Nunito', sans-serif;
    font-size: 18px; /* PC 端正文 18px */
    /* ... */
  }

  .btn {
    /* ... */
    font-size: 18px; /* PC 端按钮 18px */
  }

  /* 手机端样式 (768px 及以下) */
  @media (max-width: 768px) {
    body {
      font-size: 16px; /* 手机端正文 16px */
    }
    .btn {
      font-size: 16px; /* 手机端按钮 16px */
    }
  }
  max-width: 100%;
  display: block;
}

a,
button {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  background: none;
  border: none;
}

ul {
  list-style: none;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
.section-title {
  font-weight: 800;
  font-size: 48px;
  line-height: 1.25;
}

.title-center {
  text-align: left !important;
}

.title-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.subtitle {
  font-weight: 800;
  font-size: 20px;
  line-height: 1.5;
  margin-bottom: 8px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: 2px solid #597931;
  color: #597931;
  font-weight: 400;
  font-size: 18px; /* Changed from 16px for PC */
  border-radius: 4px;
  transition: all 0.3s ease;
  width: fit-content;
}

.btn:hover {
  background-color: #597931;
  color: #ffffff;
}

.btn-orange {
  border-color: #a65800;
  color: #a65800;
}

.btn-orange:hover {
  background-color: #a65800;
  color: #ffffff;
}

/* Header */
.header {
  height: 75px;
  border-bottom: 1px solid #e6e6e6;
  display: flex;
  align-items: center;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1240px; /* Aligned with the content container */
  padding: 0 20px;
  margin: 0 auto;
}

.logo img {
  height: 48px;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  font-size: 14px;
}

.lang-switcher img {
  width: 16px;
  height: 16px;
}

/* Banner */
.banner {
  height: 850px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 74px;
  overflow: hidden;
}

.banner-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.banner-content {
  width: 100%;
  max-width: 1920px; /* Expand to full design width */
  display: flex;
  justify-content: flex-end;
  padding-right: 60px; /* Precise Figma gap: 1920 - 1316 - 544 = 60 */
  /* Adjusted to match y: 734 */
  position: relative;
  z-index: 1;
  margin: 0 auto;
}

.banner-content h1 {
  font-weight: 700;
  font-size: 56px;
  line-height: 1.36;
  text-transform: none;
  color: #ffffff;
  white-space: nowrap;
  text-align: left;
}

.banner-dots {
  position: absolute;
  bottom: 31px; /* matches figma y: 811 in 850 height */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 16px;
  z-index: 2;
}

.dot {
  width: 24px;
  height: 8px;
  background-color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  width: 64px;
  background-color: #597931;
}

/* What We Do */
.what-we-do {
  padding: 100px 0;
  padding-bottom: 0;
  background-color: #ffffff;
}

.what-we-do-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
}

.what-we-do .txt-content {
  width: 700px;
  flex: none;
  background-color: white; /* Restored Figma color */
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.what-we-do .txt-content h2 {
  color: #597931;
  text-align: center; /* Figma Title center */
  margin-bottom: 0;
}
.txt-content {
  font-size: 18px;
}
.what-we-do .txt-content p {
  margin-bottom: 0;
  white-space: pre-line;
  color: #333333;
  font-size: 18px;
  line-height: 1.625;
  text-align: left; /* Figma Description left */
}

.what-we-do .img-content {
  width: 460px;
  height: 520px;
  flex: none;
}

.what-we-do .img-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Services */
.services {
  padding: 0;
  margin-top: 100px;
  margin-bottom: 100px;
}
.color-hospitality {
  background-color: #f8faf5;
}
.color-travel {
  background-color: #fff8f0;
}
.service-item {
  width: 100%;
  margin-bottom: 0; /* Changed from 80px to 0 as we use background colors now */
}

.service-container {
  display: flex;
  align-items: flex-start; /* Align both to top */
  gap: 80px;
  width: 100%;
  max-width: 1580px; /* 1920 - 340 */
  margin: 0;
  padding: 0 20px; /* Added padding to prevent edge hitting */
  margin-top: 100px;
  margin-bottom: 100px;
}

.hospitality .service-container {
  margin-right: auto;
}

.travel .service-container {
  margin-left: auto;
  flex-direction: row-reverse;
}

.service-img {
  flex: 1;
  max-width: 750px;
  height: 560px;
  position: sticky;
  top: 0; /* Image sticks to the very top of the colored block */
  z-index: 1;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-txt {
  flex: 1;
  max-width: 750px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 60px; /* Precise Figma y:60 offset from top */
  padding-bottom: 60px; /* Space for expansion */
}

.short-desc {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-txt h2 {
  color: #597931;
  text-align: left;
}

.travel .service-txt h2 {
  color: #a65800;
}

.service-txt p {
  margin-bottom: 0;
}

.service-detail-list {
  display: flex;
  flex-direction: column;
  gap: 10px; /* Precise Figma gap */
  padding: 10px 0;
  animation: fadeIn 0.5s ease;
}

.service-detail-list p {
  font-size: 16px;
  line-height: 1.625;
}

.service-detail-list strong {
  display: block;
  margin-bottom: 2px;
  font-weight: 700;
}
.platform-title {
  text-align: center !important;
}

/* Platform */
.platform {
  padding: 0;
  margin-top: 100px;
  margin-bottom: 100px;
}

.platform-intro {
  text-align: center;
  margin-bottom: 40px;
}

.platform-intro h2 {
  color: #a65800;
}

.platform-subtitle-box {
  max-width: 1240px;
  margin: 0 auto;
  margin-top: 32px;
}

.platform-subtitle-box h3 {
  color: #333333;
}

.platform-details {
  margin-top: 60px;
}

.platform-tabs {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
}

.tab {
  flex: 1;
  padding: 20px 12px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border-radius: 8px;
}

.tab:hover {
  background-color: rgba(166, 88, 0, 0.05);
}

.tab.active {
  background-color: #faf8f5;
}

.tab h3 {
  color: #333333;
  transition: color 0.3s ease;
}

.tab.active h3 {
  color: #a65800;
}

.tab p {
  font-size: 17px;
  line-height: 1.5;
  min-height: 4.5em; /* Exactly 3 lines (1.5 * 3) */
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.tab.active p {
  color: #a65800;
}

.platform-dots {
  display: none;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
}

.platform-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #e0e0e0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.platform-dot.active {
  background-color: #a65800;
  width: 30px;
  border-radius: 5px;
}

.platform-content-box {
  background-color: #faf8f5;
  padding: 40px 24px;
  display: flex;
  gap: 60px;
  align-items: center;
  min-height: 688px;
}

.platform-text-details {
  flex: 1;
  animation: fadeIn 0.5s ease;
}

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

.platform-text-details p {
  margin-bottom: 20px;
}

.platform-text-details p:last-child {
  margin-bottom: 0;
}

.platform-graphic {
  position: relative;
  width: 640px;
  height: 640px;
}

.graphic-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 220px;
  background-color: #ffffff;
  border: 4px solid #ffebd4;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0px 2px 40px 0px rgba(0, 0, 0, 0.5);
  text-align: center;
  z-index: 2;
}

.dxp-title {
  font-weight: 800;
  font-size: 48px;
  color: #a65800;
}

.dxp-subtitle {
  font-weight: 800;
  font-size: 16px;
  color: #a65800;
}

.graphic-label {
  position: absolute;
  display: flex;
  flex-direction: column;
  z-index: 1;
  transition: all 0.3s ease;
}

.graphic-label .label-title {
  font-weight: 800;
  font-size: 32px;
}

.graphic-label .label-subtitle {
  font-weight: 700;
  font-size: 16px;
}

.graphic-label.lms {
  top: 32px;
  left: 243px;
  color: #808080; /* Default color */
}

.graphic-label.gxs {
  top: 355px;
  left: 34px;
  color: #808080;
}

.graphic-label.cms {
  top: 355px;
  left: 431px;
  color: #808080;
}

.graphic-sublabel {
  position: absolute;
  font-size: 16px;
  color: #808080;
  transition: all 0.3s ease;
  z-index: 1;
}

.graphic-sublabel.social-media {
  top: 445px;
  left: 77px;
}

.graphic-sublabel.webapp-mgmt {
  top: 445px;
  left: 359px;
}

.graphic-arrow {
  position: absolute;
  z-index: 3;
  transition: all 0.5s ease;
}

/* Active states for graphic */
.platform-graphic.lms-active .lms {
  color: #ffffff;
}
.platform-graphic.lms-active .graphic-arrow {
  top: 122px;
  left: 184px;
} /* Pointing towards LMS */

.platform-graphic.gxs-active .gxs {
  color: #ffffff;
}
.platform-graphic.gxs-active .social-media {
  color: #ffffff;
}
.platform-graphic.gxs-active .graphic-arrow {
  top: 355px;
  left: 34px;
  transform: rotate(120deg);
}

.platform-graphic.cms-active .cms {
  color: #ffffff;
}
.platform-graphic.cms-active .webapp-mgmt {
  color: #ffffff;
}
.platform-graphic.cms-active .graphic-arrow {
  top: 355px;
  left: 431px;
  transform: rotate(240deg);
}
/* Note: The arrow coordinates from Figma data seem a bit strange for a 640x640 frame, 
   but I'll adjust them to look right relative to the labels. */

/* Partners */
.partners {
  padding: 100px 0;
  background-color: #fffaf5;
}

.partners-container h2 {
  color: #a65800;
  text-align: center;
}

.partners-grid {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 60px;
}

.partner-logo {
  width: 292px;
  height: 136px;

  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px;
}

.jc-logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  object-fit: none !important;
  gap: 10px;
}

.jc-logo-container img:first-child {
  width: 89px;
}

.jc-text {
  width: 115px;
}

/* Contact Us */
.contact-us {
  padding: 100px 0;
  background-color: #597931;
  color: #ffffff;
}

.contact-header {
  text-align: center;
  margin-bottom: 60px;
}

.contact-header h2 {
  color: #ffffff;
}

.contact-header p {
  font-weight: 600;
}

.contact-content {
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-info {
  background: linear-gradient(
      0deg,
      rgba(32, 77, 0, 0.85),
      rgba(32, 77, 0, 0.85)
    ),
    url('images/contact_bg.png');
  background-size: cover;
  background-position: center;
  padding: 60px;
}

.contact-info h3 {
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 48px;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.contact-item .icon img {
  width: 32px;
  height: 32px;
}

.item-details {
  display: flex;
  flex-direction: column;
}

.item-details .label {
  font-weight: 800;
  font-size: 20px;
}

.item-details .value {
  font-weight: 600;
  font-size: 16px;
}

/* Footer */
.footer {
  background-color: #204d00;
  color: #ffffff;
  padding: 60px 0;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-logo img {
  height: 48px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}

.copyright {
  font-weight: 600;
  font-size: 12px;
}

.privacy {
  font-weight: 600;
  font-size: 12px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .container {
    padding: 0 40px;
  }
  .header-container {
    padding: 0 40px;
  }
  .banner {
    height: 600px;
  }
  .banner-content {
    justify-content: center;
  }
  .banner-content h1 {
    font-size: 42px;
    text-align: center;
  }
  .what-we-do-container {
    flex-direction: column;
    gap: 40px;
  }
  .what-we-do-container {
    gap: 30px;
  }
  .what-we-do .txt-content {
    width: 100%;
    padding: 40px 16px;
  }
  .what-we-do .img-content {
    width: 100%;
    height: auto;
  }
  .service-container {
    flex-direction: column !important;
    gap: 40px;
    padding: 0 16px !important;
    align-items: center; /* Center on mobile */
  }
  .service-img {
    width: 100%;
    height: auto;
    flex: none;
    position: static;
  }
  .service-txt {
    width: 100%;
    max-width: 100%;
    padding-top: 0; /* Remove offset on mobile */
  }
  .service-txt h2 {
    text-align: center;
  }
  .service-list {
    text-align: left;
  }
  .platform-content-box {
    flex-direction: column;
    align-items: center;
  }
  .platform-graphic {
    width: 100%;
    max-width: 640px;
    height: auto;
    aspect-ratio: 1;
  }
}

@media (max-width: 992px) {
  .section-title {
    font-size: 36px;
  }
  .what-we-do-container {
    flex-direction: column;
  }
  .what-we-do .img-content {
    width: 100%;
    height: auto;
  }
  .platform-tabs {
    flex-wrap: wrap;
    gap: 20px;
  }
  .tab {
    flex: 1 1 45%;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  body {
    font-size: 16px;
  }
  .btn {
    font-size: 16px;
  }
  .header-container {
    padding: 0 16px;
  }
  .banner {
    height: 500px;
  }
  .banner-content {
    justify-content: center;
    padding-right: 0;
  }
  .banner-content h1 {
    font-size: 32px;
    text-align: center;
    white-space: normal;
  }
  .banner-dots {
    gap: 8px;
  }
  .dot {
    width: 16px;
  }
  .dot.active {
    width: 40px;
  }

  .what-we-do-container {
    gap: 30px;
  }

  .what-we-do .txt-content {
    padding: 0 16px;
    gap: 0px;
  }
  .service-container {
    gap: 30px;
    margin: 0;
  }
  .service-txt {
    gap: 30px;
    margin-top: 0;
    padding-bottom: 30px;
  }
  .service-detail-list p {
    font-size: 14px;
  }
  .what-we-do {
    padding: 30px 0 60px;
  }
  .service-item,
  .platform,
  .partners,
  .contact-us {
    padding: 60px 0 30px;
    margin-top: 0;
  }
  .services {
    margin-top: 0;
    margin-bottom: 0;
  }
  .platform {
    margin: 0;
  }
  .platform-intro {
    padding-top: 60px;
  }
  .platform-details {
    margin-top: 0;
    padding-bottom: 60px;
  }
  .platform-tabs {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0;
    margin-bottom: 20px;
    transition: transform 0.5s ease;
    width: 100%;
  }
  .platform-dots {
    display: flex;
  }
  .platform-details {
    overflow: hidden; /* Container for the slider */
    width: 100%;
  }
  .platform-content-box {
    flex-direction: column;
    padding: 30px 16px;
    gap: 30px;
    min-height: auto;
  }
  .tab {
    flex: 0 0 100%;
    user-select: none;
  }
  .tab p {
    min-height: auto;
    font-size: 16px;
    line-height: 1.6;
  }
  .platform-graphic {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
  }
  .platform-graphic img {
    width: 100%;
    height: auto;
    display: block;
  }
  .partners-grid {
    flex-direction: column;
    align-items: center;
  }
  .contact-info {
    padding: 40px 16px;
  }
  .contact-header p {
    font-size: 18px;
  }
  .contact-info h3 {
    font-size: 20px;
    margin-bottom: 30px;
  }
  .contact-item {
    gap: 20px;
    align-items: flex-start;
  }
  .contact-item .icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .contact-item .icon img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
  }
  .item-details .label {
    font-size: 20px;
    margin-bottom: 4px;
  }
  .item-details .value {
    font-size: 16px;
    line-height: 1.5;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  .footer-divider {
    display: none;
  }
  .moxlink-text {
    display: block;
    margin-top: 8px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 28px;
  }
  .banner {
    height: 400px;
  }
  .banner-content h1 {
    font-size: 24px;
  }
  .platform-graphic {
    max-width: 100%;
    margin: 0 auto;
  }
  .graphic-label .label-title {
    font-size: 24px;
  }
  .graphic-label .label-subtitle {
    font-size: 14px;
  }
  .graphic-center {
    width: 160px;
    height: 160px;
  }
  .dxp-title {
    font-size: 32px;
  }
}
