/* =====Hero區===== */

/* mobile圖片 */
.hero-1 {
  background: url("../images/about-us/about-us-hero@1x.jpg") center/cover
    no-repeat;
}

/* tablet圖片 */
@media (min-width: 768px) {
  .hero-1 {
    background: url("../images/about-us/about-us-hero@tablet.jpg") center
      center / cover no-repeat;
  }
}

/* desktop圖片 */
@media (min-width: 1024px) {
  .hero-1 {
    background: url("../images/about-us/about-us-hero@desktop.jpg") center
      center / cover no-repeat;
  }
}

:root {
  --text: #0f172a;
  --muted: #475569;
  --line: rgba(15, 23, 42, 0.1);
  --soft: #f8fafc;
  --card: #ffffff;

  --radius: 18px;
  --shadow: 0 10px 26px rgba(2, 6, 23, 0.08);

  --container: 1120px;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    "Noto Sans TC",
    "PingFang TC",
    "Microsoft JhengHei",
    sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.8;
}

a {
  color: inherit;
}
.container {
  width: min(var(--container), 92vw);
  margin: 0 auto;
}

/* ===== topbar ===== */
.topbar {
  padding: 14px 0 10px;
}
.crumbs {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.crumbs a {
  text-decoration: none;
  color: var(--muted);
}
.crumbs a:hover {
  text-decoration: underline;
}

/* ===== layout ===== */
.article {
  padding-bottom: 54px;
}
.content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 992px) {
  .content {
    grid-template-columns: 1fr 280px;
    align-items: start;
  }
}

/* ===== hero ===== */
.hero {
  margin: 8px 0 14px;
}
.hero__cover {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  /* background: #0b0b0b; */
  box-shadow: var(--shadow);
}

/* 封面有字：避免裁切 */
.hero__cover img {
  width: 100%;
  /* height: min(62vh, 560px); */
  display: block;
  object-fit: contain;
  object-position: center;
  /* background: #0b0b0b; */
}

.hero__inner {
  padding: 16px 0 0;
}
.hero__kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.tag {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}
.hero__title {
  font-size: clamp(24px, 6vw, 38px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  font-weight: 900;
}
.hero__subtitle {
  margin: 0 0 12px;
  color: var(--muted);
  max-width: 62ch;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 14px;
  color: #64748b;
}

/* ===== card ===== */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card__body {
  padding: 18px 16px;
}
@media (min-width: 768px) {
  .card__body {
    padding: 22px 22px;
  }
}

.muted {
  color: var(--muted);
}

/* ===== quote ===== */
.quote {
  margin: 16px 0;
  padding: 14px 14px;
  border-left: 4px solid #0f172a;
  background: var(--soft);
}
.quote__who {
  margin-top: 8px;
  color: #64748b;
  font-size: 13px;
}

/* ===== headings ===== */
.card__body h2 {
  margin: 26px 0 10px;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.card__body h3 {
  margin: 18px 0 8px;
  font-size: 16px;
  font-weight: 900;
}
@media (min-width: 768px) {
  .card__body h2 {
    font-size: 22px;
  }
  .card__body h3 {
    font-size: 17px;
  }
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 18px 0;
}

/* ===== BIG FIGURE (最大可用空間展示大圖、不造成水平捲動) ===== */
.figure {
  margin: 18px 0;
}

/* 在卡片內做「擴寬」，而不是 100vw，避免 aside 造成橫向卷軸 */
.figure--bleed {
  width: calc(100% + 32px);
  margin-left: -16px;
  margin-right: -16px;
}
@media (min-width: 768px) {
  .figure--bleed {
    width: calc(100% + 44px);
    margin-left: -22px;
    margin-right: -22px;
  }
}

.figure--contain {
  /* border-radius: 16px; */
  overflow: hidden;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
  aspect-ratio: 16 / 9; /* 你可以改 21/9 或 3/2 */
  max-height: none;
}

.figure--contain img {
  width: 100%;
  height: auto; /* 讓高度跟著圖片比例 */
  object-fit: initial; /* 或直接不寫 object-fit */
  display: block;
  background: transparent;
}

@media (min-width: 1024px) {
  .figure--contain {
    aspect-ratio: 16 / 9;
    max-height: 760px;
  }
}

/* ===== feature cards (摘要卡) ===== */
.feature-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 14px 0 6px;
}
@media (min-width: 768px) {
  .feature-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.fcard {
  display: block;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 14px;
  background: #fff;
}
.fcard:hover {
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.1);
}

.fcard__no {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #eef2ff;
  color: #1d4ed8;
  font-weight: 900;
  margin-bottom: 10px;
}
.fcard__title {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.35;
}
.fcard__desc {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;

  /* 控制摘要高度，避免你遇到的「卡片看起來雜亂」 */
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fcard__more {
  font-size: 13px;
  color: #2563eb;
  font-weight: 800;
}

/* ===== callout ===== */
.callout {
  margin: 14px 0;
  padding: 14px 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.callout__title {
  margin: 0 0 10px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #22c55e;
}
.bullets {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
.bullets li {
  margin: 8px 0;
}

/* ===== cases ===== */
.case-list {
  display: grid;
  gap: 12px;
}
.case {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 14px;
  background: #fff;
}
.case h3 {
  margin-top: 0;
}

/* ===== author ===== */
.author {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

/* ===== aside ===== */
.aside {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 14px;
  background: #fff;
  box-shadow: var(--shadow);
  position: sticky;
  top: 14px;
  height: fit-content;
  display: none;
}
@media (min-width: 992px) {
  .aside {
    display: block;
  }
}
.aside__title {
  margin: 0 0 10px;
  font-weight: 900;
}
.toc {
  list-style: none;
  padding: 0;
  margin: 0;
}
.toc li {
  margin: 8px 0;
}
.toc a {
  text-decoration: none;
  color: var(--muted);
}
.toc a:hover {
  color: var(--text);
  text-decoration: underline;
}
