@charset "utf-8";

/* =========================================================
   嵿鋒 Landing Page
   所有樣式皆限定在 .apex-lp 之下，不影響原網站其他頁面。
   斷點：Desktop >1024px／Tablet 601–1024px／Mobile ≤600px
   ========================================================= */

.apex-lp {
  --apex-lp-gold: #d5ab63;
  --apex-lp-gold-light: #e9cb93;
  --apex-lp-gold-gradient: linear-gradient(to top, #d5ab63, #e9cb93);
  --apex-lp-navy: #09193a;
  --apex-lp-navy-deep: #081427;
  --apex-lp-navy-panel: #091a30;
  --apex-lp-navy-line: #396298;
  --apex-lp-card-bg: #fdfdfa;
  --apex-lp-section-bg: #f7f7f4;
  --apex-lp-text: #333;
  --apex-lp-card-shadow: 0 20px 60px rgb(166 145 103 / 30%);
  --apex-lp-container: 1468px; /* 內容 1436 + 左右內距 16 */
  --apex-lp-gutter: 16px;

  background-color: #fff;
  color: var(--apex-lp-text);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 20px;
  line-height: 1.6;
  overflow-x: hidden;
  text-align: start;
}

.apex-lp *,
.apex-lp *::before,
.apex-lp *::after {
  box-sizing: border-box;
}

/* 用 :where() 讓 reset 特異性為 0，元件樣式不會被它蓋掉 */
.apex-lp :where(h1, h2, h3, p, ul, ol, li) {
  margin: 0;
  padding: 0;
}

.apex-lp :where(ul, ol) {
  list-style: none;
}

.apex-lp img {
  display: block;
  max-width: 100%;
}

.apex-lp-container {
  margin-inline: auto;
  max-width: var(--apex-lp-container);
  padding-inline: var(--apex-lp-gutter);
  width: 100%;
}

/* ---------- 共用：標題 ---------- */

.apex-lp-heading {
  color: var(--apex-lp-navy);
  font-size: 46px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-wrap: balance;
}

.apex-lp-heading--start {
  text-align: start;
}

.apex-lp-heading--light {
  color: #fff;
}

.apex-lp-subheading {
  font-size: 20px;
  margin-block-start: 24px;
  text-align: center;
  text-wrap: balance;
}

.apex-lp-subheading--light {
  color: #fff;
}

/* ---------- 共用：按鈕 ---------- */

.apex-lp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.apex-lp-actions--start {
  justify-content: flex-start;
}

.apex-lp-btn {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 4px;
  display: inline-flex;
  font-size: 20px;
  height: 48px;
  justify-content: center;
  line-height: 1.6;
  text-decoration: none;
  transition: filter .2s ease, background-color .2s ease, color .2s ease;
  width: 226px;
}

.apex-lp-btn--primary {
  background-image: var(--apex-lp-gold-gradient);
  color: #fff;
}

.apex-lp-btn--primary:hover,
.apex-lp-btn--primary:focus-visible {
  filter: brightness(1.06);
}

.apex-lp-btn--outline {
  background-color: #fff;
  border-color: var(--apex-lp-gold);
  color: var(--apex-lp-gold);
  height: 50px;
}

.apex-lp-btn--outline:hover,
.apex-lp-btn--outline:focus-visible {
  background-color: var(--apex-lp-gold);
  color: #fff;
}

/* ---------- 共用：卡片 ---------- */

.apex-lp-card {
  align-items: center;
  background-color: var(--apex-lp-card-bg);
  border: 1px solid var(--apex-lp-gold);
  border-radius: 8px;
  box-shadow: var(--apex-lp-card-shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 40px;
  text-align: center;
}

.apex-lp-card--wide {
  flex-direction: row;
  gap: 24px;
  padding: 40px;
  text-align: start;
}

.apex-lp-card__icon {
  flex-shrink: 0;
  height: 100px;
  width: 100px;
}

.apex-lp-card__title {
  color: var(--apex-lp-navy);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.4;
}

.apex-lp-card__text {
  font-size: 20px;
  line-height: 1.6;
  margin-block-start: 8px;
}

/* 4 步驟卡片的說明文字靠左（標題仍置中） */
.apex-lp-card--step .apex-lp-card__text {
  text-align: start;
}

/* ---------- Hero ---------- */

.apex-lp-hero {
  background-color: var(--apex-lp-navy-deep);
  overflow: hidden;
  position: relative;
}

.apex-lp-hero__media {
  inset-block-start: 0;
  inset-inline-end: 0;
  max-width: 1109px;
  position: absolute;
  width: 57.8%;
}

.apex-lp-hero__media picture img {
  height: auto;
  width: 100%;
}

.apex-lp-hero__logo {
  inset-block-start: 15.4%;
  inset-inline-end: 12.5%;
  position: absolute;
  width: 30%;
}

.apex-lp-hero__inner {
  margin-inline: auto;
  max-width: var(--apex-lp-container);
  padding: 180px var(--apex-lp-gutter) 198px;
  position: relative;
}

.apex-lp-hero__eyebrow {
  border: 1px solid var(--apex-lp-gold);
  border-radius: 4px;
  color: var(--apex-lp-gold);
  display: inline-block;
  font-size: 18px;
  line-height: 1.6;
  padding: 2px 8px;
}

.apex-lp-hero__title {
  color: #fff;
  font-size: 70px;
  font-weight: 700;
  line-height: 1.4;
  margin-block-start: 16px;
}

.apex-lp-hero__title-gold {
  -webkit-background-clip: text;
  background-clip: text;
  background-image: var(--apex-lp-gold-gradient);
  color: transparent;
}

.apex-lp-hero__lead {
  color: #fff;
  font-size: 20px;
  margin-block-start: 8px;
}

.apex-lp-hero__inner .apex-lp-actions {
  justify-content: flex-start;
  margin-block-start: 40px;
}

.apex-lp-stats {
  align-items: center;
  background-color: var(--apex-lp-navy-panel);
  border: 1px solid var(--apex-lp-navy-line);
  border-radius: 4px;
  display: flex;
  gap: 32px;
  margin-block-start: 80px;
  max-width: 792px;
  padding: 24px 32px;
}

.apex-lp-stats__item {
  align-items: center;
  display: flex;
  flex: 1;
  gap: 16px;
}

.apex-lp-stats__item + .apex-lp-stats__item {
  padding-inline-start: 32px;
  position: relative;
}

.apex-lp-stats__item + .apex-lp-stats__item::before {
  background-color: #fff;
  content: "";
  height: 48px;
  inset-block-start: 50%;
  inset-inline-start: 0;
  position: absolute;
  translate: 0 -50%;
  width: 1px;
}

.apex-lp-stats__icon {
  flex-shrink: 0;
  height: 72px;
  width: 72px;
}

.apex-lp-stats__text {
  color: #fff;
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.apex-lp-stats__number {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.6;
}

.apex-lp-stats__label {
  font-size: 18px;
  line-height: 1.6;
}

/* ---------- 2 大核心力 + 4 大創業後盾 ---------- */

.apex-lp-strengths {
  padding-block: 120px;
}

.apex-lp-strengths__core,
.apex-lp-strengths__backing {
  display: grid;
  gap: 16px;
  margin-block-start: 120px;
}

.apex-lp-strengths__core {
  grid-template-columns: repeat(2, 1fr);
}

.apex-lp-strengths__backing {
  grid-template-columns: repeat(4, 1fr);
  margin-block-start: 36px;
}

/* 設計稿的 4 大後盾卡左右內距較窄，內文才排得下單行 */
.apex-lp-strengths__backing .apex-lp-card {
  padding-inline: 22px;
}

/* ---------- 關於嵿鋒 ---------- */

.apex-lp-about {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-block-end: 120px;
}

.apex-lp-about__media img {
  border-radius: 0 8px 8px 0;
  height: auto;
  width: 100%;
}

.apex-lp-about__body {
  max-width: 952px;
  padding-inline-end: 24px;
}

.apex-lp-about__text {
  font-size: 20px;
  margin-block-start: 24px;
}

.apex-lp-about__body .apex-lp-actions {
  margin-block-start: 32px;
}

.apex-lp-about__body .apex-lp-btn {
  width: 258px;
}

/* ---------- 保經創業 4 步驟 ---------- */

.apex-lp-steps {
  background-color: var(--apex-lp-section-bg);
  padding-block: 120px;
}

.apex-lp-steps .apex-lp-container {
  max-width: 1920px;
  padding-inline: 24px;
}

.apex-lp-steps__list {
  align-items: center;
  display: flex;
  gap: 72px;
  justify-content: center;
  margin-block-start: 120px;
}

.apex-lp-steps__list .apex-lp-card {
  flex: 1 1 0;
  justify-content: center;
  min-height: 297px;
  position: relative;
}

/* 步驟之間的箭頭：用偽元素畫，讓 <ol> 只含 4 個步驟項目
   （圖片路徑相對於本 CSS 檔的位置，搬移 CSS 時記得一併調整） */
.apex-lp-steps__list .apex-lp-card + .apex-lp-card::before {
  background: url("assets/icons/arrow.svg") no-repeat center / contain;
  content: "";
  height: 37px;
  inset-block-start: 50%;
  inset-inline-start: -64px;
  position: absolute;
  translate: 0 -50%;
  width: 56px;
}

/* ---------- 五種品牌路徑 ---------- */

.apex-lp-paths {
  padding-block: 120px;
}

.apex-lp-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-block-start: 100px;
  position: relative;
}

.apex-lp-timeline::before {
  background-color: var(--apex-lp-gold);
  content: "";
  height: 2px;
  inset-block-start: 50%;
  inset-inline: 0 3px;
  position: absolute;
  translate: 0 -50%;
}

/* 線末端的箭頭（尖端接在線的末端上） */
.apex-lp-timeline::after {
  border-block-start: 2px solid var(--apex-lp-gold);
  border-inline-end: 2px solid var(--apex-lp-gold);
  content: "";
  height: 14px;
  inset-block-start: 50%;
  inset-inline-end: 3px;
  position: absolute;
  rotate: 45deg;
  translate: 0 -50%;
  width: 14px;
}

.apex-lp-timeline__item {
  display: grid;
  gap: 16px;
  grid-template-rows: 1fr 32px 1fr;
  justify-items: center;
  position: relative;
  text-align: center;
}

.apex-lp-timeline__item::before {
  background-color: var(--apex-lp-gold);
  border: 2px solid #fff;
  border-radius: 50%;
  content: "";
  grid-row: 2;
  height: 32px;
  width: 32px;
}

.apex-lp-timeline__text {
  align-self: end;
  display: flex;
  flex-direction: column;
  grid-row: 1;
}

.apex-lp-timeline__item:nth-child(even) .apex-lp-timeline__text {
  align-self: start;
  grid-row: 3;
}

.apex-lp-timeline__year {
  font-size: 20px;
  line-height: 1.6;
}

.apex-lp-timeline__name {
  color: inherit;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
  text-decoration: none;
  transition: color .2s ease;
}

.apex-lp-timeline__name:hover,
.apex-lp-timeline__name:focus-visible {
  color: var(--apex-lp-gold);
}

/* ---------- 結尾 CTA ---------- */

.apex-lp-cta {
  background-color: var(--apex-lp-navy-deep);
  padding-block: 110px 120px;
  text-align: center;
}

.apex-lp-cta .apex-lp-actions {
  margin-block-start: 40px;
}

/* ---------- 重要聲明 ---------- */

.apex-lp-statement {
  background-color: #f5f5f5;
  font-size: 12px;
  line-height: 1.6;
  padding-block: 80px;
}

.apex-lp-statement__list {
  list-style: decimal;
  padding-inline-start: 18px;
}

/* =========================================================
   Tablet（≤1024px）
   ========================================================= */

@media (max-width: 1024px) {
  .apex-lp {
    font-size: 18px;
  }

  .apex-lp-heading {
    font-size: 30px;
  }

  .apex-lp-subheading {
    font-size: 18px;
  }

  .apex-lp-btn {
    font-size: 18px;
    height: 45px;
  }

  .apex-lp-btn--outline {
    height: 47px;
  }

  /* Hero：改為上圖下文 */
  .apex-lp-hero__media {
    max-width: none;
    position: relative;
    width: 100%;
  }

  .apex-lp-hero__media picture img {
    aspect-ratio: 768 / 422;
    object-fit: cover;
    object-position: center top;
  }

  .apex-lp-hero__logo {
    inset-block-start: 12%;
    inset-inline-end: 6%;
    position: absolute;
    width: 22%;
  }

  .apex-lp-hero__inner {
    padding-block: 26px 40px;
  }

  .apex-lp-hero__title {
    font-size: min(70px, 9.1vw);
  }

  .apex-lp-hero__lead {
    font-size: 20px;
  }

  .apex-lp-stats {
    margin-block-start: 40px;
    max-width: none;
    padding-inline: 17px;
  }

  .apex-lp-stats__icon {
    height: 50px;
    width: 50px;
  }

  .apex-lp-stats__number {
    font-size: 32px;
  }

  .apex-lp-stats__label {
    font-size: 16px;
  }

  /* 6 張卡片：2 欄 */
  .apex-lp-strengths {
    padding-block: 80px;
  }

  .apex-lp-strengths__core,
  .apex-lp-strengths__backing {
    grid-template-columns: repeat(2, 1fr);
    margin-block-start: 80px;
  }

  .apex-lp-strengths__backing {
    margin-block-start: 16px;
  }

  .apex-lp-card,
  .apex-lp-card--wide {
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    min-height: 256px;
    text-align: center;
  }

  .apex-lp-card__title {
    font-size: 22px;
  }

  .apex-lp-card__text {
    font-size: 18px;
  }

  /* 關於嵿鋒：改為上圖下文 */
  .apex-lp-about {
    gap: 80px;
    grid-template-columns: 1fr;
    padding-block-end: 80px;
  }

  .apex-lp-about__media img {
    aspect-ratio: 768 / 576;
    border-radius: 0;
    object-fit: cover;
  }

  /* 窄版的「關於嵿鋒」整區置中 */
  .apex-lp-about__body {
    margin-inline: auto;
    max-width: var(--apex-lp-container);
    padding-inline: var(--apex-lp-gutter);
    text-align: center;
  }

  .apex-lp-about__body .apex-lp-heading {
    text-align: center;
  }

  /* 標題與按鈕置中，內文維持靠左 */
  .apex-lp-about__text {
    text-align: start;
  }

  .apex-lp-about__body .apex-lp-actions {
    justify-content: center;
  }

  .apex-lp-about__body .apex-lp-btn {
    width: 266px;
  }

  .apex-lp-about__text {
    font-size: 18px;
    margin-block-start: 16px;
  }

  /* 4 步驟：改為直式 */
  .apex-lp-steps {
    padding-block: 80px;
  }

  .apex-lp-steps__list {
    flex-direction: column;
    gap: 56px;
    margin-block-start: 80px;
  }

  .apex-lp-steps__list .apex-lp-card {
    max-width: 360px;
    min-height: 285px;
    width: 100%;
  }

  .apex-lp-steps__list .apex-lp-card + .apex-lp-card::before {
    height: 26px;
    inset-block-start: -41px;
    inset-inline-start: 50%;
    rotate: 90deg;
    translate: -50% 0;
    width: 40px;
  }

  /* 時間軸：改為直式 */
  .apex-lp-paths {
    padding-block: 80px 167px;
  }

  .apex-lp-timeline {
    grid-template-columns: 1fr;
    justify-items: center;
    margin-block-start: 80px;
    row-gap: 80px;
  }

  .apex-lp-timeline::before {
    height: auto;
    inset-block: 29px -84px;
    inset-inline-end: auto;
    inset-inline-start: calc(50% - 117px);
    translate: -50% 0;
    width: 2px;
  }

  .apex-lp-timeline::after {
    inset-block-end: -84px;
    inset-block-start: auto;
    inset-inline-end: auto;
    inset-inline-start: calc(50% - 117px);
    rotate: 135deg;
    translate: -50% 0;
  }

  .apex-lp-timeline__item {
    align-items: center;
    column-gap: 34px;
    grid-template-columns: 32px minmax(0, 200px);
    grid-template-rows: none;
    text-align: start;
  }

  .apex-lp-timeline__item::before,
  .apex-lp-timeline__item:nth-child(even)::before {
    grid-column: 1;
    grid-row: 1;
  }

  .apex-lp-timeline__text,
  .apex-lp-timeline__item:nth-child(even) .apex-lp-timeline__text {
    align-self: center;
    grid-column: 2;
    grid-row: 1;
  }

  .apex-lp-timeline__year,
  .apex-lp-timeline__name {
    font-size: 18px;
  }

  .apex-lp-cta {
    padding-block: 80px;
  }

  .apex-lp-statement {
    padding-block: 40px;
  }
}

/* =========================================================
   Hero 統計數據（≤700px）
   三欄橫排在 700px 以下會被擠爆，提前改為直式三列
   ========================================================= */

@media (max-width: 700px) {
  /* 設計稿：文案→按鈕 8px、按鈕→統計數據 24px */
  .apex-lp-hero__inner .apex-lp-actions {
    margin-block-start: 8px;
  }

  .apex-lp-stats {
    flex-direction: column;
    gap: 12px;
    margin-block-start: 24px;
    padding: 17px 16px;
  }

  .apex-lp-stats__item {
    width: 100%;
  }

  .apex-lp-stats__item + .apex-lp-stats__item {
    padding-block-start: 12px;
    padding-inline-start: 0;
  }

  .apex-lp-stats__item + .apex-lp-stats__item::before {
    height: 1px;
    inset-block-start: 0;
    inset-inline-start: 50%;
    translate: -50% 0;
    width: 100%;
  }

  .apex-lp-stats__icon {
    height: 40px;
    width: 40px;
  }

  .apex-lp-stats__number {
    font-size: 24px;
  }
}

/* =========================================================
   Mobile（≤600px）
   ========================================================= */

@media (max-width: 600px) {
  .apex-lp {
    font-size: 16px;
  }

  .apex-lp-heading {
    font-size: 24px;
  }

  .apex-lp-subheading {
    font-size: 16px;
  }

  /* 設計稿手機版在此處斷行，且不帶逗號 */
  .apex-lp-sep {
    display: block;
    font-size: 0;
  }

  /* 兩顆按鈕各佔一半，中間留 16px */
  .apex-lp-btn {
    font-size: 16px;
    height: 42px;
    width: calc(50% - 8px);
  }

  .apex-lp-btn--outline {
    height: 44px;
  }

  .apex-lp-about__body .apex-lp-btn {
    width: 253px;
  }

  /* Hero */
  .apex-lp-hero__media picture img {
    aspect-ratio: 375 / 234;
  }

  .apex-lp-hero__logo {
    inset-block-start: 11%;
    width: 31%;
  }

  .apex-lp-hero__inner {
    padding-block: 16px 40px;
  }

  .apex-lp-hero__eyebrow {
    font-size: 16px;
  }

  .apex-lp-hero__title {
    font-size: 36px;
    margin-block-start: 8px;
  }

  .apex-lp-hero__lead {
    font-size: 16px;
  }

  /* 卡片：單欄 */
  .apex-lp-strengths {
    padding-block: 40px;
  }

  .apex-lp-strengths__core,
  .apex-lp-strengths__backing {
    grid-template-columns: 1fr;
    margin-block-start: 40px;
  }

  .apex-lp-card,
  .apex-lp-card--wide {
    min-height: 247px;
    padding: 40px 24px;
  }

  .apex-lp-card__title {
    font-size: 18px;
  }

  .apex-lp-card__text {
    font-size: 16px;
  }

  .apex-lp-about {
    gap: 22px;
    padding-block-end: 60px;
  }

  /* 標題不留左右內距，「為創業團隊提供可落地的經營支援」才排得下一行 */
  .apex-lp-about__body .apex-lp-heading {
    margin-inline: calc(var(--apex-lp-gutter) * -1);
  }

  .apex-lp-about__text:first-of-type {
    margin-block-start: 40px;
  }

  .apex-lp-about__body .apex-lp-actions {
    margin-block-start: 40px;
  }

  .apex-lp-about__media img {
    aspect-ratio: 375 / 281;
  }

  .apex-lp-steps {
    padding-block: 40px;
  }

  .apex-lp-steps__list {
    margin-block-start: 40px;
  }

  .apex-lp-steps .apex-lp-container {
    padding-inline: var(--apex-lp-gutter);
  }

  .apex-lp-steps__list .apex-lp-card {
    max-width: none;
    min-height: 273px;
  }

  .apex-lp-paths {
    padding-block: 40px 127px;
  }



  .apex-lp-timeline {
    justify-items: start;
    margin-block-start: 40px;
    margin-inline-start: 24px;
    row-gap: 80px;
  }

  .apex-lp-timeline::before {
    inset-inline-start: 16px;
  }


  .apex-lp-timeline::after {
    inset-inline-start: 16px;
  }

  /* 副標不留左右內距，才排得成設計稿的兩行 */
  .apex-lp-paths .apex-lp-subheading {
    margin-inline: calc(var(--apex-lp-gutter) * -1);
  }

  .apex-lp-cta {
    padding-block: 40px;
  }

  .apex-lp-cta .apex-lp-actions {
    margin-block-start: 24px;
  }
}
