:root {
  --navy: #05244a;
  --body-blue: #304b76;
  --date-blue: #91a0bd;
  --gold: #b47800;
  --gold-soft: #fff2c9;
  --gold-line: #efb514;
  --tag-blue: #e8eef7;
  --ink: #050505;
  --line: #d9dfe7;
  --surface: #fcfcfc;
  --page: #f6f8f9;
  --blue: #304b76;
  --muted: #91a0bd;
  --yellow: #ffbb1c;
}

* { box-sizing: border-box; }
html { overflow-anchor: none; }
body {
  margin: 0;
  color: var(--navy);
  background: var(--page);
  font-family: "Mulish", Arial, "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.utility-bar { height: 48px; color: #1b242b; background: #ffbb1c; }
.utility-inner, .search-header-inner {
  width: min(1025px, calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}
.resources-hero, .controls-main, .popular-tags, .latest-updates {
  width: min(1110px, calc(100% - 40px));
  margin-inline: auto;
}
.utility-inner, .search-header-inner {
  justify-content: space-between;
}
.utility-nav, .account-nav { display: flex; align-items: center; }
.utility-nav { gap: 31px; }
.account-nav { gap: 20px; }
.utility-nav a, .account-nav a {
  color: #111; font-size: 12px; line-height: 1; font-weight: 700;
  text-decoration: none; white-space: nowrap;
}
.utility-link { display: inline-flex; align-items: center; gap: 6px; }
.globe-icon, .quick-icon {
  width: 11px; height: 11px; display: inline-block; border: 1.5px solid currentColor;
  border-radius: 50%; position: relative;
}
.globe-icon::before { content: ""; position: absolute; left: 4px; top: -1px; width: 1px; height: 10px; background: currentColor; }
.phone-icon { width: 10px; height: 10px; display: inline-block; border-left: 2px solid; border-bottom: 2px solid; border-radius: 0 0 0 8px; transform: rotate(-35deg); }
.chevron { width: 5px; height: 5px; margin-left: -3px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg) translateY(-2px); }
.quick-icon::after { content: ""; position: absolute; left: 4px; top: 2px; width: 3px; height: 3px; border-left: 1px solid; border-bottom: 1px solid; }
.cart-link { width: 29px; height: 25px; display: block; position: relative; }
.cart-icon { width: 14px; height: 9px; position: absolute; left: 0; top: 7px; border: 1.5px solid; border-top: 0; transform: skew(-10deg); }
.cart-count { width: 14px; height: 14px; position: absolute; top: 0; right: 0; display: grid; place-items: center; color: var(--yellow); background: #111; border-radius: 50%; font-size: 9px; }

.search-header {
  height: 77px;
  background: #f6f8f9;
  box-shadow:
    0 .27px .46px rgba(8, 18, 30, .016),
    0 1.22px 1.07px rgba(8, 18, 30, .024),
    0 3.02px 2.45px rgba(8, 18, 30, .027),
    0 5.89px 5.22px rgba(8, 18, 30, .035),
    0 10px 10px rgba(8, 18, 30, .05);
  position: relative;
  z-index: 2;
}
.search-header-inner { gap: 21px; padding: 0 11px; }
.logo {
  width: 175px;
  flex: 0 0 175px;
  display: block;
  font-size: 0;
  text-decoration: none;
  transform: translateY(-4px);
}
.logo img { display: block; width: 100%; height: auto; }
.product-search { height: 55px; flex: 1; position: relative; }
.product-search input {
  width: 100%; min-width: 0; height: 100%; padding: 17px 141px 17px 19px; color: #000;
  background: #fff; border: .8px solid #a0afb4; border-radius: 62px; outline: 0;
  font-family: Arial, Helvetica, sans-serif; font-size: 16px;
}
.product-search button {
  width: 118px; height: 44px; position: absolute; top: 6px; right: 6px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  color: #4a2100; background: #ffbb1c; border: 0; border-radius: 45px;
  font-size: 13.333px; font-weight: 700;
}
.search-icon, .small-search-icon {
  display: inline-block; border: 1.6px solid currentColor; border-radius: 50%; position: relative;
}
.search-icon { width: 19px; height: 19px; }
.small-search-icon { width: 12px; height: 12px; flex: 0 0 12px; }
.search-icon::after, .small-search-icon::after {
  content: ""; position: absolute; background: currentColor; transform: rotate(46deg); transform-origin: left center;
}
.search-icon::after { width: 9px; height: 1.5px; right: -7px; bottom: -4px; }
.small-search-icon::after { width: 5px; height: 1px; right: -4px; bottom: -2px; }

@media (min-width: 1280px) {
  .utility-bar { height: 50px; }
  .utility-inner, .search-header-inner {
    width: min(1070px, calc(100% - 40px));
    padding: 12px;
  }
  .utility-nav a:nth-child(n + 3) { font-size: 14px; line-height: 18px; }
  .utility-nav { gap: 40px; }
  .utility-nav a:nth-child(3) { margin-left: 134px; }
  .account-nav { gap: 20px; }
  .search-header { height: 80px; }
  .search-header-inner { gap: 20px; }
  .logo { width: 183px; flex-basis: 183px; }
  .product-search { height: 56px; }
  .product-search input { padding: 18px 147px 18px 20px; }
  .product-search button {
    width: 123px; height: 46px; top: 5px; right: 6px; padding: 0 20px;
  }
}

.resources-page {
  width: min(1102px, calc(100% - 40px));
  margin: 0 auto;
  padding: 62px 0 60px;
}
.resources-hero {
  width: 100%;
  height: 360px;
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
  background: var(--page);
  border-radius: 15px;
}
.resources-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(246, 248, 249, .05) 0%,
    rgba(246, 248, 249, 0) 42%,
    rgba(246, 248, 249, 0) 58%
  );
}
.hero-copy {
  width: min(740px, 68%);
  position: absolute;
  left: clamp(34px, 5vw, 64px);
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
}
.resources-hero h1 {
  margin: 0; color: var(--navy); font-family: "Mulish", Arial, "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size: clamp(32px, 2.4vw, 37px); line-height: 1.36; font-weight: 700;
  letter-spacing: -.025em;
}
.resources-hero h1 span { display: block; }
.hero-description { margin: 27px 0 0; color: #152957; font-size: 17px; line-height: 1.55; }
.hero-visual {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(30, 69, 122, .06);
}
.hero-visual img {
  width: 100%; height: 100%; display: block; object-fit: cover;
  object-position: center;
  filter: saturate(1.08) contrast(1.02);
  transform: translateX(3%) scale(1.1);
  transform-origin: 75% 50%;
}

.resource-controls { border-top: 1px solid #d4dbe5; }
.resource-controls > .category-tabs,
.resource-controls > .page-filter,
.resource-controls > .popular-tags { width: 100%; }
.category-tabs { height: 74px; display: flex; align-items: start; gap: 36px; }
.category-tab {
  height: 56px; padding: 22px 0 12px; color: #182744; background: transparent;
  border: 0; border-bottom: 2px solid transparent; font-size: 17px; font-weight: 800;
  white-space: nowrap;
}
.category-tab small { margin-left: 7px; color: #91a0ba; font-size: 12px; }
.category-tab.active { color: #050505; border-bottom-color: #fbbb16; }
.category-tab.active small { color: var(--gold); }
.page-filter {
  display: grid; grid-template-columns: 116px minmax(0, 1fr);
  column-gap: 17px; align-items: center;
}
.page-filter label { color: #07152b; font-size: 15px; font-weight: 800; }
.page-search-wrap {
  height: 42px; display: flex; align-items: center; gap: 11px; padding: 0 17px;
  color: #60708b; background: #fff; border: 1px solid #c9d3e1; border-radius: 22px;
}
.page-search-wrap input {
  min-width: 0; flex: 1; color: var(--body-blue); background: transparent;
  border: 0; outline: 0; font-size: 14px;
}
.page-filter p { grid-column: 2 / 4; margin: 7px 0 0; color: #91a0ba; font-size: 12px; }
.popular-tags { min-height: 59px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.popular-tags strong { margin-right: 5px; color: #60708b; font-size: 13px; }
.popular-tag {
  height: 31px; padding: 0 14px; color: #19304f; background: #fff;
  border: 1px solid #d2dae5; border-radius: 16px; font-size: 13px;
}
.popular-tag.highlighted { color: #5d4300; background: #fff4d5; border-color: #efb514; }

.latest-updates {
  width: 100%;
  margin: 42px auto 0;
}
.updates-list {
  display: grid;
  gap: 16px;
  background: transparent;
}
.update-row {
  min-height: 155px; padding: 25px 29px; display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 120px; gap: 24px; align-items: start;
  background: var(--surface);
  border: 1px solid rgba(208, 217, 228, .78);
  border-radius: 9px;
  box-shadow:
    0 4px 12px rgba(5, 36, 74, .13),
    0 1px 3px rgba(5, 36, 74, .07);
}
.update-row[hidden],
.no-results[hidden] { display: none; }
.update-row time { padding-top: 6px; color: var(--date-blue); font-size: 14px; line-height: 1.4; }
.tags { min-height: 26px; margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.tag {
  display: inline-flex; align-items: center; min-height: 26px; padding: 3px 11px;
  color: var(--body-blue); background: var(--tag-blue); border: 1px solid transparent;
  border-radius: 999px; font-size: 12px; line-height: 1; font-weight: 700; white-space: nowrap;
}
.tag-dark,
.tag-accent { color: var(--body-blue); background: var(--tag-blue); border-color: transparent; }
.update-content h2 {
  margin: 0 0 11px; color: var(--ink); font-family: inherit;
  font-size: 23px; line-height: 1.24; font-weight: 600; letter-spacing: -.012em;
}
.update-content p {
  max-width: 760px; margin: 0; color: var(--body-blue);
  font-size: 15px; line-height: 1.55;
}
.update-cta {
  justify-self: end; margin-top: 40px; color: var(--gold);
  font-size: 15px; line-height: 1.35; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.update-cta span { display: inline-block; transition: transform 160ms ease; }
.update-cta:hover span { transform: translateX(4px); }
.pagination {
  min-height: 44px;
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.pagination a,
.pagination button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #304b76;
  background: #fff;
  border: 1px solid #c9d3e1;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.pagination a[aria-current="page"],
.pagination button[aria-current="page"] {
  color: #221800;
  background: #ffbb1c;
  border-color: #ffbb1c;
}
.pagination button:disabled {
  cursor: not-allowed;
  opacity: .38;
}
.pagination span { padding: 0 3px; color: #8293bd; }
.no-results {
  margin: 0; padding: 54px 24px; color: var(--body-blue); background: var(--surface);
  border: 1px solid var(--line); border-radius: 20px; text-align: center;
}
.category-tab:focus-visible, .popular-tag:focus-visible, .update-cta:focus-visible,
.pagination a:focus-visible, .pagination button:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px;
}

@media (max-width: 850px) {
  .utility-nav { display: none; }
  .utility-inner { justify-content: flex-end; }
  .account-nav { margin-left: 0; }
  .resources-page { width: min(100% - 32px, 1102px); padding: 42px 0; }
  .resources-hero { height: 320px; margin-bottom: 28px; }
  .resources-hero::after {
    background: linear-gradient(90deg, rgba(244, 246, 248, .65) 0%, rgba(244, 246, 248, .2) 58%, rgba(244, 246, 248, .02) 100%);
  }
  .hero-copy { width: min(600px, 60%); left: 28px; }
  .hero-visual img { object-position: center; transform: scale(1.1); transform-origin: 100% 50%; }
  .hero-description br { display: none; }
  .category-tabs { overflow-x: auto; scrollbar-width: none; gap: 28px; }
  .category-tabs::-webkit-scrollbar { display: none; }
  .page-filter { padding: 16px 0 8px; grid-template-columns: 1fr; }
  .page-filter label { grid-column: 1 / -1; margin-bottom: 10px; }
  .page-filter p { grid-column: 1 / -1; }
  .popular-tags { padding: 8px 0 16px; }
  .updates-list { gap: 12px; }
  .update-row { grid-template-columns: 1fr; gap: 8px; padding: 24px; }
  .update-row time { padding: 0; }
  .update-cta { justify-self: start; align-self: auto; margin-top: 5px; }
}

@media (max-width: 560px) {
  .utility-bar { height: 38px; }
  .account-nav a:not(:last-child) { display: none; }
  .search-header { height: auto; }
  .search-header-inner { padding-block: 11px; flex-wrap: wrap; }
  .logo { width: 145px; flex-basis: 145px; }
  .product-search { height: 46px; flex-basis: 100%; order: 2; margin-top: 10px; }
  .product-search button { height: 36px; width: 104px; }
  .resources-page { width: calc(100% - 28px); }
  .hero-copy { width: calc(100% - 56px); }
  .resources-hero h1 { font-size: 33px; }
  .hero-description { margin-top: 18px; font-size: 15px; }
  .resources-hero { height: 300px; border-radius: 11px; }
  .hero-visual img { object-position: center; }
  .category-tabs { height: 57px; }
  .category-tab { font-size: 13px; }
  .popular-tag { padding-inline: 11px; }
  .update-content h2 { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .update-cta span { transition: none; }
}
