body main {
  color: #49443e;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei",
    "Heiti TC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body main :where(h1, h2, h3, h4, p, li, a, button, input, select, summary) {
  font-family: inherit;
}

body main :where(h1, h2, h3, h4) {
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

body main :where(p, li) {
  color: #7d766e;
  line-height: 1.75;
}

body main a {
  color: #625b53;
}

.if-bodaq {
  --if-ink: #49443e;
  --if-muted: #7d766e;
  --if-paper: #f2efea;
  --if-gold: #988772;
  --if-border: #d9d3cb;
  --if-card: #fbfaf8;
  color: var(--if-ink);
  max-width: 1440px;
  margin-inline: auto;
  padding: clamp(24px, 5vw, 68px) clamp(16px, 3vw, 36px);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei",
    "Heiti TC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.if-bodaq *,
.if-bodaq *::before,
.if-bodaq *::after {
  box-sizing: border-box;
}

.if-bodaq__header {
  max-width: 820px;
  margin-bottom: clamp(26px, 3.5vw, 38px);
}

.if-bodaq__header h2 {
  margin: 7px 0 12px;
  font-family: inherit;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.if-bodaq__header p {
  max-width: 760px;
  margin: 0;
  color: var(--if-muted);
  font-size: clamp(15px, 1.25vw, 17px);
  font-weight: 400;
  line-height: 1.78;
  letter-spacing: 0.01em;
}

.if-bodaq__eyebrow {
  margin: 0;
  color: var(--if-gold) !important;
  font-size: 11px !important;
  font-weight: 700;
  line-height: 1.4 !important;
  letter-spacing: 0.18em !important;
}

.if-bodaq__series-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}

.if-bodaq__series-nav a {
  border: 1px solid var(--if-border);
  border-radius: 999px;
  background: var(--if-card);
  color: var(--if-ink);
  padding: 8px 13px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease,
    color 160ms ease, transform 160ms ease;
}

.if-bodaq__series-nav a:hover,
.if-bodaq__series-nav a:focus-visible,
.if-bodaq__series-nav a[aria-current="page"] {
  border-color: #625b53;
  background: #625b53;
  color: #fff;
}

.if-bodaq__series-nav a:hover {
  transform: translateY(-1px);
}

.if-bodaq__tools {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr);
  gap: 14px;
  padding: 14px 0 18px;
  background: color-mix(in srgb, #fff 92%, transparent);
  backdrop-filter: blur(12px);
}

.if-bodaq__tools label {
  display: grid;
  gap: 7px;
  color: var(--if-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.04em;
}

.if-bodaq__tools input,
.if-bodaq__tools select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--if-border);
  border-radius: 12px;
  background: var(--if-card);
  color: var(--if-ink);
  padding: 11px 14px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 450;
  line-height: 1.5;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.if-bodaq__tools input:focus,
.if-bodaq__tools select:focus {
  outline: 0;
  border-color: var(--if-gold);
  box-shadow: 0 0 0 3px rgb(152 135 114 / 18%);
}

.if-bodaq__status {
  margin: 8px 0 18px;
  color: var(--if-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

.if-bodaq__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: clamp(12px, 1.7vw, 19px);
}

.if-bodaq__card {
  appearance: none;
  overflow: hidden;
  display: block;
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: var(--if-card);
  color: inherit;
  padding: 0;
  font-family: inherit;
  text-align: left;
  box-shadow: 0 7px 24px rgb(73 68 62 / 8%);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.if-bodaq__card:hover,
.if-bodaq__card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 13px 30px rgb(73 68 62 / 14%);
}

.if-bodaq__card img {
  display: block;
  width: 100%;
  aspect-ratio: 20 / 27;
  object-fit: cover;
}

.if-bodaq__meta {
  display: grid;
  gap: 4px;
  padding: 12px 13px 14px;
}

.if-bodaq__meta strong {
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.015em;
  font-variant-numeric: tabular-nums;
}

.if-bodaq__meta small {
  overflow: hidden;
  color: var(--if-muted);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 450;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.if-bodaq__more {
  display: block;
  min-width: 190px;
  margin: 32px auto 0;
  border: 1px solid var(--if-ink);
  border-radius: 999px;
  background: transparent;
  color: var(--if-ink);
  padding: 12px 24px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.45;
  cursor: pointer;
}

.if-bodaq__model-index {
  margin: 40px 0 0;
  border: 1px solid var(--if-border);
  border-radius: 14px;
  background: var(--if-card);
  padding: 0 18px;
}

.if-bodaq__model-index summary {
  padding: 16px 0;
  font-size: 14.5px;
  font-weight: 650;
  line-height: 1.55;
  cursor: pointer;
}

.if-bodaq__model-index ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px 12px;
  margin: 0;
  padding: 0 0 20px;
  list-style: none;
}

.if-bodaq__model-index a {
  color: var(--if-ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  text-decoration: underline;
  text-decoration-color: var(--if-border);
  text-underline-offset: 3px;
}

.if-bodaq__consult {
  margin-top: 32px;
  border-radius: 14px;
  background: var(--if-paper);
  padding: clamp(20px, 4vw, 36px);
}

.if-bodaq__consult h2 {
  margin-top: 0;
  font-family: inherit;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.if-bodaq__consult p {
  font-size: 15px;
  line-height: 1.78;
}

.if-bodaq__consult p:last-child {
  margin-bottom: 0;
}

.if-bodaq__modal[hidden] {
  display: none;
}

.if-bodaq__modal {
  position: fixed;
  z-index: 100000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
}

.if-bodaq__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgb(0 0 0 / 78%);
  cursor: pointer;
}

.if-bodaq__dialog {
  position: relative;
  z-index: 1;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  width: min(1040px, 100%);
  max-height: calc(100vh - 36px);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 30px 90px rgb(0 0 0 / 35%);
}

.if-bodaq__dialog > img {
  width: 100%;
  height: min(82vh, 850px);
  object-fit: contain;
  background: var(--if-paper);
}

.if-bodaq__dialog-copy {
  align-self: center;
  padding: clamp(24px, 5vw, 54px);
}

.if-bodaq__dialog-copy p {
  color: var(--if-gold);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.16em;
}

.if-bodaq__dialog-copy h3 {
  margin: 8px 0;
  font-family: inherit;
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.if-bodaq__dialog-copy span {
  display: block;
  color: var(--if-muted);
  font-size: 14px;
  line-height: 1.65;
}

.if-bodaq__dialog-copy a {
  display: inline-flex;
  justify-content: center;
  margin-top: 28px;
  border-radius: 999px;
  background: var(--if-ink);
  color: #fff;
  padding: 13px 22px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
  text-decoration: none;
}

.if-bodaq__close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 88%);
  color: #111;
  font-family: inherit;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.if-bodaq-modal-open {
  overflow: hidden;
}

@media (max-width: 700px) {
  .if-bodaq {
    padding: 28px 14px 48px;
    font-size: 14.5px;
  }

  .if-bodaq__header {
    margin-bottom: 26px;
  }

  .if-bodaq__header h2 {
    margin-bottom: 12px;
    font-size: clamp(27px, 8.5vw, 35px);
    line-height: 1.25;
    letter-spacing: -0.02em;
  }

  .if-bodaq__header p {
    font-size: 14.5px;
    line-height: 1.75;
  }

  .if-bodaq__series-nav {
    gap: 7px;
    margin-bottom: 20px;
  }

  .if-bodaq__series-nav a {
    padding: 7px 11px;
    font-size: 12px;
  }

  .if-bodaq__tools {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-block: 10px 14px;
  }

  .if-bodaq__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .if-bodaq__card {
    border-radius: 11px;
  }

  .if-bodaq__meta {
    padding: 10px 11px 12px;
  }

  .if-bodaq__meta strong {
    font-size: 16px;
  }

  .if-bodaq__meta small {
    font-size: 11px;
  }

  .if-bodaq__model-index {
    margin-top: 32px;
    padding-inline: 14px;
  }

  .if-bodaq__consult {
    padding: 22px 18px;
  }

  .if-bodaq__dialog {
    overflow-y: auto;
    grid-template-columns: 1fr;
  }

  .if-bodaq__dialog > img {
    height: 60vh;
  }
}
