.about-content {
  width: 100%;
  padding: 34px clamp(22px, 5vw, 56px);
  background: #fff;
  border: 1px solid var(--line);
  border-top: var(--accent-bar-lg) solid var(--color-brand);
}

.about-content section {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.about-content section + section {
  margin-top: 52px;
}

/* 區塊標題比照 V4 panel 標題：整列深藍粗底線。 */
.about-content h2 {
  margin: 0 0 22px;
  padding-bottom: 14px;
  color: var(--color-brand);
  border-bottom: var(--accent-bar-md) solid var(--color-brand);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: var(--font-weight-heading);
  letter-spacing: -0.04em;
}

.about-content h3 {
  margin: 28px 0 8px;
  color: var(--color-brand);
  font-size: 20px;
  font-weight: var(--font-weight-heading);
}

.about-content p {
  margin: 0 0 16px;
  color: #334155;
}

.about-content ul {
  display: grid;
  gap: 13px;
  padding-left: 1.4rem;
  margin: 0;
}

.about-content li {
  padding-left: 4px;
}

.about-content li::marker {
  color: var(--orange);
}

.about-audience-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.about-audience-item {
  padding: 24px 18px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-top: var(--accent-bar-md) solid var(--color-accent);
}

/* 圖示底框比照 V4 icon-circle：淡橘方塊。 */
.about-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  color: var(--color-accent-dark);
  background: var(--color-accent-soft);
  place-items: center;
}

.about-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.about-audience-item h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.about-audience-item p {
  margin: 0;
  color: #64748b;
  font-size: 15px;
}

.about-scope-title {
  margin-top: 40px;
}

.about-scope-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.about-scope-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  color: var(--color-brand);
  background: var(--color-brand-soft);
  border-left: var(--accent-bar-md) solid var(--color-accent);
}

.about-scope-item span {
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
}

.about-core-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.about-core-item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding: 28px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  transition: background-color 0.24s ease;
}

.about-core-item::before {
  position: absolute;
  top: 0;
  right: 28px;
  width: 54px;
  height: 4px;
  background: var(--color-accent);
  content: "";
}

.about-core-item:hover {
  background: var(--color-brand-soft);
}

.about-core-icon {
  display: grid;
  width: 58px;
  height: 58px;
  color: #fff;
  background: var(--color-brand-secondary);
  place-items: center;
}

.about-core-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.about-core-item h3 {
  margin: 0 0 9px;
  font-size: 20px;
}

.about-core-item p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #64748b;
}

@media (max-width: 991px) {
  .about-audience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .about-content {
    padding: 25px 20px;
  }

  .about-audience-grid,
  .about-scope-grid,
  .about-core-grid {
    grid-template-columns: 1fr;
  }

  .about-audience-item {
    padding: 20px 16px;
  }

  .about-core-item {
    gap: 16px;
    padding: 22px 18px;
  }

  .about-core-icon {
    width: 50px;
    height: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-core-item {
    transition: none;
  }
}

/* ============================================================
   任務30：後台富文字內容（API 模式）
   後台內容沒有 section 外框，結構為 h2／p／清單；清單以 class 標記（about-audience-list、
   about-scope-list、about-core-list），由下方樣式排回與上方靜態版相同的 V4 卡片。
   圖示依 li 的 class 以 CSS mask 顯示（frontend/site/assets/images/icons/），無對應 class 的項目不顯示圖示。
   ============================================================ */

.about-content h2 {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.about-content h2:not(:first-child) {
  margin-top: 52px;
}

.about-content :is(.about-audience-list, .about-scope-list, .about-core-list) {
  display: grid;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.about-content :is(.about-audience-list, .about-scope-list, .about-core-list) > li {
  position: relative;
  padding-left: 0;
}

.about-content :is(.about-audience-list, .about-core-list) > li > strong {
  display: block;
  margin-bottom: 8px;
  color: var(--color-brand);
}

.about-content :is(.about-audience-list, .about-core-list) > li > br {
  display: none;
}

/* 服務對象：圖示卡片 */
.about-content .about-audience-list {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.about-content .about-audience-list > li {
  padding: 98px 18px 24px;
  color: #64748b;
  font-size: 15px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-top: var(--accent-bar-md) solid var(--color-accent);
}

.about-content .about-audience-list > li > strong {
  font-size: 18px;
}

.about-content .about-audience-list > li::before,
.about-content .about-core-list > li::before {
  position: absolute;
  width: 58px;
  height: 58px;
  content: "";
}

.about-content .about-audience-list > li::before {
  top: 24px;
  left: calc(50% - 29px);
  background: var(--color-accent-soft);
}

/* 圖示本體：以 mask 套色，未指定圖示的項目不產生 ::after */
.about-content :is(.about-audience-list, .about-core-list) > li[class]::after {
  position: absolute;
  width: 30px;
  height: 30px;
  content: "";
  -webkit-mask: var(--about-icon) center / contain no-repeat;
  mask: var(--about-icon) center / contain no-repeat;
}

.about-content .about-audience-list > li[class]::after {
  top: 38px;
  left: calc(50% - 15px);
  background: var(--color-accent-dark);
}

.about-content .about-audience-enterprise { --about-icon: url("../images/icons/about-audience-enterprise.svg"); }
.about-content .about-audience-employee { --about-icon: url("../images/icons/about-audience-employee.svg"); }
.about-content .about-audience-jobseeker { --about-icon: url("../images/icons/about-audience-jobseeker.svg"); }
.about-content .about-audience-school { --about-icon: url("../images/icons/about-audience-school.svg"); }
.about-content .about-audience-government { --about-icon: url("../images/icons/about-audience-government.svg"); }

/* 服務範圍：編號方塊 */
.about-content .about-scope-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
  counter-reset: about-scope;
}

.about-content .about-scope-list > li {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  color: var(--color-brand);
  font-weight: 700;
  background: var(--color-brand-soft);
  border-left: var(--accent-bar-md) solid var(--color-accent);
  counter-increment: about-scope;
}

.about-content .about-scope-list > li::before {
  color: var(--orange);
  content: counter(about-scope, decimal-leading-zero);
  font-size: 13px;
  font-weight: 900;
}

/* 核心服務：左側深藍圖示卡片，hover 淡藍底（與靜態版一致） */
.about-content .about-core-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.about-content .about-core-list > li {
  min-height: 114px;
  padding: 28px 28px 28px 106px;
  color: #64748b;
  background:
    linear-gradient(var(--color-accent), var(--color-accent)) right 28px top 0 / 54px 4px no-repeat,
    #fff;
  border: 1px solid var(--line);
  transition: background-color 0.24s ease;
}

.about-content .about-core-list > li:hover {
  background-color: var(--color-brand-soft);
}

.about-content .about-core-list > li > strong {
  margin-bottom: 9px;
  font-size: 20px;
}

.about-content .about-core-list > li::before {
  top: 28px;
  left: 28px;
  background: var(--color-brand-secondary);
}

.about-content .about-core-list > li[class]::after {
  top: 42px;
  left: 42px;
  background: #fff;
}

.about-content .about-core-talent { --about-icon: url("../images/icons/about-core-talent.svg"); }
.about-content .about-core-transformation { --about-icon: url("../images/icons/about-core-transformation.svg"); }
.about-content .about-core-resource-map { --about-icon: url("../images/icons/about-core-resource-map.svg"); }
.about-content .about-core-exchange { --about-icon: url("../images/icons/about-core-exchange.svg"); }

@media (max-width: 991px) {
  .about-content .about-audience-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .about-content :is(.about-audience-list, .about-scope-list, .about-core-list) {
    grid-template-columns: 1fr;
  }

  .about-content .about-audience-list > li {
    padding: 94px 16px 20px;
  }

  .about-content .about-core-list > li {
    padding: 22px 18px 22px 84px;
  }

  .about-content .about-core-list > li::before {
    top: 22px;
    left: 18px;
    width: 50px;
    height: 50px;
  }

  .about-content .about-core-list > li[class]::after {
    top: 32px;
    left: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-content .about-core-list > li {
    transition: none;
  }
}
