/* =====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;
}
@media (min-width: 768px) {
  .card__body h2 {
    font-size: 22px;
  }
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 18px 0;
}

/* ===== BIG FIGURE：最大可用寬度展示大圖（橫幅 + 高度更高） ===== */
.figure {
  margin: 18px 0;
}

/* 在 card 內做「左右擴寬」，但不會造成水平捲動 */
.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 stack (details) ===== */
.feature-stack {
  display: grid;
  gap: 12px;
  margin: 14px 0 6px;
}

.feature {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.feature__summary {
  list-style: none;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 14px 14px;
  cursor: pointer;
}
.feature__summary::-webkit-details-marker {
  display: none;
}

.feature__no {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #eef2ff;
  color: #1d4ed8;
  font-weight: 900;
}

.feature__title {
  font-weight: 900;
  line-height: 1.35;
}

.feature__hint {
  font-size: 12px;
  color: #64748b;
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 999px;
}

.feature__body {
  padding: 0 14px 14px;
  color: var(--muted);
}
.feature__body p {
  margin: 10px 0 0;
}

/* ===== 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;
}

/* ===== stats ===== */
.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 14px 0;
}
@media (min-width: 640px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
.stat {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 14px;
  background: #fff;
}
.stat__num {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
}
.stat__label {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

/* ===== 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;
}
