/* page-ttqs.css */

.page-hero-subtitle {
  top: 75px;
  right: -60px;
}

.ttqs-services-section {
  padding-bottom: 77px;
  background-image: url(../../images/high-angle-business-people-working-with-ipad.webp);
  background-size: cover;
}
.ttqs-services {
  width: 100%;
  margin-top: 45px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 44px;
  text-align: center;
  color: #fff;
}

.ttqs-services__card {
  width: 100%;
  max-width: 384px;
  min-height: 340px;
  border-radius: 10px 10px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 13px 17px;
  box-sizing: border-box;
  gap: 14px;
}

.ttqs-services__card--primary {
  background-color: #0b2f53;
}

.ttqs-services__card--accent {
  background-color: #e2ae3b;
  color: #0b2f53;
}

.ttqs-services__title {
  font-weight: 600;
}

.ttqs-services__title--dark {
  color: #0b2f53;
}

.ttqs-services__panel {
  width: 100%;
  max-width: 358px;
  min-height: 265px;
  border-radius: 10px 10px 0 0;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: left;
  color: #0b2f53;
}

.ttqs-services__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}

.ttqs-services__item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ttqs-services__icon {
  width: 12px;
  height: auto;
  flex-shrink: 0;
}

.ttqs-services__text {
  margin: 0;
  color: var(--color-primary);
}

/* why-ttqs */
.why-ttqs-section {
  padding: 48px 0 70px;
}
.why-ttqs {
  width: 100%;
  max-width: 980px;
  border: 3px solid #316eac;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding: 0 0 30px;
  margin-top: 90px;
  text-align: center;
  color: #fff;
}

.why-ttqs__header {
  position: relative;
  width: 100%;
  margin-top: -36px;
  max-width: 812px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-ttqs__header-bg {
  height: auto;
}

.why-ttqs__header-bg--desktop {
  width: 100%;
}

.why-ttqs__header-bg--mobile {
  width: 289px;
  height: 54px;
  object-fit: cover;
}

.why-ttqs__heading {
  position: absolute;
  font-weight: 500;
  margin: 0;
}

.why-ttqs__intro {
  width: 100%;
  max-width: 728px;
  margin: 0;
  color: #000;
}

.why-ttqs__panel {
  width: 100%;
  max-width: 893px;
  min-height: 328px;
  background-color: #e6f3ff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 28px;
  box-sizing: border-box;
  text-align: left;
  color: #0b2f53;
}

.why-ttqs__list {
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.why-ttqs__item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.why-ttqs__label {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  width: 100%;
  max-width: 280px;
}

.why-ttqs__icon {
  width: 15px;
  height: auto;
  flex-shrink: 0;
}

.why-ttqs__title {
  margin: 0;
  font-weight: 500;
  white-space: nowrap;
}

.why-ttqs__divider {
  width: 4px;
  height: 24px;
  background-color: #316eac;
  flex-shrink: 0;
}

.why-ttqs__desc {
  margin: 0;
  color: #000;
}

/* ttqs steps */
.ttqs-steps-section {
  padding: 95px 0 0;
  background-image: url(../../images/ttqs-steps-section-bg.webp);
  background-size: cover;
  background-position: center;
}

.ttqs-steps__wrap {
  display: flex;
  margin-top: 48px;
  position: relative;
  isolation: isolate;
  min-height: 1564px;
  width: 100%;
  max-width: 1085px;
  padding-top: 78px;
  justify-content: center;
}

.ttqs-steps__bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
}
.ttqs-steps {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 660px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  text-align: center;
  color: #0b2f53;
}

.ttqs-steps__item {
  width: 100%;
  min-height: 124px;
  background-color: #fff;
  border: 1px solid #0b2f53;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px;
}

.ttqs-steps__row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 312px;
  gap: 16px;
}

.ttqs-steps__heading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ttqs-steps__number {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.ttqs-steps__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ttqs-steps__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.ttqs-steps__title {
  margin: 0;
  font-weight: 500;
}

.ttqs-steps__divider {
  width: 100%;
  max-width: 291px;
  height: 1px;
  border-top: 1px solid #e2ae3b;
  box-sizing: border-box;
}

.ttqs-steps__desc {
  width: 100%;
  max-width: 281px;
  margin: 0;
  color: #000;
}

/* ttqs info */
.ttqs-info {
  width: 100%;
  max-width: 1085px;
  margin: 22px auto -88px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  color: #fff;
}

.ttqs-info__header {
  width: 100%;
  min-height: 72px;
  background: linear-gradient(0deg, #0b2f53, #1969b9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.ttqs-info__heading {
  margin: 0;
  font-weight: 500;
}

.ttqs-info__row {
  width: 100%;
  min-height: 103px;
  background-color: #fff;
  border: 1px solid #0b2f53;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 54px;
  gap: 10px;
  color: #0b2f53;
}

.ttqs-info__label {
  width: 100%;
  max-width: 240px;
  min-height: 48px;
  border-radius: 60px;
  border: 1px solid #0b2f53;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ttqs-info__label-text {
  font-weight: 500;
  font-size: var(--font-size-xl);
}

.ttqs-info__link {
  font-weight: 500;
  color: #000;
  text-decoration: none;
  word-break: break-all;
}

.ttqs-info__link:hover {
  text-decoration: underline;
}

/* service item */
.service-items-section {
  padding: 152px 0 94px;
}
.service-items {
  width: 100%;
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
  color: #000;
}

.service-items__heading {
  display: flex;
  align-items: center;
  gap: 16px;
}

.service-items__decoration {
  width: 55px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.service-items__title {
  margin: 0;
  font-weight: 500;
}

.service-items__grid {
  width: 100%;
  max-width: 838px;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 50px;
  row-gap: 28px;
}

.service-items__card {
  width: 100%;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.service-items__card--blue {
  background-color: #cee6ff;
}

.service-items__card--yellow {
  background-color: #fff8dc;
}

.service-items__text {
  margin: 0;
}

/* ==================== 桌面基礎樣式 ==================== */

/* ==================== 大螢幕 (max-width: 1440px) ==================== */
@media (max-width: 1440px) {
  .ttqs-services-section,
  .why-ttqs-section,
  .ttqs-steps-section,
  .service-items-section {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* ==================== 平板 (max-width: 1024px) ==================== */
@media (max-width: 1024px) {
  .page-hero-subtitle {
    top: 35px;
    right: 50%;
  }
  .ttqs-services {
    flex-direction: column;
    gap: 24px;
  }

  .ttqs-services__card {
    width: 100%;
    max-width: 100%;
    min-height: auto;
  }

  .ttqs-services__panel {
    min-height: auto;
  }

  .why-ttqs__list {
    grid-template-columns: 1fr;
    display: grid;
    gap: 16px;
  }

  .ttqs-steps {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .service-items__grid {
    grid-template-columns: 1fr 1fr;
    display: grid;
    gap: 20px 12px;
  }
}

/* ==================== 768px 以下 ==================== */
@media (max-width: 768px) {
  .ttqs-services-section {
  }
  .why-ttqs-section {
  }

  .service-items-section {
    padding: 100px 10px 54px;
  }

  .ttqs-services__panel {
    padding: 26.5px 29.5px;
  }

  .ttqs-services__title {
  }

  .ttqs-services__text {
  }

  .why-ttqs__list {
    gap: 36px;
  }

  .why-ttqs__header {
    margin-top: -18px;
    align-items: flex-start;
  }
  .why-ttqs__heading {
    font-size: 13px;
    padding-top: 14px;
  }

  .why-ttqs__intro {
    line-height: normal;
  }

  .why-ttqs__panel {
    padding: 39.5px 17.5px;
  }

  .why-ttqs__title {
    font-weight: 600;
  }

  .why-ttqs__desc {
    line-height: normal;
  }

  .ttqs-steps-section {
  }

  .ttqs-steps__wrap {
    background-image: url(../../images/ttqs-steps__bg-mobile.webp);
    background-position: top center;
    background-repeat: no-repeat;
    background-size: contain;
    margin-top: 17px;
    padding-top: 44px;
    min-height: auto;
  }

  .ttqs-steps {
    max-width: 242px;
    gap: 28px;
  }

  .ttqs-steps__item {
    flex-direction: column;
    padding: 21px 9px;
    gap: 14px;
    height: 124px;
  }

  .ttqs-steps__row {
    gap: 14px;
    align-items: center;
  }

  .ttqs-steps__title {
    font-weight: 600;
  }

  .ttqs-steps__desc {
    max-width: 220px;
    line-height: normal;
  }

  .service-items__grid {
  }
}

/* ==================== 小平板 (max-width: 992px) ==================== */
@media (max-width: 992px) {
}

/* ==================== 手機 (max-width: 480px) ==================== */
@media (max-width: 480px) {
  .ttqs-services-section {
    padding: 0 0 36px;
    background-image: url(../../images/high-angle-business-people-working-with-ipad-mobile.webp);
  }
  .why-ttqs-section {
    padding: 28px 010px 48px;
  }
  .ttqs-steps-section {
    padding: 50px 0 0;
    background-image: url(../../images/ttqs-steps-section-bg-mobile.webp);
  }

  .ttqs-steps-section .container {
    max-width: 360px;
  }
  .service-items-section {
  }

  .ttqs-services {
    margin-top: 28px;
  }

  .ttqs-services__panel {
    padding: 26.5px 29.5px;
  }

  .ttqs-services__title {
  }

  .ttqs-services__icon {
    width: 16px;
    height: 16px;
  }

  .ttqs-services__text {
    font-size: 13px;
  }

  .why-ttqs {
    width: 322px;
    padding: 0 25px 24px;
    margin-top: 42px;
    gap: 20px;
  }

  .why-ttqs__item {
    flex-direction: column;
    align-items: flex-start;
  }
  .why-ttqs__heading {
    font-size: 13px;
  }

  .why-ttqs__divider {
    width: 84px;
    height: 4px;
  }

  .why-ttqs__intro {
    max-width: 258px;
  }

  .why-ttqs__panel {
  }

  .why-ttqs__icon {
  }

  .why-ttqs__title {
  }

  .why-ttqs__desc {
  }

  .ttqs-steps__number {
    font-size: 1.25rem;
  }

  .ttqs-steps__title {
  }

  .ttqs-info__header {
    padding: 0;
    min-height: 34px;
  }

  .ttqs-info {
    max-width: 272px;
    margin: 20px auto -32px;
  }

  .ttqs-info__row {
    flex-direction: column;
    gap: 8px;
    padding: 14.5px 15px;
    min-height: auto;
  }
  .ttqs-info__label {
    min-height: 24px;
  }

  .ttqs-info__label-text {
    font-size: 0.875rem;
  }

  .ttqs-info__link {
    font-size: 12px;
    word-break: break-all;
  }

  .service-items {
    margin-top: 16px;
    gap: 12px;
  }

  .service-items__decoration {
    height: 12px;
    width: auto;
  }
  .service-items__title {
  }

  .service-items__card {
    padding: 7px;
  }

  .service-items__text {
    font-size: 0.8125rem;
  }
}
