/* ============================================================
   HKOEA — Page Sections
   ============================================================ */

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  padding-block: clamp(64px, 10vw, 132px) clamp(56px, 8vw, 104px);
  overflow: hidden;
  isolation: isolate;
}

/* 背景：金色網格 + 雙徑向光暈 */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line2) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 78%);
  opacity: 0.55;
}

.hero__bg::after {
  content: "";
  position: absolute;
  top: -22%;
  left: 50%;
  width: min(1100px, 140%);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(
    circle,
    rgba(217, 180, 81, 0.16) 0%,
    rgba(217, 180, 81, 0.05) 34%,
    transparent 66%
  );
  filter: blur(10px);
}

html[data-theme="light"] .hero__bg::after {
  background: radial-gradient(
    circle,
    rgba(160, 124, 28, 0.13) 0%,
    rgba(160, 124, 28, 0.04) 36%,
    transparent 68%
  );
}

.hero__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  font-size: 0.78rem;
  color: var(--gold);
  margin-bottom: clamp(22px, 3vw, 34px);
}

.hero__badge .dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(217, 180, 81, 0.16);
  font-size: 0.55rem;
}

.hero h1 {
  max-width: 15ch;
  margin-bottom: clamp(20px, 2.6vw, 30px);
}

.hero h1 .line {
  display: block;
}

.hero__sub {
  max-width: 58ch;
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  line-height: 1.6;
  color: var(--ink2);
  margin-bottom: clamp(30px, 4vw, 42px);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: clamp(40px, 6vw, 68px);
}

/* ---- Hero 統計條 ---- */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line2);
  border: 1px solid var(--line2);
  border-radius: 14px;
  overflow: hidden;
}

.hero__stats > div {
  background: var(--bg);
  padding: clamp(18px, 2.4vw, 27px) clamp(14px, 2vw, 24px);
}

.stat__num {
  font-size: clamp(1.6rem, 2.8vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--gold);
  display: block;
  margin-bottom: 8px;
}

.stat__label {
  font-size: 0.79rem;
  color: var(--muted);
  line-height: 1.45;
  display: block;
}

/* ============================================================
   區塊標題頭
   ============================================================ */

.sec-head {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 62px);
}

.sec-head--center {
  margin-inline: auto;
  text-align: center;
}

.sec-head--center .eyebrow {
  justify-content: center;
}

.sec-head h2 {
  margin-bottom: 16px;
}

.sec-head--split {
  max-width: none;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(20px, 4vw, 60px);
  align-items: end;
}

/* ============================================================
   問題陳述（三欄痛點）
   ============================================================ */

.pain {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
}

.pain__item {
  padding: clamp(22px, 2.6vw, 30px);
  border: var(--hair);
  border-radius: var(--radius);
  background: var(--panel);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.pain__item::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.pain__item:hover {
  border-color: var(--line);
}

.pain__item:hover::before {
  opacity: 1;
}

.pain__num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  display: block;
  margin-bottom: 16px;
}

.pain__item h3 {
  margin-bottom: 12px;
}

.pain__item p {
  font-size: 0.925rem;
  color: var(--ink2);
  line-height: 1.62;
}

/* ============================================================
   職能卡（首頁預覽 + /roles 頁）
   ============================================================ */

.role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 22px);
}

.role-card {
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2.4vw, 28px);
  border: var(--hair);
  border-radius: var(--radius);
  background: var(--panel);
  position: relative;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
  overflow: hidden;
  min-height: 100%;
}

.role-card:hover {
  border-color: var(--line);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.role-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.role-card__code {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.role-card__demand {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 5px;
  border: 1px solid var(--line);
  color: var(--gold);
  white-space: nowrap;
}

.role-card__demand[data-d="steady"] {
  border-color: var(--line2);
  color: var(--muted);
}

.role-card h3 {
  font-size: clamp(1.08rem, 1.45vw, 1.26rem);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.role-card__sum {
  font-size: 0.895rem;
  color: var(--ink2);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.role-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: var(--hair);
}

.role-card__salary {
  font-size: 0.86rem;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.role-card__salary span {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 400;
  margin-left: 4px;
}

.role-card__arrow {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line2);
  color: var(--muted);
  transition: all 0.26s var(--ease);
  flex-shrink: 0;
}

.role-card:hover .role-card__arrow {
  border-color: var(--gold);
  color: var(--gold);
  transform: translate(2px, -2px);
}

/* ---- 篩選 chips ---- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.chip {
  padding: 9px 17px;
  border-radius: 999px;
  border: 1px solid var(--line2);
  background: transparent;
  color: var(--ink2);
  font-size: 0.855rem;
  transition: all 0.24s var(--ease);
}

.chip:hover {
  border-color: var(--line);
  color: var(--ink);
}

.chip[aria-pressed="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: #0b0b0c;
  font-weight: 600;
}

html[data-theme="light"] .chip[aria-pressed="true"] {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
  color: #fff;
}

.empty {
  padding: 56px 24px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line2);
  border-radius: var(--radius);
  grid-column: 1 / -1;
}

/* ============================================================
   三層驗證流程
   ============================================================ */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 22px);
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 30px;
}

.step__line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--line2);
}

.step__line::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.9s var(--ease);
}

.step.is-in .step__line::after {
  width: 100%;
}

.step__num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  display: block;
  margin-bottom: 14px;
}

.step h3 {
  font-size: clamp(1.06rem, 1.4vw, 1.22rem);
  margin-bottom: 12px;
}

.step p {
  font-size: 0.92rem;
  color: var(--ink2);
  line-height: 1.62;
  margin-bottom: 16px;
}

.step__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step__list li {
  display: flex;
  gap: 9px;
  font-size: 0.855rem;
  color: var(--muted);
  line-height: 1.5;
}

.step__list li::before {
  content: "";
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  margin-top: 7px;
  border-radius: 999px;
  background: var(--gold);
  opacity: 0.6;
}

/* ============================================================
   認證等級
   ============================================================ */

.cert-levels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line2);
  border: 1px solid var(--line2);
  border-radius: var(--radius);
  overflow: hidden;
}

.cert-level {
  background: var(--bg);
  padding: clamp(22px, 2.6vw, 32px) clamp(18px, 2vw, 26px);
  transition: background-color 0.3s var(--ease);
}

.cert-level:hover {
  background: var(--panel);
}

.cert-level__badge {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1px solid var(--line);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}

.cert-level h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.cert-level p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ============================================================
   案例 / 引述
   ============================================================ */

.quotes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 22px);
}

.quote {
  padding: clamp(24px, 3vw, 36px);
  border: var(--hair);
  border-radius: var(--radius);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.quote__txt {
  font-size: clamp(0.98rem, 1.25vw, 1.08rem);
  line-height: 1.62;
  color: var(--ink);
  letter-spacing: -0.008em;
  flex: 1;
}

.quote__by {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: var(--hair);
}

.quote__av {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--panel2);
  border: 1px solid var(--line);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  flex-shrink: 0;
}

.quote__who b {
  display: block;
  font-size: 0.87rem;
  font-weight: 550;
}

.quote__who span {
  font-size: 0.79rem;
  color: var(--muted);
}

/* ============================================================
   FAQ（accordion）
   ============================================================ */

.faq {
  max-width: 860px;
  margin-inline: auto;
  border-top: var(--hair);
}

.faq details {
  border-bottom: var(--hair);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  font-size: clamp(0.98rem, 1.3vw, 1.08rem);
  font-weight: 500;
  list-style: none;
  transition: color 0.22s var(--ease);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: var(--gold);
}

.faq summary .ico {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line2);
  font-size: 0.9rem;
  color: var(--muted);
  transition: transform 0.28s var(--ease), border-color 0.24s var(--ease),
    color 0.24s var(--ease);
}

.faq details[open] summary .ico {
  transform: rotate(45deg);
  border-color: var(--gold);
  color: var(--gold);
}

.faq__body {
  padding: 0 40px 24px 0;
  color: var(--ink2);
  font-size: 0.93rem;
  line-height: 1.68;
}

/* ============================================================
   CTA 帶
   ============================================================ */

.cta-band {
  position: relative;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--line);
  padding: clamp(36px, 5.5vw, 74px) clamp(24px, 4vw, 60px);
  overflow: hidden;
  background: var(--panel);
  text-align: center;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: -60% 50% auto auto;
  width: 640px;
  height: 640px;
  transform: translateX(50%);
  background: radial-gradient(circle, rgba(217, 180, 81, 0.16), transparent 62%);
  pointer-events: none;
}

.cta-band h2 {
  margin-bottom: 16px;
  position: relative;
}

.cta-band p {
  max-width: 52ch;
  margin: 0 auto clamp(26px, 3.5vw, 36px);
  color: var(--ink2);
  position: relative;
}

.cta-band .hero__cta {
  justify-content: center;
  margin-bottom: 0;
  position: relative;
}

/* ============================================================
   頁面標題（內頁）
   ============================================================ */

.page-head {
  padding-block: clamp(52px, 7vw, 92px) clamp(36px, 5vw, 58px);
  border-bottom: var(--hair);
  position: relative;
  overflow: hidden;
}

.page-head::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(217, 180, 81, 0.11), transparent 64%);
  pointer-events: none;
}

.page-head h1 {
  margin-bottom: 18px;
  max-width: 20ch;
}

.page-head .lead {
  max-width: 62ch;
}

.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.79rem;
  color: var(--muted);
  margin-bottom: 22px;
}

.crumb a:hover {
  color: var(--gold);
}

.crumb span {
  opacity: 0.45;
}

/* ============================================================
   響應式
   ============================================================ */

@media (max-width: 1024px) {
  .role-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cert-levels {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .pain,
  .steps,
  .quotes {
    grid-template-columns: 1fr;
  }

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

  .sec-head--split {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 620px) {
  .role-grid {
    grid-template-columns: 1fr;
  }

  .cert-levels {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: none;
  }

  .hero__cta .btn {
    flex: 1 1 100%;
  }
}

/* ---- 抽屜 CTA / footer 內部分行 ---- */
.drawer-cta {
  display: block;
  margin-top: 18px;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--gold);
  color: #0b0b0b !important;
  text-align: center;
  font-weight: 600;
  border: 0 !important;
}

html[data-theme="light"] .drawer-cta {
  background: var(--gold-deep);
  color: #fff !important;
}

.small-line {
  display: inline;
}

.footer-col a .fl {
  display: inline;
}

.partner-strip .ps {
  display: inline;
}

.footer-bottom .fb {
  display: inline;
}

/* ---- 目錄頁薪酬長條填色 -- */

/* ============================================================
   Hero 信任憑證
   ============================================================ */

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: clamp(22px, 3vw, 34px);
}

.hero__trust .hero__badge {
  margin-bottom: 0;
}

.hero__badge--lic {
  border-color: var(--line2);
  color: var(--muted);
  font-size: 0.755rem;
  padding-right: 14px;
}

.hero__badge--lic .dot {
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold);
}

html[data-theme="light"] .hero__badge--lic .dot {
  background: rgba(21, 21, 23, 0.06);
}

@media (max-width: 620px) {
  .hero__trust {
    gap: 7px;
  }

  .hero__badge,
  .hero__badge--lic {
    font-size: 0.71rem;
    padding: 6px 12px 6px 8px;
  }
}

/* ============================================================
   職能卡：中文名稱副行（靜態預渲染時輸出，供搜尋引擎讀取）
   ============================================================ */

.role-card__zh {
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-top: -4px;
}

/* ============================================================
   直接答案區（GEO）
   ------------------------------------------------------------
   為答案引擎而設的短段落區塊。視覺上刻意低調：無動畫、無漸變，
   只用細框與分欄，避免搶走主線注意力，同時讓每段可被獨立引用。
   ============================================================ */

.answer {
  border-top: var(--hair);
  border-bottom: var(--hair);
  background: var(--panel2);
}

.answer__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line2);
  border: var(--hair);
  border-radius: var(--radius);
  overflow: hidden;
}

.answer__item {
  background: var(--panel2);
  padding: clamp(20px, 2.4vw, 30px);
}

.answer__item h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 9px;
  letter-spacing: 0.005em;
}

.answer__item p {
  font-size: 0.875rem;
  line-height: 1.68;
  color: var(--ink2);
  margin: 0;
}

.answer__note {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.03em;
  line-height: 1.6;
  color: var(--muted);
}

@media (max-width: 760px) {
  .answer__grid {
    grid-template-columns: 1fr;
  }
}
