/* 企業沿革頁面專用樣式 */

:root {
  --ah-red: #E0121A;
  --ah-red-dark: #B30E14;
  --ah-red-soft: #FEE2E4;
  --ah-ink: #0E0F11;
  --ah-ink-2: #1A1B1F;
  --ah-paper: #F1F1F4;
  --ah-paper-2: #FAFAFB;
  --ah-muted: #6B7280;
  --ah-muted-2: #9CA3AF;
  --ah-border: #E5E7EB;
  --ah-coral: #F4B0A8;
  --ah-yellow: #FACC15;
  --ah-shadow-card: 0 1px 2px rgba(15,17,21,.04), 0 8px 24px rgba(15,17,21,.06);
  --ah-shadow-card-hover: 0 6px 12px rgba(15,17,21,.06), 0 24px 48px rgba(15,17,21,.10);
  --ah-radius: 14px;
  --ah-radius-lg: 22px;
}

/* ============ INNER PAGE HEADER ============ */
/*
  首頁的 .homepage4-body .vl-transparent-header 是 position:absolute（透明疊層效果）。
  子頁面需讓 header 佔用文件流高度，否則 breadcrumb 會被壓在 header 下方看不見。
*/
.ah-inner-header .vl-transparent-header {
  position: relative !important;
  background: #fff !important;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
/* Sticky 狀態（JS 加 .header-sticky）：改回 fixed */
.ah-inner-header .header-sticky {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  background: #fff !important;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  animation: 0.3s ease-in-out 0s normal none 1 running vlfadeInDown;
  z-index: 100;
}
.ah-inner-header .header-sticky .header-top-area {
  display: none;
}

/* ============ SHARED CONTAINER ============ */
.ah-container {
  width: min(1280px, calc(100% - 80px));
  margin-inline: auto;
}

/* ============ BREADCRUMB ============ */
.ah-breadcrumb {
  background: var(--ah-paper-2);       /* #FAFAFB */
  border-bottom: 1px solid var(--ah-border);  /* #E5E7EB */
}
.ah-breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  font-family: 'Noto Sans TC', 'Host Grotesk', sans-serif;
  font-size: 14px;
  color: var(--ah-muted);              /* #6B7280 */
}
.ah-breadcrumb-inner a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ah-muted);
  text-decoration: none;
  transition: color .15s;
}
.ah-breadcrumb-inner a:hover { color: var(--ah-red); }  /* #E0121A */
.ah-breadcrumb-inner .sep {
  color: #C7CAD0;
  font-size: 14px;
  user-select: none;
  line-height: 1;
}
.ah-breadcrumb-inner .current {
  color: var(--ah-ink);                /* #0E0F11 */
  font-weight: 600;
}

/* ============ HERO ============ */
.ah-hero {
  position: relative;
  background:
    radial-gradient(ellipse 800px 600px at 8% 50%, #F4EFEC 0%, transparent 60%),
    linear-gradient(180deg, #F7F5F2 0%, #FBFAF8 100%);
  overflow: hidden;
  padding: 84px 0 96px;
}
.ah-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.ah-tower-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .35;
  z-index: 1;
}
.ah-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--ah-red);
  letter-spacing: .04em;
  font-family: 'Noto Sans TC', 'Host Grotesk', sans-serif;
  margin-bottom: 22px;
}
.ah-eyebrow .ah-bolt {
  width: 14px; height: 14px;
  background: var(--ah-red);
  clip-path: polygon(40% 0, 100% 0, 60% 45%, 100% 45%, 0 100%, 40% 55%, 0 55%);
  display: inline-block;
}
.ah-hero h1 {
  font-family: 'Noto Sans TC', 'Host Grotesk', sans-serif;
  font-weight: 800;
  font-size: clamp(48px, 6.2vw, 84px);
  line-height: 1.04;
  letter-spacing: -.01em;
  margin: 0 0 28px;
  color: var(--ah-ink);
}
.ah-hero p {
  font-size: 17px;
  line-height: 1.75;
  color: #3F4350;
  max-width: 540px;
  margin: 0 0 18px;
  font-family: 'Noto Sans TC', 'Host Grotesk', sans-serif;
}
.ah-hero-actions {
  display: flex; gap: 14px; align-items: center;
  margin-top: 36px;
}
.ah-btn-primary {
  background: var(--ah-red);
  color: #fff;
  padding: 16px 26px;
  font-weight: 700;
  border-radius: 12px;
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'Noto Sans TC', 'Host Grotesk', sans-serif;
  text-decoration: none;
  transition: background .15s, transform .15s;
}
.ah-btn-primary:hover { background: var(--ah-red-dark); transform: translateY(-1px); color: #fff; }
.ah-btn-ghost {
  padding: 16px 22px;
  font-weight: 700;
  color: var(--ah-ink);
  border-radius: 12px;
  font-family: 'Noto Sans TC', 'Host Grotesk', sans-serif;
  text-decoration: none;
}
.ah-btn-ghost:hover { background: rgba(0,0,0,.04); color: var(--ah-ink); }

.ah-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 56px;
  max-width: 540px;
}
.ah-hero-stat .n {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1;
  font-family: 'Manrope', 'Host Grotesk', sans-serif;
}
.ah-hero-stat .l {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--ah-muted);
  font-family: 'Noto Sans TC', 'Host Grotesk', sans-serif;
}

.ah-hero-art {
  position: relative;
  aspect-ratio: 5/4.4;
  border-radius: 18px;
  overflow: hidden;
  isolation: isolate;
}
.ah-hero-photo {
  position: absolute;
  inset: 0;
  background: #ECECEE;
  z-index: 0;
  overflow: hidden;
}
.ah-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============ SECTION ============ */
.ah-section { padding: 110px 0; position: relative; }
.ah-section.paper { background: var(--ah-paper); }

.ah-section-head {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 64px;
}
.ah-section-head h2 {
  font-family: 'Noto Sans TC', 'Host Grotesk', sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.1;
  letter-spacing: -.01em;
  margin: 14px 0 0;
}
.ah-section-head p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ah-muted);
  font-family: 'Noto Sans TC', 'Host Grotesk', sans-serif;
  margin: 0;
}

/* ============ TIMELINE ============ */
.ah-timeline {
  position: relative;
  padding: 30px 0 20px;
}
.ah-timeline::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, transparent 0%, var(--ah-border) 6%, var(--ah-border) 94%, transparent 100%);
  transform: translateX(-50%);
}
.ah-tl-item {
  display: grid;
  grid-template-columns: 1fr 100px 1fr;
  margin-bottom: 56px;
  align-items: start;
  position: relative;
}
.ah-tl-item:last-child { margin-bottom: 0; }
.ah-tl-item.right .ah-tl-card { grid-column: 3; }
.ah-tl-item.right .ah-tl-spacer { grid-column: 1; }
.ah-tl-item.left .ah-tl-card { grid-column: 1; }
.ah-tl-item.left .ah-tl-spacer { grid-column: 3; }

.ah-tl-axis {
  grid-column: 2;
  position: relative;
  display: grid;
  justify-items: center;
  padding-top: 30px;
}
.ah-tl-dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--ah-red);
  box-shadow: 0 0 0 6px #fff, 0 0 0 8px var(--ah-red-soft);
  position: relative;
  z-index: 2;
}
.ah-tl-year {
  margin-top: 16px;
  font-family: 'Manrope', 'Host Grotesk', sans-serif;
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -.02em;
  color: var(--ah-ink);
}

.ah-tl-card {
  background: #fff;
  border: 1px solid var(--ah-border);
  border-radius: var(--ah-radius-lg);
  padding: 28px 30px 30px;
  box-shadow: var(--ah-shadow-card);
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}
.ah-tl-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ah-shadow-card-hover);
}
.ah-tl-item.left .ah-tl-card { margin-right: 12px; }
.ah-tl-item.right .ah-tl-card { margin-left: 12px; }

.ah-tl-card .ah-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--ah-red);
  background: var(--ah-red-soft);
  padding: 6px 12px;
  border-radius: 999px;
  font-family: 'Manrope', 'Host Grotesk', sans-serif;
  margin-bottom: 16px;
}
.ah-tl-card h3 {
  font-family: 'Noto Sans TC', 'Host Grotesk', sans-serif;
  font-weight: 800;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -.005em;
  color: var(--ah-ink);
  margin: 0 0 12px;
}
.ah-tl-card .biz {
  font-size: 14.5px;
  color: var(--ah-muted);
  font-family: 'Noto Sans TC', 'Host Grotesk', sans-serif;
  line-height: 1.7;
  margin: 0;
}
.ah-tl-card .biz strong {
  color: var(--ah-ink);
  font-weight: 700;
}
.ah-tl-card ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.ah-tl-card ul li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  color: var(--ah-ink);
  font-family: 'Noto Sans TC', 'Host Grotesk', sans-serif;
  line-height: 1.65;
}
.ah-tl-card ul li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ah-red);
  position: absolute;
  left: 8px; top: 9px;
}

.ah-tl-card.featured {
  border-color: transparent;
  background: linear-gradient(180deg, #FFF5F5 0%, #FFFFFF 60%);
  box-shadow: 0 1px 2px rgba(224, 18, 26, .08), 0 14px 36px rgba(224, 18, 26, .12);
}
.ah-tl-card.featured .ah-tag { background: var(--ah-red); color: #fff; }

.ah-meta-img {
  margin-top: 16px;
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  background: #EEF0F2;
}
.ah-meta-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ah-meta-img.cert {
  height: 280px;
  background: #F5EFE2;
}
.ah-meta-img.cert img {
  object-fit: contain;
  padding: 14px;
}
.ah-meta-img.logo-img {
  height: 180px;
  background: #FAFAFB;
  border: 1px solid var(--ah-border);
  display: grid;
  place-items: center;
}
.ah-meta-img.logo-img img {
  width: auto;
  height: 75%;
  max-width: 70%;
  object-fit: contain;
}
.ah-meta-img-row {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 12px;
}
.ah-meta-img-row .ah-meta-img {
  margin-top: 0;
  height: 180px;
}
.ah-meta-img-row .ah-meta-img.afc-img {
  background: #0E0F11;
}
.ah-meta-img-row .ah-meta-img.afc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============ HONORS ============ */
.ah-honors {
  background: #FFFFFF;
  position: relative;
  padding: 110px 0;
}
.ah-honors::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 900px 500px at 90% 20%, rgba(224, 18, 26, .04) 0%, transparent 60%),
    radial-gradient(ellipse 700px 400px at 0% 80%, rgba(250, 204, 21, .05) 0%, transparent 60%);
  pointer-events: none;
}
.ah-honors-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  /* 上緣對齊：右欄（標題＋獎項卡）切齊左欄創辦人照片頂部。
     原為 center，右欄較矮時整體下沉，視覺上與照片不齊。 */
  align-items: start;
  position: relative;
  z-index: 1;
}
.ah-founder-card { position: relative; }
.ah-founder-photo {
  aspect-ratio: 4/5;
  border-radius: var(--ah-radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, #F5F5F7 0%, #E9EAEC 100%);
}
.ah-founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ah-founder-meta {
  margin-top: 20px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}
.ah-founder-name {
  font-family: 'Noto Sans TC', 'Host Grotesk', sans-serif;
  font-weight: 800;
  font-size: 26px;
  color: var(--ah-ink);
}
.ah-founder-role {
  color: var(--ah-muted);
  font-family: 'Noto Sans TC', 'Host Grotesk', sans-serif;
  font-size: 14px;
}

.ah-honor-eyebrow {
  color: var(--ah-red);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
  font-family: 'Noto Sans TC', 'Host Grotesk', sans-serif;
  display: inline-flex; align-items: center; gap: 8px;
}
.ah-honors-grid h2 {
  font-family: 'Noto Sans TC', 'Host Grotesk', sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 3.6vw, 50px);
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 14px 0 18px;
  color: var(--ah-ink);
}
.ah-honors-grid .lead {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ah-muted);
  font-family: 'Noto Sans TC', 'Host Grotesk', sans-serif;
  max-width: 540px;
  margin: 0 0 28px;
}
.ah-awards-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 12px;
}
.ah-award {
  background: #FFFFFF;
  border: 1px solid var(--ah-border);
  border-radius: 14px;
  padding: 24px 18px 22px;
  position: relative;
  overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-shadow: var(--ah-shadow-card);
}
.ah-award:hover {
  border-color: var(--ah-red);
  transform: translateY(-2px);
  box-shadow: var(--ah-shadow-card-hover);
}
.ah-award .ah-award-img {
  width: 100%;
  height: 130px;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.ah-award .ah-award-img img {
  display: block;
  width: auto;
  height: auto;
  max-width: 95%;
  max-height: 100%;
  object-fit: contain;
}
.ah-award .name {
  font-family: 'Noto Sans TC', 'Host Grotesk', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  color: var(--ah-ink);
}
.ah-award .by {
  margin-top: 8px;
  color: #8C8F96;
  font-size: 13px;
  font-family: 'Noto Sans TC', 'Host Grotesk', sans-serif;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .ah-hero-grid,
  .ah-section-head,
  .ah-honors-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .ah-timeline::before { left: 24px; }
  .ah-tl-item { grid-template-columns: 50px 1fr; }
  .ah-tl-item.left .ah-tl-card,
  .ah-tl-item.right .ah-tl-card { grid-column: 2; margin: 0; }
  .ah-tl-item .ah-tl-spacer { display: none; }
  .ah-tl-axis { grid-column: 1; padding-top: 26px; }
  .ah-tl-axis .ah-tl-year { font-size: 22px; }
  .ah-section { padding: 72px 0; }
  .ah-honors { padding: 72px 0; }
}

@media (max-width: 600px) {
  .ah-hero-stats { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .ah-hero-stat .n { font-size: 32px; }
  .ah-awards-list { grid-template-columns: 1fr; }
  .ah-meta-img-row { grid-template-columns: 1fr; }
}
