/**
 * KOL 網紅頁面樣式
 * @package mytheme
 */

/* ============================================
   Hero 區塊
   ============================================ */
.kol-hero {
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kol-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================
   標題和文字說明區塊
   ============================================ */
.kol-hero-section {
  margin-top: 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.kol-hero-section .home-title-container {
  margin-bottom: 58px;
}

/* ============================================
   KOL 等級分類卡片
   ============================================ */
.kol-tiers-section {
  padding: 0;
}

.kol-tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 55px;
  margin-top: 45px;
  margin-bottom: 70px;
}

.kol-tier-card {
  display: flex;
  flex-direction: column;
  gap: 29px;
  max-width: 518px;
  width: 100%;
}

.kol-title-container {
  position: relative;
}

.kol-tier-title {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  max-width: 368px;
  width: 100%;
  height: 70px;
  color: #000;
  border-radius: 200px;
  border: 1px solid #fff;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 36.9px 2px #20285e;
  backdrop-filter: blur(8px);
  z-index: 1;
}

.kol-tier-subtitle {
  display: block;
  font-size: 22px;
  color: #000;
}

.kol-yellow-image {
  position: absolute;
  top: 7px;
  left: 6px;
  z-index: -1;
  max-width: 368px;
  width: 100%;
  height: 70px;
}

.kol-tier-info {
  display: flex;
  flex-direction: column;
  gap: 22px;
  flex-grow: 1;
}

.kol-tier-item {
  display: flex;
  flex-direction: row;
  gap: 11px;
}

.kol-tier-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.kol-item-label {
  display: flex;
  width: 121px;
  height: 36px;
  padding: 3px 12px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: #000;
  text-align: center;
  font-family: Inter;
  font-size: 20px;
  border-radius: 18px;
  background: #d9d9d9;
}

.kol-item-value {
  color: #fff;
  align-content: center;
}

.kol-stars {
  display: flex;
  gap: 4px;
}

.star {
  font-size: 2rem;
  color: #ffcc00;
  line-height: 1;
}

.star.empty {
  color: #e5e7eb;
}

/* ============================================
   平台差異性區塊
   ============================================ */

.kol-platforms-title {
  color: #ffcc00;
  font-weight: 600;
}

.kol-section-title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: #20285e;
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  padding-bottom: 24px;
}

.kol-section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #20285e 0%, #ffcc00 100%);
  border-radius: 2px;
}

.kol-platforms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 71px 38px;
  margin-top: 40px;
  margin-bottom: 90px;
}

.kol-platform-card {
  transition: all var(--transition-base);
  display: flex;
  flex-direction: row;
  gap: 32px;
  height: 100%;
  position: relative;
  align-items: center;
}

.kol-platform-card:hover {
  box-shadow: 0 8px 24px rgba(32, 40, 94, 0.15);
  transform: translateY(-4px);
}

.kol-platform-title {
  position: relative;
  width: 197px;
  height: 197px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kol-platform-name {
  position: absolute;
  color: #fff;
  margin: 0;
  align-content: center;
}

.kol-platform-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex-grow: 1;
}

.kol-platform-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.kol-info-label {
  width: fit-content;
  font-size: 20px;
  color: #ffcc00;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 8px;
  display: inline-block;
  background: linear-gradient(
      to right,
      #ffcc00 8%,
      #ffcc00 4px,
      transparent 0px,
      transparent 5px
    )
    repeat-x bottom;
  background-size: 5px 1px;
  background-position: 0 100%;
}

.kol-info-value {
  color: #fff;
}

/* ============================================
   排名指標區塊
   ============================================ */

.metrics-bg-img {
  position: absolute;
  top: -286px;
  width: 100%;
  z-index: -1;
}

.metric-h3 {
  display: flex;
  width: 306px;
  height: 54px;
  justify-content: center;
  align-items: center;
  border-radius: 200px;
  border: 1px solid #fff;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 36.9px 2px #20285e;
  backdrop-filter: blur(8px);
  margin-top: 68px;
  margin-bottom: 50px;
}

.kol-metrics-section {
  padding: 210px 0 150px;
  position: relative;
}

.kol-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 50px;
  margin-bottom: 60px;
}

.kol-metric-card {
  text-align: center;
  display: flex;
  flex-direction: row;
  gap: 9px;
  align-items: center;
}

.kol-metric-number {
  display: flex;
  align-items: center;
  justify-content: center;
}

.number-img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100px;
  filter: drop-shadow(0 4px 1px rgb(0, 0, 0, 1));
}

.kol-metric-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kol-metric-title {
  text-align: left;
  margin: 0;
  color: #ffcc00;
  text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.5);
  font-style: normal;
  font-weight: 500;
}

.kol-metric-desc {
  padding-top: 12px;
  background-image:
    radial-gradient(circle, rgba(0, 0, 0, 0.08) 2px, transparent 2px),
    radial-gradient(circle, rgba(0, 0, 0, 0.12) 2px, transparent 2px),
    radial-gradient(circle, rgba(0, 0, 0, 0.15) 2px, transparent 2px),
    radial-gradient(circle, #ffffff 2px, transparent 2px);
  background-position:
    2px 4px,
    3px 3px,
    4px 2px,
    0 0;
  background-size: 8px 2px;
  background-repeat: repeat-x;
  text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.5);
  margin: 0;
  width: 100%;
  max-width: 390px;
}

/* ============================================
   KOL 平台比較區塊
   ============================================ */
.kol-platform-comparison-section {
  padding: 95px 0 280px;
  background-image: url("../../images/KOL平台底圖.webp");
  background-size: cover;
  background-position: center;
  position: relative;
}

.kol-platform-comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 48px;
  position: relative;
  z-index: 1;
  max-width: 1440px;
  width: 100%;
  justify-items: center;
}

/* 分頁點樣式 */
.kol-platform-comparison-dots {
  display: none;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.kol-comparison-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid #fff;
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  padding: 0;
}

.kol-comparison-dot:hover {
  border-color: #fff;
}

.kol-comparison-dot.active {
  background: #fff;
  border-color: #fff;
}

.kol-platform-comparison-card {
  max-width: 400px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 33px;
  border: 1px solid #fff;
  background: linear-gradient(
    180deg,
    rgba(227, 242, 252, 0.25) 0%,
    rgba(102, 102, 102, 0) 100%
  );
  box-shadow: 7px 12px 12.7px rgba(0, 0, 0, 0.25);
}

.kol-comparison-title-container {
  position: relative;
  width: 100%;
  border-bottom: 1px solid #fff;
  background: linear-gradient(180deg, #e3f2fc 0%, rgba(102, 102, 102, 0) 100%);
}

.kol-comparison-title {
  text-align: center;
  height: 64px;
  align-content: center;
}

.white-light-img {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
}

.kol-comparison-content {
  display: flex;
  flex-direction: column;
  gap: 35px;
  flex-grow: 1;
  max-width: 333px;
  margin-bottom: 25px;
}

.kol-comparison-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid #fff;
  padding-top: 20px;
}

.kol-comparison-item:nth-child(1) {
  border-top: none;
  padding-top: 0;
}

.kol-comparison-item h4 {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  text-transform: uppercase;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  width: fit-content;
}

.kol-comparison-item h4 span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 400;
  line-height: 36px;
}

/* 特色 - 背景色 #93C9F7 */
.kol-comparison-item:nth-child(1) h4 span {
  background-color: #93c9f7;
}

/* 適合 - 背景色 #F4DB9A */
.kol-comparison-item:nth-child(2) h4 span {
  background-color: #f4db9a;
}

/* 備註 - 背景色 #B2B2CE */
.kol-comparison-item:nth-child(3) h4 span {
  background-color: #b2b2ce;
}

.kol-comparison-item p {
  color: #fff;
  margin: 0;
  font-weight: 400;
}

/* ============================================
   起吉說明區塊
   ============================================ */
.kol-keepgi-section {
  position: relative;
  padding: 0 0 150px;
  margin-top: -210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-2xl);
}

.keepgi-desc-img {
  position: absolute;
  top: 165px;
  width: 100%;
  z-index: -1;
}

.bottom-big-img {
  position: absolute;
  top: 43rem;
  width: 100%;
  z-index: -1;
}

.kol-keepgi-description-wrapper {
  position: relative;
  width: 100%;
  max-width: 876px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  justify-content: space-between;
  justify-content: center;
}

.kol-keepgi-description {
  flex: 1;
  color: var(--text-color);
  margin: 0;
  padding: 54px 53px 0;
  background-image: url("../../images/缺口黑框背景.webp");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  text-align: center;
  max-width: 799px;
  width: 100%;
  height: 240px;
  margin-bottom: -28px;
  font-weight: 400;
}

.kol-keepgi-bulb {
  position: absolute;
  width: 15%;
  top: 50px;
  right: -38px;
  height: auto;
  flex-shrink: 0;
}

.kol-keepgi-quote-container {
  position: absolute;
  max-width: 818px;
  width: 100%;
  height: 91px;
  background-color: #e3f2fc;
  border: 3px solid #000000;
  bottom: 0;
  z-index: -1;
  transform: translate(25px, 25px);
}

.kol-keepgi-quote {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: #000000;
  margin: 0;
  text-align: center;
  line-height: var(--line-height-relaxed);
}

.kol-keepgi-cta {
  display: flex;
  justify-content: center;
  margin-top: var(--spacing-lg);
}

.back-cicle-img {
  display: none;
}

/* ============================================
   響應式設計
   ============================================ */

@media (max-width: 1440px) {
  .kol-metrics-grid {
    gap: var(--spacing-xl);
    margin-top: 0;
  }

  .kol-tiers-grid {
    gap: 44px;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 30px;
    margin-bottom: 0;
  }

  .kol-platforms-grid {
    gap: var(--spacing-lg);
    grid-template-columns: repeat(2, 1fr);
  }

  .kol-platform-comparison-grid {
    gap: var(--spacing-xl);
    display: grid;
    flex-direction: column;
    flex-wrap: wrap;
  }

  .kol-platform-comparison-dots {
    display: none !important;
  }

  .kol-comparison-content {
    max-width: 295px;
  }

  .kol-platform-comparison-card {
    width: 100%;
    max-width: 350px;
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    transform: none !important;
    z-index: auto !important;
    pointer-events: auto !important;
  }

  .kol-section-title {
    font-size: var(--font-size-2xl);
  }

  .kol-hero-section {
    padding: 80px 0 60px;
  }

  .kol-metrics-section {
    padding: 60px 0;
  }

  .kol-platform-comparison-section {
    padding: 60px 0;
  }

  .kol-tiers-section {
    padding: 0;
  }

  .kol-platforms-section {
    padding: 60px var(--spacing-lg);
  }

  .kol-keepgi-section {
    padding: 0;
    margin: 0;
  }

  .kol-hero-section {
    padding: 60px 0 40px;
  }

  .kol-hero-section .home-title-container {
    margin-bottom: 40px;
    padding: 16px 40px;
    width: 100%;
    height: auto;
  }

  .kol-hero-section .section-dec {
    font-size: var(--font-size-base);
    margin-top: 20px;
  }

  .kol-metrics-section {
    padding: 92px 0 67px;
  }

  .metric-h3 {
    font-size: 14px !important;
    margin: 28px 0;
    width: 100%;
    max-width: 140px;
    height: 28px;
  }

  .kol-platform-comparison-section {
    padding: 25px 0 198px;
  }

  .kol-tiers-section {
    padding: 0;
  }

  .kol-platforms-section {
    padding: 0;
    padding-top: 47.46px;
  }
  .kol-metric-content {
    max-width: 224px;
    width: 100%;
  }

  .kol-keepgi-section {
    padding-bottom: 20px;
    margin: -147px 0 0;
  }

  .kol-section-title {
    font-size: var(--font-size-xl);
    margin-bottom: 32px;
  }

  .kol-tier-title {
    font-size: var(--font-size-lg);
  }

  .kol-tier-subtitle {
    font-size: var(--font-size-base);
  }

  .kol-metric-number {
    font-size: var(--font-size-3xl);
  }

  .kol-platform-icon {
    width: 60px;
    height: 60px;
  }

  .kol-platform-icon img {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 1024px) {
  .kol-comparison-content {
    padding: 0 50px;
  }
}

@media (max-width: 480px) {
  .kol-platform-comparison-section {
    background-image: url("../../images/KOL平台底圖_RWD.webp");
    background-size: cover;
    background-position: center;
    overflow: hidden;
  }

  .kol-hero {
    padding: 0;
  }

  .kol-hero-section {
    padding: 0;
    position: relative;
  }

  .kol-tiers-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .kol-platforms-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .back-cicle-img {
    display: block;
    position: absolute;
    max-width: 135px;
    height: auto;
    top: 160px;
    right: 0;
    z-index: -2;
  }

  .kol-hero-section .home-title-container {
    margin-bottom: 24px;
    padding: 12px 24px;
  }

  .kol-hero-section .home-title {
    font-size: 24px;
  }

  .kol-hero-section .section-dec {
    font-size: var(--font-size-sm);
    max-width: 100%;
  }

  .kol-title-container {
    max-width: 213px;
    width: 100%;
  }

  .kol-tier-card {
    padding: 0;
    width: 100%;
    align-items: center;
    gap: 29.5px;
  }

  .kol-tier-item {
    gap: 6px;
  }

  .star {
    font-size: 18px;
  }

  .kol-tier-info {
    gap: 12.74px;
    width: 100%;
  }

  .kol-tier-title {
    font-size: 14px;
    max-width: 213px;
    width: 100%;
    height: 40px;
  }

  .kol-yellow-image {
    max-width: 213px;
    width: 100%;
    height: 40px;
    top: 6px;
    right: -3.5px;
  }

  .kol-tier-subtitle {
    font-size: var(--font-size-sm);
  }

  .kol-item-label {
    width: 70.077px;
    height: 20.849px;
    font-size: 0.875rem;
    padding: 0;
  }

  .kol-item-value {
    font-size: var(--font-size-sm);
    white-space: nowrap;
  }

  .kol-platform-comparison-grid {
    margin-top: 28px;
    justify-items: center;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 36px;
    width: 100%;
    position: relative;
    height: auto;
    transition: transform 0.5s ease-in-out;
    align-items: stretch;
    padding-left: calc((100% - 235px) / 2);
  }

  .kol-platform-comparison-card {
    max-width: none;
    gap: 16px;
    flex: 0 0 100%;
    width: 100%;
    max-width: 235px;
    position: relative;
    height: auto;
    min-height: 350px;
  }

  /* 分頁點在行動版顯示 */
  .kol-platform-comparison-dots {
    display: flex !important;
    justify-content: center !important;
    gap: 16px !important;
    margin-top: 24px !important;
    width: 100% !important;
  }

  .kol-comparison-dot {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    border: 1px solid #fff !important;
    background: transparent !important;
    cursor: pointer !important;
    transition: all var(--transition-base) !important;
    padding: 0 !important;
  }

  .kol-comparison-dot:hover {
    border-color: #fff !important;
  }

  .kol-comparison-dot.active {
    background: #fff !important;
    border-color: #fff !important;
  }

  .kol-comparison-item {
    padding-top: 9px;
    gap: 4px;
  }

  .kol-comparison-content {
    gap: 18px;
    max-width: 190px;
  }

  .kol-comparison-item h4 {
    gap: 2px;
  }

  .kol-comparison-item h4 span {
    width: 25px;
    height: 25px;
    font-size: 14px;
  }

  .kol-comparison-item p {
    font-size: 12px !important;
  }

  .kol-comparison-title {
    height: 32px;
  }

  .kol-platforms-grid {
    gap: 36px;
    margin-top: 20px;
    margin-bottom: 42px;
  }

  .kol-platform-card {
    gap: 16.88px;
  }

  .kol-platform-title {
    width: 100px;
    height: 100px;
  }

  .kol-info-label {
    font-size: 12px;
    padding-bottom: 1px;
    background: linear-gradient(
        to right,
        #ffcc00 31%,
        #ffcc00 3px,
        transparent 3px,
        transparent 3px
      )
      repeat-x bottom;
    background-size: 4px 1px;
  }

  .keepgi-desc-img {
    display: none;
  }

  .kol-info-value {
    font-size: 12px;
  }

  .kol-platform-name {
    font-size: var(--font-size-base);
  }

  .kol-metrics-grid {
    margin-bottom: 41px;
    grid-template-columns: repeat(1, 1fr);
  }

  .kol-metric-card {
    padding: 0;
    justify-content: space-between;
  }

  .metrics-bg-img {
    display: none;
  }

  .kol-metric-number {
    width: 63px;
    height: auto;
  }

  .number-img {
    width: auto;
    height: 75px;
    font-size: var(--font-size-2xl);
  }

  .kol-metric-title {
    font-size: var(--font-size-base);
    font-weight: 500;
  }

  .kol-metric-desc {
    padding-top: 8px;
    font-size: var(--font-size-xs, 0.75rem);
    font-weight: 400;
  }

  .kol-keepgi-description {
    font-size: 13px !important;
    padding: 22px 29px 28px 22px;
    max-width: 280px;
    height: 174px;
    line-height: 18px;
    margin-bottom: -20px;
  }

  .kol-keepgi-bulb {
    width: 44px;
    height: 40px;
    top: -10px;
    right: -8px;
  }

  .kol-keepgi-quote-container {
    border: 1px solid #000;
    max-width: 288px;
    height: 44px;
    transform: translate(8px, 9px);
  }

  .kol-section-title {
    font-size: var(--font-size-lg);
  }

  .bottom-big-img {
    display: none;
  }
}
