@import url('https://fonts.googleapis.com/css2?family=Rubik&display=swap');
@import url('//fonts.googleapis.com/earlyaccess/notosanstc.css');

body {
  font-family: 'Noto Sans TC', '微軟正黑體', sans-serif;
}




.apexcharts-text, .apexcharts-title-text, .apexcharts-legend-text {
    font-family: unset !important;
}
#kt_sign_in_form > div.row.g-3.mb-9 > div > a {
  font-family: unset !important;
}
#kt_sign_in_form > div.text-center.mb-11 > h1{
  font-family: unset !important;
}
.menu-bg{
  padding-right: 12px;
  border-radius: 6px;
}

.menu-bg.active{
  background-color: #e6e6e643;
  transition: background-color 0.3s ease;
}

#myorders_processing {
  background-color: #fff;
  min-width: 50%;
  padding: 15px !important;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.8) !important;
}

.highcharts-figure,
.highcharts-data-table table {
  font-family: 'Noto Sans TC', '微軟正黑體', sans-serif !important;
  min-width: 500px;
  max-width: 2400px;
  margin: 1em auto;
}

#order_days .highcharts-figure, 
#order_days .highcharts-data-table table {
  font-family: 'Noto Sans TC', '微軟正黑體', sans-serif !important;
  width: 100%;
  min-width: 500px;
  max-width: 3000px;
  margin: 1em auto;
  border: 1px #EEE solid;
}

#order_days .highcharts-data-table table {
  font-family: 'Noto Sans TC', '微軟正黑體', sans-serif !important;
  border-collapse: collapse;
  border: 1px solid #ebebeb;
  margin: 10px auto;
  text-align: center;
  width: 100%;
  max-width: 3000px;
}

.ribbon-section{
  background-color: #40A578;
  color: #fff;
  border: none;
  min-height: 2.4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
}
.ribbon-section p {
  padding: 0;
  margin: 0;
}


.search-bar{
  width: 100%;
}
.analyze-btn{
  background-color: #40A578;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease-in-out;
}
.analyze-btn:hover{
  background-color: #036648;
}
.btn-flash{
  color: #fff;
}

.highcharts-data-table table {
  font-family: 'Noto Sans TC', '微軟正黑體', sans-serif !important;
  border-collapse: collapse;
  border: 1px solid #ebebeb;
  margin: 10px auto;
  text-align: center;
  width: 100%;
  max-width: 500px;
}

.highcharts-data-table caption {
  padding: 1em 0;
  font-size: 1.2em;
  color: #555;
}

.highcharts-data-table th {
  font-weight: 600;
  padding: 0.5em;
}

.highcharts-data-table td,
.highcharts-data-table th,
.highcharts-data-table caption {
  padding: 0.5em;
}

.highcharts-data-table thead tr,
.highcharts-data-table tr:nth-child(even) {
  background: #f8f8f8;
}

.highcharts-data-table tr:hover {
  background: #f1f7ff;
}

.highcharts-xaxis-labels {
  font-family: 'Noto Sans TC', '微軟正黑體', sans-serif !important;
}

.lp-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  
}
.lp-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  flex: 0 0 auto;
  width: 50%;
}

.lp-images{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  /* justify-content: center; */
  flex: 0 0 auto;
  width: 50%;
}
.adtool-images{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  /* justify-content: center; */
  flex: 0 0 auto;
  width: 40%;
}
.lp-images,.adtool-images img {
  width: 92%;
}
.lp-brands{
  width: 80px;
}
.lp-sloan{
  font-size: 1.2rem;
  font-weight: 400;
  color: #797979;
  margin-bottom: 1rem;
}
.lp-collab ul  {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 2.4rem 6rem;
}
.lp-collab ul li {
  list-style: none;
}
#lp-hero-title{
  font-size: 5.2rem;
  font-weight: 900;
  padding-bottom: 1.8rem;
  color: rgb(0, 0, 0);
}
#lp-hero-title span{
  font-size: 3rem;
  line-height: 1.2em;
}
#lp-hero-subtitle{
  line-height: 1.5;
  font-size: 1.3rem;
  font-weight: 500;
  color: #797979;
  padding-right: 3rem;
  margin-bottom: 2.4rem;
}
#p-sign-in{
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  background-color: #0dc990;
  border-radius: 0.4rem;
  padding: 0.8rem 1.6rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}
#lp-sign-in{
  background-color: #0dc990;
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
}

/* 桌機版登入後台按鈕增加左右 padding */
@media (min-width: 992px) {
  #lp-sign-in {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}
#lp-submit-btn{
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  background-color: #0dc990;
  border-radius: 0.4rem;
  padding: 0.8rem 1.6rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}
#lp-submit-btn::after{
  content: ' \2192'; 
}
.lp-logo-section{
  margin: 0;
}
.section-feature-d-center{
  display: flex;
  align-items: center;
  justify-content: center;
}
.section-feature-title,.ads-section-title{
  font-size: 2.4rem;
  font-weight: 900;
  position: relative;
  display: inline-block; /* 確保橫槓可以緊隨標題後面 */
  padding: 16px;
}
.section-feature-title::after {
  content: ""; /* 偽元素的內容為空 */
  display: block; /* 使其作為塊級元素 */
  height: 8px; /* 橫槓的高度 */
  background-color: #0DC990; /* 橫槓的顏色 */
  position: absolute; /* 絕對定位 */
  left: 50%; /* 設置起點為標題的中心點 */
  transform: translateX(-50%); /* 向左偏移自身寬度的一半來實現水平居中 */
  top: 100%; /* 放置於標題的底部 */
  width: 12%;
}
.pricing-section-title{
  font-size: 3.2rem;
  font-weight: 900;
  color: #fff;
}

.highlight{
  background: linear-gradient(to top, #50cd89 12%, transparent 50%);
  padding: 0.1em 0;
}
.search-input-center{
  display: flex;
  align-items: center;
  margin: 0 auto;
}

.ads-feature-bg{
  background-color: #1f3358;
}
.ads-card{
  width: 70%;
  height: auto;
}
.call-to-actions{
  font-size: 1.4rem;
  border-radius: 6px;
  padding: 10px;
  background-color: #40a578;
  color: #fff;
}

.mirror-image {
  transform: scaleX(-1);
}


.lp-main-flex{
  display: flex;
  flex-direction: column;
}
.lp-container {
  width: 1440px;
  margin: 0 auto;
}
.lp-header {
  width: 100%;
  padding: 2.4rem 6rem;
  display: flex;
  align-items:center;
  justify-content: space-between;
}
.lp-navigator{
  display: flex;
  align-items: center;
  gap:50px
}
.lp-logo {
  height: 35px;
}
.lp-nav-link {
  font-size: 1.2rem;
  font-weight: 600;
  color: #181C32;
  margin: 0;
}
.lp-navigator-btn{
  display: flex;
}

.nav-text {
  font-size: 1.2rem;
  font-weight: 400;
}

/* 數據分析導航項目維持灰色，不要一開始綠字 */
.menu-link-nav-plain .menu-title,
.menu-link-nav-plain .menu-title:hover,
.menu-item .menu-link-nav-plain.active .menu-title,
.menu-item .menu-link-nav-plain.here .menu-title {
  color: var(--bs-text-gray-600) !important;
}

/* 數據諮詢顧問導航項目使用 primary 顏色 */
.menu-link-consultant .menu-title {
  color: var(--bs-primary) !important;
}

.menu-link-consultant:hover .menu-title,
.menu-link-consultant.show .menu-title,
.menu-item.show .menu-link-consultant .menu-title,
.menu-link-consultant.active .menu-title {
  color: var(--bs-primary) !important;
}

/* 數據諮詢顧問右側箭頭圖標使用 primary 顏色 */
.menu-link-consultant .menu-arrow:after {
  background-color: var(--bs-primary) !important;
}

.menu-link-consultant:hover .menu-arrow:after,
.menu-link-consultant.show .menu-arrow:after,
.menu-item.show .menu-link-consultant .menu-arrow:after,
.menu-link-consultant.active .menu-arrow:after {
  background-color: var(--bs-primary) !important;
}
.lp-feature-hero-title{
  display: flex;
  align-items: flex-start;
  font-size: 4rem;
  font-weight: 900;
  color: #40A578;
  padding-bottom: 1.2rem;
}
.lp-feature-title{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  font-size: 2.4rem;
  font-weight: 900;
  color: rgb(0, 0, 0);
  padding-bottom: 1.2rem;
gap: 1.2rem;
}
.lp-feature-hero-subtitle{
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 1.2;
  color: #454545;
}
.lp-feature-imgs{
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 50%;
}
.sub_to_e_report{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 100%;
  padding-top: 4rem;
}
.sub_to_e_report h2,
.sub_to_e_report p{
  color: #fff;
}
.sub_to_e_report h2{
  font-size: 2.4rem;
  font-weight: 900;

}
.sub_to_e_report p{
 font-size: 1.2rem;
}
.pre-launch{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 100%;
}
.coming-feature{
  font-size: 14px;
  color: #fff;
  background-color: #f1416c;
  padding: 6px 12px;
  border-radius: 4px;
}
.lp-feature-imgs img {
  width: 100%;
}
.lp-footer{
  background-color: #071437;
  padding-top: 1.4rem;
}

#lp-pricing-title {
  font-size: 3.2rem;
  font-weight: 900;
  color: #fff;
  padding-bottom: 1.2rem;
}
.blurred-element{
  background-image: url('path/to/your/image.jpg'); /* 替換成實際的圖像路徑 */
      width: 400px;
      height: 200px;
      filter: blur(5px); /* 設置模糊程度，可以調整數值 */
}
.view-section{
  display: flex;
  align-items: center;
  justify-content: center;
}
.view-all-ranks{
  background-color: #dddddd8a;
  color: #000000;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 4px;
}
.lp-ds-title{
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.5em;
}
.lp-tg-title{
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.4em;
}
.tg-text {
  font-size: 16px;
  line-height: 1.8em;
  color: #454545;
}
.ds-text {
  font-size: 16px;
  line-height: 1.8em;
  color: #454545;
}

.lp-ds-subtitle{
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.5em;
  color: #454545;
}
.lp-ds-hero-title {
  font-size: 5.2rem;
  font-weight: 900;
  color:#40A578;
  margin-bottom: 1rem;
}

.circletop-bg{
  background-image: url('/assets/media/ds/svg/circle-top.svg');
  background-position: left top;
  background-repeat: no-repeat;
}
.ds-circletop-left-bg{
  background-image: url('/assets/media/ds/svg/ds-circle-top-left.svg');
  background-position: left center;
  background-repeat: no-repeat;
  background-size: contain;
}
.underline-text{
  font-weight: bold;
  color: #40A578;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  font-size: 18px;
}
.btn.btn-light {
  color: #454545;
}
.ds-contact-bg{
  background-image: url('/assets/media/ds/image/ec-ds-7.webp'); 
  background-size: cover;
  background-position: center;
  position: relative;
}

.ds-contact-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #50cd89e0; 
  z-index: 1;
}

.ds-contact-bg .container {
  position: relative;
  z-index: 2;
}
.landing-curve svg{
  margin-bottom: -1px;
}
.lp-tg-subtitle{
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.5em;
  color: #454545;
}
.tg-contact-bg{
  background-image: url('../media/custom-targeting/contact_bg.jpg'); 
  background-size: cover;
  background-position: center;
  position: relative;
}

.tg-contact-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #50cd89e0; 
  z-index: 1;
}

.tg-contact-bg .container {
  position: relative;
  z-index: 2;
}

/* 確保 reCAPTCHA badge 顯示在最上層 */
.grecaptcha-badge {
  z-index: 9999 !important;
}

/* scrolltop 按鈕要在 reCAPTCHA badge 上方 */
.scrolltop,
#kt_scrolltop {
  z-index: 10000 !important;
}

#tg_contact .form-group label {
  font-size: 1rem;
  font-weight: 500;
  color: #454545;
  margin-bottom: 0.5rem;
}

#tg_contact .form-group {
  margin-bottom: 1.75rem;
}
.bg-faded {
  position: relative;
}

.bg-faded::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.5); /* 調整透明度 */
  z-index: 1;
}

.bg-faded > div {
  position: relative;
  z-index: 2;
}

.feature-image-holder{
  height: 550px;
}

.feature-image-holder-sm{
  height: 380px;
}

.feature-image-holder-md{
  height: 480px;
}


#service-name-icon{
  height: 40px;
  margin-bottom: 1rem;
}
@media (max-width:1200px) {
  .lp-container {
    width: 100%;
    margin: 0 auto;
  }
  .lp-header {
    width: 100%;
    padding: 2.4rem 2rem;
    display: flex;
    align-items:center;
    justify-content: space-between;
  }
  .lp-navigator{
    display: flex;
    align-items: center;
    gap:50px
  }
  .lp-logo {
    height: 35px;
  }
  .lp-nav-link {
    font-size: 1.2rem;
    font-weight: 600;
    color: #181C32;
    margin: 0;
  }
  .lp-navigator-btn{
    display: flex;
  }
}

@media (max-width:992px){

  .feature-image-holder {
    height: 450px;
  }

  .feature-image-holder-sm {
    height: 320px;
  }
  .lp-header {
    width: 100%;
    padding: 2.4rem 2rem;
    display: flex;
    align-items:center;
    justify-content: space-between;
  }
  .lp-navigator{
    display: flex;
    align-items: center;
    gap:50px
  }
  
  .lp-logo {
    height: 35px;
  }
  .lp-nav-link {
    font-size: 1.2rem;
    font-weight: 600;
    color: #181C32;
    margin: 0;
  }
  .lp-navigator-btn{
    display: flex;
  }
  .highcharts-figure,
	.highcharts-data-table table {
	  min-width: 340px;
	  max-width: 500px;
	  margin: 1em auto;
	}
	.lp-flex {
    display: flex;
    align-items: center;
    justify-content: center;
  }
#lp-hero-title, .lp-ds-hero-title{
  font-size: 3.6rem;
}
#lp-hero-title span{
  font-size: 2rem;
}
.lp-collab ul {
  padding: 1.6rem;
}
.lp-brands{
  width: 70px;
}
.lp-feature-hero-title{
  font-size: 2.2rem;
  line-height: 1.4;
}
.lp-feature-hero-subtitle {
  font-size: 1.2rem;
}
}

@media ( max-width: 768px){

  .feature-image-holder {
    height: auto;
    max-height: 300px;
  }

  .feature-image-holder-sm {
    height: auto;
    max-height: 240px;
  }
.lp-flex {
    padding: 1.4rem 2.6rem;
    /* flex-direction: column; */
    gap: 1rem;
    flex-wrap: wrap;
  }
  .lp-mobile-inverted{
    flex-wrap: wrap-reverse;
  }
.lp-title{
  width: 100%;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
}
#lp-hero-title{
  font-size: 3.4rem;
}
#lp-hero-subtitle{
  font-size: 1.4rem;
  line-height: 1.5;
  padding-right: 0;
}

.lp-feature-hero-title{
  padding-bottom: 0px;
}
.lp-feature-imgs{
  margin-top: 0;
}
.lp-feature-hero-subtitle{
  margin: 0;
}
.lp-logo-section{
  margin-top: 1rem;
  height: 220px;
}

.lp-images{
  width: 100%;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}
.lp-collab{
  padding: 1.2rem;
}

.lp-brands{
  width: 50px;
}

.lp-feature-imgs{
  width: 100%;

}

.lp-footer{
  margin: 0;
  padding-top: 0;
}



.ribbon-section p{
  font-size: 10px;
}
#float-sec{
  margin-bottom: 1rem;
  border-radius: 12px;
}
#float-sec img {
  width: 90vw;
}

:root,
[data-theme=light] {
  --kt-white: #ffffff;
  --kt-light: #f5f8fa;
  --kt-primary: #009ef7;
  --kt-secondary: #E4E6EF;
  --kt-success: #50cd89;
  --kt-info: #7239ea;
  --kt-warning: #ffc700;
  --kt-danger: #f1416c;
  --kt-dark: #181C32;
}



#ai_content_container .card{
  height: 100%;
  border: var(--bs-card-border-width) solid var(--bs-card-border-color);
}

.lp-ds-title{
  font-size: 2.4rem;
  font-weight: 700;
  color: #40A578;
  line-height: 1.5em;
}
.lp-tg-title{
  font-size: 2.4rem;
  font-weight: 700;
  color: #40A578;
  line-height: 1.5em;
}
.lp-ds-hero-title {
font-size: 3.4rem;
}
}
/* AdTools 頁面css由此開始 */
.ad-hero{
  display: flex;
  width: 100%;
  height: 600px;
  align-items: center;
  justify-content: center;
  gap: 2rem; 
}

.hero-slanted {
  position: relative;
  background: #681C1C; /* 換成你實際想用的背景色 */
  clip-path: polygon(0 0, 100% 0, 100% 96%, 0 100%);
}


.ad-hero-content {
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.ad-hero-image {
  width: 50%;
  height: 100%;
  display: flex;
}
.ad-hero-title {
  font-size: 4rem;
  font-weight: 900;
}
.ad-hero-subtitle{
  padding-top: 12px;
  font-size: 2rem;
}
.ad-hero-content-btn{
  padding: 12px 100px;
  font-size: 1.6rem;
  font-weight: 700;
  border-radius: 30px;
  border: none;
  background: #296aff;
  color: #fff;
}
.ad-feature-info{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap:1.2rem
}
.ad-feature-content{
  width: 50%;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.ad-feature-content h2 {
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 20px;
}

.ad-feature-content p {
  font-size: 1.4rem;
  line-height: 1.4;
}

.ad-feature-intro{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ad-feature-intro-title{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 8px;
}


.ad-feature-intro-title h2 {
  font-size: 4rem;
  font-weight: 900;
}

.ad-feature-intro-title p {
  font-size: 1.4em;
}
.ad-feature-image{
  width: 50%;
}
.ad-feature-intro-images{
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 12px;
  width: 100%;
  margin-top: 24px;
}
.ad-feature-intro-images img {
  width: 300px;
}
.ad-feature-intro-images-detail {
  flex: 1;
  max-width: 33.33%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ad-feature-intro-images-detail h3{
  padding-top: 24px;
  font-size: 2.4em;
  font-weight: 700;
}

.ad-feature-intro-images-detail p{
  padding-top: 12px;
  font-size: 1.4rem;
}
.ad-feature-intro-container{
  background: #faf9f9;
  padding: 80px;
  border-radius: 12px;
}

.outro-features{
  margin-top: 3.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  width: 100%;
}

.ad-feature-content a {
  font-size: 1.4rem;
  font-weight: 900;
  color: #296aff;
}
.link-arrow {
  color: #296aff;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s ease;
}

.link-arrow .arrow {
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.3s ease;
}

.link-arrow:hover {
  color: #5c8dff; /* 顏色變淺 */
}

.link-arrow:hover .arrow {
  transform: translateX(4px); /* 箭頭向右滑動 */
}


.outro-feature{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap:2rem
}
.outro-feature-items{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 33%;
}
.outro-feature-items h3{
  font-size: 2rem;
  margin-top: 2rem;
  font-weight: 900;
}
.outro-feature-items p{
  margin-top: 1.4rem;
  font-size: 1.4rem;
  line-height: 1.4;
  margin-top: 2rem;
}
.more-about-ads {
  width: 100%;
  padding: 40px 0;
  text-align: center;
}

.comparison-wrapper {
  width: 1200px;
  margin: 0 auto;
  text-align: center;
  margin-bottom: 4rem;
}

.comparison-title h2{
  font-size: 4rem;
  margin-bottom: 2rem;
}

.comparison-dot {
  width: 8px;
  height: 8px;
  background-color: red;
  border-radius: 50%;
  margin: 0 auto 24px;
}

.comparison-table {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 20px;
}

.comparison-table div {
  border: 1px solid #e0e0e0;
  padding: 24px;
  font-size: 16px;
}
.header-top.dpa-cell {
  background: #296aff;
}

.header-left {
  background: #9a9a9a;
}
.header-left span {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
}

.header-top {
  background: #a4a4a4;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  height: 80px;
}

.header-top span {
  font-size: 1.6rem;
  font-weight: 900;
}

.icon {
  height: 40px;
}

.gray-cell {
  background: #f5f5f5;
}

.header-left:first-child {
  border-top-left-radius: 20px;
}

.header-left:last-child {
  border-bottom-left-radius: 20px;
}

.comparison-table .platform:last-child {
  border-bottom-right-radius: 20px;
}

.top-left-empty {
  border: none !important;
  background: transparent;
}
.top-left-rounded {
  border-top-left-radius: 20px;
  color: #fff;
}

.header-left.top-left-rounded {
  background-color: #071437;
}
.ad-partner-title{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; 
}
.ad-partner-title h2 {
  font-size: 4.2rem;
  font-weight: 900;
  margin-top: 4rem;
}
.ad-partner-logos {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: nowrap; /* 保持橫向排一列 */
  justify-content: space-around;
  gap: 20px;
}

.ad-partner-logos img {
  flex: 1 1 120px;
  max-width: 160px;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: grayscale(100%);
  opacity: 0.7;
}
.bottom-call-to-cation{
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  margin-bottom: 4.2rem;
}
.btn-to-dashboard{
  padding: 24px 60px;
  background-color: #296aff;
  font-size: 1.4rem;
  color: #fff;
  font-weight: 900;
  border-radius: 40px;
}
.ad-hero-image img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* 1200px 以下：縮小標題與圖片 */
@media (max-width: 1200px) {

  .comparison-wrapper {
    width: 100%;
    padding: 0 24px;
    box-sizing: border-box;
  }

  .comparison-table {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }

  .comparison-table div {
    padding: 16px;
    font-size: 14px;
  }

  .header-top span {
    font-size: 1.4rem;
  }

  .header-left span {
    font-size: 1.2rem;
  }

  .comparison-table svg {
    width: 16px;
    height: 16px;
  }

  
  .ad-partner-title h2 {
    font-size: 3rem;
  }

  .ad-partner-logos img {
    max-width: 120px;
  }

  .ad-hero-title {
    font-size: 3rem;
  }

  .ad-hero-subtitle {
    font-size: 1.6rem;
  }

  .ad-hero-image img {
    max-width: 80%;
  }

  .ad-hero-content-btn {
    padding: 12px 80px;
    font-size: 1.4rem;
  }

  .ad-feature-intro-container {
    padding: 40px;
  }

  .ad-feature-intro-images img {
    width: 220px;
  }

  .ad-feature-intro-title h2 {
    font-size: 1.8rem;
  }

  .ad-feature-intro-title p {
    font-size: 1rem;
  }

  .ad-feature-content h2 {
    font-size: 2.2rem;
  }

  .ad-feature-content p {
    font-size: 1rem;
  }

  .ad-feature-image img {
    max-width: 90%;
  }

  .ad-feature-content {
    padding: 12px;
  }
}

/* 768px 以下：改為直式排版 */
@media (max-width: 768px) {

  .comparison-wrapper {
    width: 100%;
    overflow-x: auto;
    padding: 0 16px;
    padding: 0 16px; /* ✅ 左右各留 16px 空間 */
    overflow-x: auto;
    box-sizing: border-box;
  }
  .comparison-wrapper::before {
    content: "👉 左右滑動查看完整比較";
    font-size: 0.85rem;
    color: #999;
    text-align: center;
    display: block;
    margin-bottom: 8px;
  }
  .comparison-table {
    min-width: 600px; /* ✅ 讓表格可橫向滑動 */
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    border-radius: 12px;
    min-width: 600px;
    border-radius: 12px;
  }

  .comparison-table div {
    font-size: 14px;  /* ✅ 字體變小但不歪 */
    padding: 12px;
    text-align: center;
  }

  .header-top {
    height: auto;
    font-size: 1.2rem;
  }

  .header-left span {
    font-size: 1.1rem;
  }

  .comparison-table svg {
    width: 16px;
    height: 16px;
    margin-left: 4px;
    vertical-align: middle;
  }

  .gray-cell {
    background: #f4f4f4;
  }

  .ad-partner-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .ad-partner-logos img {
    flex: 0 0 30%;
    max-width: 30%;
  }

  /* 第一列顯示第1-3個 logo */
  .ad-partner-logos img:nth-child(1),
  .ad-partner-logos img:nth-child(2),
  .ad-partner-logos img:nth-child(3) {
    order: 1;
  }

  /* 第二列顯示第4-7個 logo */
  .ad-partner-logos img:nth-child(4),
  .ad-partner-logos img:nth-child(5),
  .ad-partner-logos img:nth-child(6),
  .ad-partner-logos img:nth-child(7) {
    order: 2;
    flex: 0 0 22%; /* 四個要放得下 */
    max-width: 22%;
  }

  /* 隱藏第8個或另起一列 */
  .ad-partner-logos img:nth-child(8) {
    display: none; /* 或放 order: 3; 加在第3列 */
  }


  .ad-hero {
    flex-direction: column;
    height: auto;
    padding: 40px 20px;
    text-align: center;
  }

  .ad-hero-content {
    width: 100%;
    align-items: center;
    text-align: center;
  }

  .ad-hero-content img {
    max-width: 60px;
    margin-bottom: 12px;
  }

  .ad-hero-image {
    width: 100%;
    margin-top: 20px;
    justify-content: center;
  }

  .ad-hero-title {
    font-size: 2.4rem;
  }

  .ad-hero-subtitle {
    font-size: 1.4rem;
  }

  .ad-hero-content-btn {
    padding: 12px 40px;
    font-size: 1.4rem;
    margin-top: 24px;
  }

  .ad-feature-intro-images {
    flex-direction: column;
    align-items: center;
  }

  .ad-feature-intro-images-detail {
    width: 100%;
    margin-bottom: 24px;
  }

  .ad-feature-intro-images {
    flex-direction: column;
    align-items: center;
  }

  .ad-feature-intro-images-detail {
    width: 100%;               /* ✅ 讓每組展開佔滿整個 container */
    max-width: 100%;
    padding: 0 24px;           /* ✅ 加點內距不貼邊 */
    box-sizing: border-box;
    text-align: left;          /* ✅ 文字靠左對齊，較清晰 */
    margin-bottom: 32px;
  }

  .ad-feature-intro-images-detail h3,
  .ad-feature-intro-images-detail p {
    width: 100%;
    max-width: 100%;
  }

  .ad-feature-intro-images img {
    width: 100%;
    max-width: 300px;
    margin: 0 auto 12px auto;
    display: block;
  }

  .ad-feature-intro-title {
    padding: 0 24px;
    box-sizing: border-box;
    text-align: center;
  }

  .ad-feature-info {
    flex-direction: column;
  }

  .ad-feature-content,
  .ad-feature-image {
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
  }

  .ad-feature-content {
    align-items: center;
    text-align: center;
  }

  .ad-feature-content h2 {
    font-size: 1.8rem;
  }

  .ad-feature-content p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .ad-feature-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  .link-arrow {
    display: inline-block;
    margin-top: 16px;
    font-size: 1rem;
    color: #296aff;
    font-weight: bold;
  }

  .link-arrow .arrow {
    transition: transform 0.2s ease;
  }

  .link-arrow:hover .arrow {
    transform: translateX(4px);
  }

  .ad-feature-info.reverse-on-mobile {
    flex-direction: column-reverse;
  }
}

/* ============================================
   DMP Page Styles (廣告受眾中台)
   ============================================ */

/* Smooth Scroll - 不使用 overflow-x: hidden 避免影響 sticky */
html {
    scroll-behavior: smooth;
}

/* Hero Section */
.dmp-hero-bg {
    background-image: url('../media/dmp/hero_bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.dmp-hero-title {
    font-size: 4.2rem;
    font-weight: 700;
    line-height: 1.3;
    color: #333;
}

.dmp-hero-title span:first-child {
    color: #40A578;
}

.dmp-hero-title .green-light {
    color: #55DCA0;
}

.dmp-hero-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.dmp-hero-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.8rem;
    font-weight: 500;
    color: #40A578;
}

.dmp-hero-list li:nth-child(2) {
    gap: 16px;
}

.dmp-text-indent {
    text-indent: 0;
}

.dmp-section-pt-80 {
    padding-top: 80px;
}

/* Section Titles */
.dmp-section-title-green {
    color: #40A578 !important;
}

.dmp-title-green {
    color: #40A578;
}

.dmp-title-green-light {
    color: #55DCA0;
}

/* Badges */
.dmp-badge {
    display: inline-block;
    background: #F1F1F1;
    border: 1px solid #E7E7E7;
    color: #333;
    padding: 6px 20px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 6px;
}

/* Solution Rows */
.dmp-solution-row {
    padding: 20px 0;
}

/* 三大解決方案區塊背景 */
.dmp-solution-bg {
    background-image: url('/assets/media/dmp/circle-left.svg');
    background-position: left center;
    background-repeat: no-repeat;
    background-size: contain;
}

@media (max-width: 768px) {
    .dmp-solution-bg {
        background-image: url('/assets/media/dmp/circle-left_m.svg');
    }
}

/* Circle Decorations */
.dmp-circle-left {
    position: absolute;
    left: 0;
    top: 50px;
    width: 150px;
    opacity: 0.5;
    max-width: 100%;
}


/* Cards */
.dmp-card {
    transition: transform 0.5s ease, box-shadow 0.3s ease;
    border-radius: 16px;
}

.dmp-card-img {
    max-width: 200px;
    height: auto;
}

.dmp-strategy-title {
    color: #40A578;
    font-size: 20px;
}

.dmp-check-icon {
    color: #50CD89;
    font-size: 1.5rem;
    margin-top: 4px;
}

.dmp-card li.tg-text {
    color: #64748B;
    font-size: 16px;
}

/* Card Fade-in Animation */
.dmp-card-fadein {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.dmp-card-fadein.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.dmp-card-fadein.is-visible.dmp-card:hover {
    transform: translateY(-10px) scale(1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

/* Slide Animations */
.dmp-animate-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.dmp-animate-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.dmp-animate-left.is-visible,
.dmp-animate-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Audience Section */
.dmp-audience-bg {
    background: linear-gradient(135deg, #5DC094 0%, #40A578 100%);
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
}

.dmp-text-white {
    color: #fff !important;
}

.dmp-decor-right {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    opacity: 0.3;
    max-width: 100%;
}

.dmp-decor-left {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 60%;
    opacity: 0.3;
    max-width: 100%;
}

/* Marquee Tags */
.dmp-marquee-wrapper {
    overflow: hidden;
    width: 100%;
    padding: 20px 0;
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.dmp-marquee-track {
    display: flex;
    gap: 20px;
    animation: marquee 20s linear infinite;
    width: max-content;
}

.dmp-marquee-wrapper:hover .dmp-marquee-track {
    animation-play-state: paused;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.333%); }
}

.dmp-tag-glass {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 700;
    white-space: nowrap;
}

/* Data Section */
.dmp-data-bg {
    background-image: url('../media/dmp/data_bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.dmp-data-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 1;
}

.dmp-data-bg .container {
    position: relative;
    z-index: 2;
}

.dmp-highlight {
    color: #55DCA0;
    font-weight: 700;
}

.dmp-container-1200 {
    max-width: 1200px;
    margin: 0;
}

.dmp-data-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.dmp-data-tag {
    display: inline-block;
    background: #e8f5e9;
    color: #40A578;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
}

.dmp-data-number {
    font-size: 3rem;
    font-weight: 700;
    color: #40A578;
    margin: 10px 0;
}

/* LINE Floating Button */
.dmp-line-float {
    position: fixed;
    bottom: 150px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #06C755;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    z-index: 998;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}


.dmp-line-float img {
    width: 80%;
    height: 80%;
    object-fit: cover;
}

/* Mobile RWD */
@media (max-width: 768px) {
    /* 防止橫向捲動：僅對各區塊個別限制溢出，不鎖 body/html/#kt_app_root */
    .mb-5,
    .dmp-hero-bg,
    .dmp-section-pt-80.dmp-solution-bg,
    .dmp-audience-bg,
    .dmp-data-bg,
    #tg_contact.tg-contact-bg,
    .lp-footer {
        overflow-x: hidden;
        max-width: 100%;
    }
    /* 頂部 ribbon 長文案強制換行、不撐破寬度 */
    .ribbon-section {
        overflow-x: hidden;
        max-width: 100%;
    }
    .ribbon-section p {
        white-space: normal;
        word-wrap: break-word;
    }
    /* header 內 flex 子元素可縮小，避免撐出視窗 */
    .landing-header .container {
        min-width: 0;
    }
    .landing-header .d-flex.align-items-center.justify-content-between {
        min-width: 0;
    }
    /* hero 區 .lp-flex.container 不超出視窗 */
    .dmp-hero-bg .lp-flex.container {
        min-width: 0;
        max-width: 100%;
    }
    
    .dmp-hero-bg {
        background-image: url('../media/dmp/hero_bg_m.webp');
        padding-bottom: 2rem !important;
    }
    
    .dmp-section-pt-80 {
        padding-top: 20px;
    }
    
    .dmp-hero-title {
        font-size: 3.5rem;
        text-align: center;
    }
    
    .dmp-hero-bg .col-md-6:first-child {
        align-items: center !important;
        text-align: center;
    }
    
    .dmp-hero-bg .lp-ds-subtitle {
        text-align: center;
        font-size: 1.7rem;
    }
    
    .dmp-hero-list {
        align-items: center;
        justify-content: center;
    }
    
    .dmp-hero-list li {
        font-size: 1.4rem;
    }
    .dmp-hero-bg .dmp-hero-list li img {
        width: 20px;
        height: 20px;
    }
    
    .dmp-hero-bg .col-md-6:last-child {
        margin-top: 20px;
    }
    
    /* 手機版 hero：圖與文字間距縮小 */
    .dmp-hero-bg .lp-flex {
        gap: 0.5rem;
    }
    .dmp-hero-bg .col-md-6.dmp-section-pt-80 {
        padding-top: 12px;
    }
    
    .dmp-solution-row {
        padding: 10px 15px;
        padding-bottom: 2rem !important;
    }
    
    .dmp-solution-row .col-md-6 img {
        margin-bottom: 20px;
    }
    
    .dmp-badge {
        font-size: 14px;
    }
    
    .lp-tg-title {
        font-size: 2.2rem;
    }
    
    .dmp-section-pt-80 .d-flex.flex-column.px-3 {
        padding-bottom: 2rem;
    }
    
    #tg_contact .container.py-20 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Section 5: 廣告受眾中台帶給品牌什麼受眾 - 手機版 */
    .dmp-audience-bg {
        width: 100%;
        box-sizing: border-box;
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
        padding-left: 0;
        padding-right: 0;
    }
    .dmp-audience-bg .container.py-10 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .dmp-audience-bg .text-center.mb-10 {
        margin-bottom: 1.5rem !important;
    }
    .dmp-audience-bg .lp-tg-title {
        font-size: 2.2rem;
        line-height: 1.35;
    }
    .dmp-audience-bg .lp-tg-subtitle {
        font-size: 1.6rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .dmp-decor-right {
        max-width: 45%;
        opacity: 0.2;
        top: 0;
        bottom: auto;
        height: 50%;
    }
    .dmp-decor-left {
        max-width: 45%;
        opacity: 0.2;
        bottom: 0;
        top: auto;
        height: 50%;
    }
    .dmp-marquee-wrapper {
        padding: 12px 0;
    }
    .dmp-marquee-track {
        gap: 12px;
        animation-duration: 25s;
    }
    
    .dmp-tag-glass {
        font-size: 1.4rem;
        padding: 8px 16px;
    }
    
    .dmp-tag-glass img {
        width: 22px;
        height: 22px;
    }
    
    /* Section 6: 數據力 - 手機版上方留白微調 */
    .dmp-data-bg {
        padding-top: 3rem !important;
    }
    .dmp-data-bg .container.py-10 {
        padding-top: 1rem !important;
    }
    
    .dmp-data-card {
        margin-bottom: 20px;
    }
    
    .dmp-card-fadein.is-visible.dmp-card:hover {
        transform: translateY(0) scale(1);
        box-shadow: none;
    }
    
    .dmp-line-float {
        bottom: 70px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .landing-header {
        padding-top: 15px;
        padding-bottom: 15px;
    }
    
    .landing-header .d-flex.align-items-center.justify-content-between {
        flex-wrap: nowrap;
    }
    
    .landing-header .flex-equal {
        flex: 0 0 auto;
        min-width: auto;
    }
    
    .landing-header .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .landing-header .btn-icon {
        margin-right: 10px;
    }
    
    .landing-header a img {
        max-width: 120px;
    }
    
    .dmp-line-float {
        bottom: 100px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}
