/* ==========================================================================
   Offices pages stylesheet
   --------------------------------------------------------------------------
   Structure (search section headers below):
     0. Shared tokens / header chrome overrides / layout primitives
     1. Shared breadcrumb
     2. Shared sidebar + side-item / tile components
     3. page-category          — category landing cards
     4. page-category-offices  — category hero + office lists
     5. page-offices-state-list
     6. page-offices-list / detail shared chrome
     7. page-offices-list      — filters, pager, cards
     8. page-offices-detail
     9. Shared mobile layout breakpoints
   Header/footer base styles live in offices-chrome.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Shared tokens / header overrides / layout primitives
   -------------------------------------------------------------------------- */

.page-category,
.page-category-offices,
.page-offices-state-list,
.page-offices-list,
.page-offices-detail {
  --navy: #16325c;
  --navy-soft: #e8eef6;
  --ink: #1c2430;
  --line: #e3e8ee;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Noto Sans", Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
}

.page-category-offices,
.page-offices-state-list,
.page-offices-list,
.page-offices-detail {
  overflow-x: clip;
  --offices-content-top-gap: 10px;
}

/* category-offices / landing / list / detail：隐藏分类导航条 */
.page-category-offices .navbar-wrapper.navbar1,
.page-offices-state-list .navbar-wrapper.navbar1,
.page-offices-list .navbar-wrapper.navbar1,
.page-offices-detail .navbar-wrapper.navbar1 {
  display: none !important;
}

/* Offices 页不显示搜索与更多按钮（CSS 兜底） */
.page-category .header-search,
.page-category .search-mobile,
.page-category .search-m-close,
.page-category .search-show,
.page-category .menu-button-2,
.page-category-offices .header-search,
.page-category-offices .search-mobile,
.page-category-offices .search-m-close,
.page-category-offices .search-show,
.page-category-offices .menu-button-2,
.page-offices-state-list .header-search,
.page-offices-state-list .search-mobile,
.page-offices-state-list .search-m-close,
.page-offices-state-list .search-show,
.page-offices-state-list .menu-button-2,
.page-offices-list .header-search,
.page-offices-list .search-mobile,
.page-offices-list .search-m-close,
.page-offices-list .search-show,
.page-offices-list .menu-button-2,
.page-offices-detail .header-search,
.page-offices-detail .search-mobile,
.page-offices-detail .search-m-close,
.page-offices-detail .search-show,
.page-offices-detail .menu-button-2 {
  display: none !important;
}

/* 隐藏搜索后仍保持原 header 高度（与有搜索框时一致） */
.page-category .navbar-wrapper.top-navbar,
.page-category-offices .navbar-wrapper.top-navbar,
.page-offices-state-list .navbar-wrapper.top-navbar,
.page-offices-list .navbar-wrapper.top-navbar,
.page-offices-detail .navbar-wrapper.top-navbar {
  box-sizing: border-box;
  min-height: 83px;
  display: flex;
  align-items: center;
}

.page-category .navbar-wrapper.top-navbar .div-block,
.page-category-offices .navbar-wrapper.top-navbar .div-block,
.page-offices-state-list .navbar-wrapper.top-navbar .div-block,
.page-offices-list .navbar-wrapper.top-navbar .div-block,
.page-offices-detail .navbar-wrapper.top-navbar .div-block {
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 479px) {
  .page-category .navbar-wrapper.top-navbar,
  .page-category-offices .navbar-wrapper.top-navbar,
  .page-offices-state-list .navbar-wrapper.top-navbar,
  .page-offices-list .navbar-wrapper.top-navbar,
  .page-offices-detail .navbar-wrapper.top-navbar {
    min-height: 49px;
  }
}

/* fixed 顶栏必须高于页面内容，否则弹性回弹时内容会盖住 header */
.page-category .navbar-no-shadow,
.page-category-offices .navbar-no-shadow,
.page-offices-state-list .navbar-no-shadow,
.page-offices-list .navbar-no-shadow,
.page-offices-detail .navbar-no-shadow {
  z-index: 100;
  background-color: #fff;
}

.page-category .navbar-no-shadow-container,
.page-category-offices .navbar-no-shadow-container,
.page-offices-state-list .navbar-no-shadow-container,
.page-offices-list .navbar-no-shadow-container,
.page-offices-detail .navbar-no-shadow-container {
  z-index: 100;
}

.page-category .icon-sprite,
.page-category-offices .icon-sprite,
.page-offices-state-list .icon-sprite,
.page-offices-list .icon-sprite,
.page-offices-detail .icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* 主站 .navbar-no-shadow 为 fixed，需留出顶栏高度（与 .page-title / .hero 一致） */
.page-category .gl-page-title {
  margin-top: 140px;
  padding: 28px 20px 8px;
}

.page-category .gl-page-title h1 {
  margin: 0 auto;
  max-width: 1300px;
  color: #1a1b1f;
  font-size: 54px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.page-category .gl-wrap,
.page-category-offices .gl-wrap,
.page-offices-state-list .gl-wrap,
.page-offices-list .gl-wrap,
.page-offices-detail .gl-wrap {
  width: 100%;
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

.page-category .gl-main,
.page-category-offices .gl-main,
.page-offices-state-list .gl-main,
.page-offices-list .gl-main,
.page-offices-detail .gl-main {
  padding-bottom: 72px;
}

.page-category .gl-section,
.page-category-offices .gl-section,
.page-offices-state-list .gl-section,
.page-offices-list .gl-section,
.page-offices-detail .gl-section {
  margin-bottom: 16px;
}

/* Shared office breadcrumb */
.page-category-offices .office-breadcrumb,
.page-offices-state-list .office-breadcrumb,
.page-offices-list .office-breadcrumb,
.page-offices-detail .office-breadcrumb {
  position: relative;
}

.page-category-offices .office-breadcrumb,
.page-offices-state-list .office-breadcrumb,
.page-offices-list .office-breadcrumb,
.page-offices-detail .office-breadcrumb {
  margin: 0 0 12px;
}

.page-category-offices .office-breadcrumb__list,
.page-offices-state-list .office-breadcrumb__list,
.page-offices-list .office-breadcrumb__list,
.page-offices-detail .office-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  line-height: 1.4;
  color: #5b6573;
}

.page-category-offices .office-breadcrumb__list--mobile,
.page-offices-state-list .office-breadcrumb__list--mobile,
.page-offices-list .office-breadcrumb__list--mobile,
.page-offices-detail .office-breadcrumb__list--mobile {
  display: none;
}

.page-category-offices .office-breadcrumb__item,
.page-offices-state-list .office-breadcrumb__item,
.page-offices-list .office-breadcrumb__item,
.page-offices-detail .office-breadcrumb__item {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-width: 0;
}

.page-category-offices .office-breadcrumb__item--ellipsis,
.page-offices-state-list .office-breadcrumb__item--ellipsis,
.page-offices-list .office-breadcrumb__item--ellipsis,
.page-offices-detail .office-breadcrumb__item--ellipsis {
  position: relative;
  flex-shrink: 0;
}

.page-category-offices .office-breadcrumb__item:not(:last-child)::after,
.page-offices-state-list .office-breadcrumb__item:not(:last-child)::after,
.page-offices-list .office-breadcrumb__item:not(:last-child)::after,
.page-offices-detail .office-breadcrumb__item:not(:last-child)::after {
  content: "/";
  margin: 0 8px;
  color: #b0b8c2;
  font-weight: 400;
}

.page-category-offices .office-breadcrumb__link,
.page-offices-state-list .office-breadcrumb__link,
.page-offices-list .office-breadcrumb__link,
.page-offices-detail .office-breadcrumb__link {
  display: inline;
  color: #5b6573;
  text-decoration: none;
  white-space: nowrap;
}

.page-category-offices .office-breadcrumb__link:hover,
.page-offices-state-list .office-breadcrumb__link:hover,
.page-offices-list .office-breadcrumb__link:hover,
.page-offices-detail .office-breadcrumb__link:hover {
  color: #1e20cf;
  text-decoration: underline;
}

.page-category-offices .office-breadcrumb__current,
.page-offices-state-list .office-breadcrumb__current,
.page-offices-list .office-breadcrumb__current,
.page-offices-detail .office-breadcrumb__current {
  color: #1a1b1f;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(48ch, 70vw);
}

.page-category-offices .office-breadcrumb__ellipsis,
.page-offices-state-list .office-breadcrumb__ellipsis,
.page-offices-list .office-breadcrumb__ellipsis,
.page-offices-detail .office-breadcrumb__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 6px;
  border: 1px solid #d8dde3;
  border-radius: 6px;
  background: #f7f8f9;
  color: #5b6573;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.08em;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.page-category-offices .office-breadcrumb__ellipsis:hover,
.page-offices-state-list .office-breadcrumb__ellipsis:hover,
.page-offices-list .office-breadcrumb__ellipsis:hover,
.page-offices-detail .office-breadcrumb__ellipsis:hover,
.page-category-offices .office-breadcrumb--open .office-breadcrumb__ellipsis,
.page-offices-state-list .office-breadcrumb--open .office-breadcrumb__ellipsis,
.page-offices-list .office-breadcrumb--open .office-breadcrumb__ellipsis,
.page-offices-detail .office-breadcrumb--open .office-breadcrumb__ellipsis {
  border-color: #b4abff;
  background: #fff;
  color: #1e20cf;
}

.page-category-offices .office-breadcrumb__menu,
.page-offices-state-list .office-breadcrumb__menu,
.page-offices-list .office-breadcrumb__menu,
.page-offices-detail .office-breadcrumb__menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 50;
  min-width: 180px;
  max-width: min(280px, 80vw);
  margin: 0;
  padding: 6px 0;
  list-style: none;
  border: 1px solid #e3e6eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(26, 27, 31, 0.12);
}

.page-category-offices .office-breadcrumb--open .office-breadcrumb__menu,
.page-offices-state-list .office-breadcrumb--open .office-breadcrumb__menu,
.page-offices-list .office-breadcrumb--open .office-breadcrumb__menu,
.page-offices-detail .office-breadcrumb--open .office-breadcrumb__menu {
  display: block;
}

.page-category-offices .office-breadcrumb--open,
.page-offices-state-list .office-breadcrumb--open,
.page-offices-list .office-breadcrumb--open,
.page-offices-detail .office-breadcrumb--open {
  z-index: 50;
}

.page-category-offices .office-breadcrumb__menu-item,
.page-offices-state-list .office-breadcrumb__menu-item,
.page-offices-list .office-breadcrumb__menu-item,
.page-offices-detail .office-breadcrumb__menu-item {
  margin: 0;
}

.page-category-offices .office-breadcrumb__menu-link,
.page-offices-state-list .office-breadcrumb__menu-link,
.page-offices-list .office-breadcrumb__menu-link,
.page-offices-detail .office-breadcrumb__menu-link,
.page-category-offices .office-breadcrumb__menu-label,
.page-offices-state-list .office-breadcrumb__menu-label,
.page-offices-list .office-breadcrumb__menu-label,
.page-offices-detail .office-breadcrumb__menu-label {
  display: block;
  padding: 10px 14px;
  color: #1a1b1f;
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-category-offices .office-breadcrumb__menu-link:hover,
.page-offices-state-list .office-breadcrumb__menu-link:hover,
.page-offices-list .office-breadcrumb__menu-link:hover,
.page-offices-detail .office-breadcrumb__menu-link:hover {
  background: #f7f8f9;
  color: #1e20cf;
  text-decoration: none;
}

.page-category-offices .office-breadcrumb__menu-label,
.page-offices-state-list .office-breadcrumb__menu-label,
.page-offices-list .office-breadcrumb__menu-label,
.page-offices-detail .office-breadcrumb__menu-label {
  color: #5b6573;
}

@media (max-width: 991px) {
  .page-category-offices .office-breadcrumb,
  .page-offices-state-list .office-breadcrumb,
  .page-offices-list .office-breadcrumb,
  .page-offices-detail .office-breadcrumb {
    margin: 0 0 10px;
  }

  .page-category-offices .office-breadcrumb__list--desktop,
  .page-offices-state-list .office-breadcrumb__list--desktop,
  .page-offices-list .office-breadcrumb__list--desktop,
  .page-offices-detail .office-breadcrumb__list--desktop {
    display: none;
  }

  .page-category-offices .office-breadcrumb__list--mobile,
  .page-offices-state-list .office-breadcrumb__list--mobile,
  .page-offices-list .office-breadcrumb__list--mobile,
  .page-offices-detail .office-breadcrumb__list--mobile {
    display: flex;
    flex-wrap: nowrap;
    overflow: visible;
  }

  .page-category-offices .office-breadcrumb__item,
  .page-offices-state-list .office-breadcrumb__item,
  .page-offices-list .office-breadcrumb__item,
  .page-offices-detail .office-breadcrumb__item {
    flex-shrink: 0;
  }

  .page-category-offices .office-breadcrumb__item:last-child,
  .page-offices-state-list .office-breadcrumb__item:last-child,
  .page-offices-list .office-breadcrumb__item:last-child,
  .page-offices-detail .office-breadcrumb__item:last-child {
    flex-shrink: 1;
    min-width: 0;
  }

  .page-category-offices .office-breadcrumb__current,
  .page-offices-state-list .office-breadcrumb__current,
  .page-offices-list .office-breadcrumb__current,
  .page-offices-detail .office-breadcrumb__current {
    max-width: 100%;
  }
}

.page-category .gl-section > h3,
.page-category-offices .gl-section > h3,
.page-offices-state-list .gl-section > h3,
.page-offices-list .gl-section > h3,
.page-offices-detail .gl-section > h3 {
  margin: 0 0 22px;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #1a1b1f;
}

/* --------------------------------------------------------------------------
   2. Shared sidebar (Top Searched) + side-item
   -------------------------------------------------------------------------- */

.page-category .side-card,
.page-category-offices .side-card,
.page-offices-state-list .side-card,
.page-offices-list .side-card,
.page-offices-detail .side-card {
  position: sticky;
  top: 140px;
  z-index: 0;
}

.page-category .side-card .gl-section,
.page-category-offices .side-card .gl-section,
.page-offices-state-list .side-card .gl-section,
.page-offices-list .side-card .gl-section,
.page-offices-detail .side-card .gl-section {
  margin-bottom: 0;
}

.page-category .side-card .gl-section > h3,
.page-category-offices .side-card .gl-section > h3,
.page-offices-state-list .side-card .gl-section > h3,
.page-offices-list .side-card .gl-section > h3,
.page-offices-detail .side-card .gl-section > h3 {
  margin: 0 0 18px;
  font-size: 22px;
  line-height: 1.25;
}

/* office pages：主栏 + 侧栏撑满容器，避免 mobile 偏左 */
.page-category-offices .cat-layout__main,
.page-category-offices .cat-layout > div:first-child,
.page-offices-state-list .state-layout__main,
.page-offices-state-list .state-layout > div:first-child,
.page-offices-list .state-layout__main,
.page-offices-list .state-layout > div:first-child,
.page-offices-detail .state-layout__main,
.page-offices-detail .state-layout > div:first-child,
.page-category-offices .cat-layout .side-card,
.page-offices-state-list .state-layout .side-card,
.page-offices-list .state-layout .side-card,
.page-offices-detail .state-layout .side-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.page-offices-state-list .state-layout,
.page-offices-list .state-layout,
.page-offices-detail .state-layout {
  justify-items: stretch;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* shared: sidebar list items (Top Searched) */
.page-category #side-list,
.page-offices-state-list #side-list,
.page-offices-list #side-list,
.page-offices-detail #side-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-category .side-item,
.page-offices-state-list .side-item,
.page-offices-list .side-item,
.page-offices-detail .side-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 10px;
  border: 1px solid #e3e6eb;
  border-radius: 8px;
  background: #fff;
  color: #1a1b1f;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.page-category .side-item:hover,
.page-offices-state-list .side-item:hover,
.page-offices-list .side-item:hover,
.page-offices-detail .side-item:hover {
  border-color: #b4abff;
  background: #f7f8f9;
  color: #1a1b1f;
  text-decoration: none;
  box-shadow: none;
}

/* category landing only: large circular tile icons */
.page-category .tile__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: #16325c;
  box-shadow: 0 1px 2px rgba(22, 50, 92, 0.06);
  flex-shrink: 0;
}

.page-category .tile__icon svg {
  width: 36px;
  height: 36px;
  display: block;
  overflow: visible;
  stroke-width: 1.85;
}

.page-category .tile__icon[data-tone="navy"] { background: #e4ebf5; color: #16325c; }
.page-category .tile__icon[data-tone="red"] { background: #f6e6e4; color: #8f2d16; }
.page-category .tile__icon[data-tone="teal"] { background: #e3f1ee; color: #0d5c56; }
.page-category .tile__icon[data-tone="gold"] { background: #f4ead8; color: #7a4e0e; }
.page-category .tile__icon[data-tone="slate"] { background: #eaedf1; color: #3a4554; }

.page-category .side-item .tile__icon,
.page-category .side-item .tile__icon[data-tone],
.page-offices-state-list .side-item .tile__icon,
.page-offices-list .side-item .tile__icon,
.page-offices-detail .side-item .tile__icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: none;
  color: #1a1b1f;
  box-shadow: none;
}

.page-category .side-item .tile__icon svg,
.page-offices-state-list .side-item .tile__icon svg,
.page-offices-list .side-item .tile__icon svg,
.page-offices-detail .side-item .tile__icon svg {
  width: 28px;
  height: 28px;
}

.page-category .side-item__label,
.page-offices-state-list .side-item__label,
.page-offices-list .side-item__label,
.page-offices-detail .side-item__label {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  line-height: 1.3;
}

.page-category .side-item__label {
  letter-spacing: -0.01em;
}

.page-category .side-item::after,
.page-offices-state-list .side-item::after,
.page-offices-list .side-item::after,
.page-offices-detail .side-item::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-right: 2px solid #1e20cf;
  border-top: 2px solid #1e20cf;
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   3. page-category — landing cards
   -------------------------------------------------------------------------- */

.page-category .cat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 60px;
  align-items: start;
  padding-top: 8px;
}

.page-category .cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin: 0 0 48px;
}

.page-category .cat-card {
  display: block;
  color: #1a1b1f;
  text-decoration: none;
}

.page-category .cat-card:hover {
  color: #1a1b1f;
  text-decoration: none;
}

.page-category .cat-card__media {
  width: 100%;
  overflow: hidden;
  border-radius: 6px;
  background: #f7f8f9;
  aspect-ratio: 16 / 9;
}

.page-category .cat-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-category .cat-card__body {
  margin-top: 12px;
}

.page-category .cat-card__title {
  margin: 0 0 8px;
  color: #000;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.page-category .cat-card:hover .cat-card__title {
  color: #1e20cf;
}

.page-category .cat-card__desc {
  margin: 0;
  color: #505058;
  font-size: 15px;
  line-height: 1.5;
}

@media (max-width: 991px) {
  .page-category .gl-page-title {
    margin-top: 90px;
  }

  .page-category .gl-page-title h1 {
    font-size: 40px;
  }

  .page-category .cat-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .page-category .side-card,
  .page-category-offices .side-card {
    position: static;
  }

  .page-category .cat-grid {
    gap: 28px;
  }

  .page-category .cat-card__title {
    font-size: 18px;
  }
}

@media (max-width: 479px) {
  .page-category .gl-page-title {
    margin-top: 50px;
  }

  .page-category .gl-page-title h1 {
    font-size: 28px;
  }

  .page-category .gl-section > h3,
  .page-category-offices .gl-section > h3,
  .page-offices-state-list .gl-section > h3,
  .page-offices-list .gl-section > h3,
  .page-offices-detail .gl-section > h3 {
    font-size: 22px;
  }

  .page-category .cat-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .page-category .cat-card__title {
    font-size: 18px;
  }

  .page-category .cat-card__desc {
    font-size: 14px;
  }
}

/* --------------------------------------------------------------------------
   4. page-category-offices — hero + lists (+ shared tiles)
   -------------------------------------------------------------------------- */

.page-category-offices .cat-hero-wrap {
  margin-top: calc(
    var(--offices-header-h, 83px) + var(--offices-content-top-gap, 10px)
  );
}

.page-category-offices .cat-hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: 0;
  border-radius: 12px;
  background: #f7f8f9 center / cover no-repeat;
  min-height: 200px;
}

.page-category-offices .cat-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.62) 0%,
    rgba(0, 0, 0, 0.42) 45%,
    rgba(0, 0, 0, 0.22) 100%
  );
}

.page-category-offices .cat-hero__inner {
  position: relative;
  z-index: 1;
  padding: 36px 32px 32px;
}

.page-category-offices .cat-hero h3 {
  margin: 0;
  max-width: 30ch;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.9);
}

.page-category-offices .cat-hero .page-lead {
  max-width: 52ch;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
  line-height: 1.6;
}

.page-category-offices .cat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 60px;
  align-items: start;
  justify-items: stretch;
  width: 100%;
  max-width: 100%;
  margin-top: 32px;
  box-sizing: border-box;
}

.page-category-offices .office-list,
.page-offices-list .office-list,
.page-offices-state-list .office-list,
.page-category-offices .office-grid,
.page-offices-list .office-grid,
.page-offices-detail .office-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.page-category-offices .office-grid,
.page-offices-list .office-grid,
.page-offices-detail .office-grid {
  gap: 16px;
}

.page-category-offices .office-item,
.page-offices-list .office-item,
.page-offices-state-list .office-item {
  display: flex;
  align-items: center;
  column-gap: 8px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 14px 12px;
  border: 1px solid #e3e6eb;
  border-radius: 10px;
  background: #fff;
  color: #1a1b1f;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.page-category-offices .office-item:hover,
.page-offices-list .office-item:hover,
.page-offices-state-list .office-item:hover {
  border-color: #b4abff;
  box-shadow: 0 4px 14px rgba(30, 32, 207, 0.08);
  color: #1e20cf;
  text-decoration: none;
}

.page-category-offices .office-item__icon,
.page-offices-list .office-item__icon,
.page-offices-state-list .office-item__icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #1a1b1f;
}

.page-category-offices .office-item__icon svg,
.page-offices-list .office-item__icon svg,
.page-offices-state-list .office-item__icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.page-category-offices .office-item__label,
.page-offices-list .office-item__label,
.page-offices-state-list .office-item__label {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  line-height: 1.35;
}

.page-category-offices .office-item::after,
.page-offices-list .office-item::after,
.page-offices-state-list .office-item::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 2px;
  border-right: 2px solid #1e20cf;
  border-top: 2px solid #1e20cf;
  transform: rotate(45deg);
  flex-shrink: 0;
  opacity: 0.55;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.page-category-offices .office-item:hover::after,
.page-offices-list .office-item:hover::after,
.page-offices-state-list .office-item:hover::after {
  opacity: 1;
  transform: rotate(45deg) translate(1px, -1px);
}

.page-category-offices .office-ad,
.page-offices-state-list .office-ad,
.page-offices-list .office-ad,
.page-offices-detail .office-ad {
  grid-column: 1 / -1;
  margin: 4px 0 2px;
}

.page-offices-state-list .office-ad--side,
.page-offices-list .office-ad--side,
.page-offices-detail .office-ad--side {
  grid-column: auto;
}

.page-offices-state-list .office-ad--side,
.page-offices-detail .office-ad--side {
  margin: 0 0 20px;
}

.page-offices-list .office-ad--side {
  margin: 20px 0 0;
}

.page-category-offices .office_ads_label,
.page-offices-state-list .office_ads_label,
.page-offices-list .office_ads_label,
.page-offices-detail .office_ads_label {
  margin: 0 0 6px;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #8a9199;
  text-align: center;
}

.page-category-offices .office-ad > [id^="ads_banner"],
.page-offices-state-list .office-ad > [id^="ads_banner"],
.page-offices-list .office-ad > [id^="ads_banner"],
.page-offices-detail .office-ad > [id^="ads_banner"] {
  width: 100%;
}

/* shared: icon tile grid (similar / related blocks) */
.page-category-offices .tile-grid,
.page-offices-state-list .tile-grid,
.page-offices-list .tile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.page-category-offices .tile,
.page-offices-state-list .tile,
.page-offices-list .tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  min-height: 168px;
  padding: 24px 14px 20px;
  border: 1px solid #e3e6eb;
  border-radius: 18px;
  background: #fff;
  color: #1a1b1f;
  text-decoration: none;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.page-category-offices .tile:hover,
.page-offices-state-list .tile:hover,
.page-offices-list .tile:hover {
  background: #f7f8f9;
  box-shadow: 0 8px 20px rgba(22, 50, 92, 0.08);
  transform: translateY(-2px);
  text-decoration: none;
}

.page-category-offices .tile__icon,
.page-offices-state-list .tile__icon,
.page-offices-list .tile__icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #1a1b1f;
}

.page-category-offices .tile__icon svg,
.page-offices-state-list .tile__icon svg,
.page-offices-list .tile__icon svg {
  width: 36px;
  height: 36px;
  display: block;
  stroke-width: 1.85;
}

.page-category-offices .tile__label,
.page-offices-state-list .tile__label,
.page-offices-list .tile__label {
  font-size: 15px;
  line-height: 1.3;
  max-width: 12em;
}

.page-category-offices .office-card,
.page-offices-list .office-card,
.page-offices-detail .office-card {
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0 0 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #1a1b1f;
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.page-category-offices .office-card:hover,
.page-offices-list .office-card:hover,
.page-offices-detail .office-card:hover {
  background: #f8fafc;
  border-color: #9aa9c0;
  box-shadow: 0 4px 12px rgba(14, 34, 66, 0.06);
  text-decoration: none;
}

.page-category-offices .office-card__media,
.page-offices-list .office-card__media,
.page-offices-detail .office-card__media {
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: #e8edf4;
}

.page-category-offices .office-card__media img,
.page-offices-list .office-card__media img,
.page-offices-detail .office-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-category-offices .office-card h3,
.page-offices-list .office-card h3,
.page-offices-detail .office-card h3 {
  margin: 0 0 4px;
  padding: 14px 14px 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.page-category-offices .office-card__rating,
.page-offices-list .office-card__rating,
.page-offices-detail .office-card__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  margin-bottom: 6px;
}

.page-category-offices .office-card__stars,
.page-offices-list .office-card__stars,
.page-offices-detail .office-card__stars {
  --rating: 0;
  position: relative;
  display: inline-block;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 1px;
}

.page-category-offices .office-card__stars::before,
.page-offices-list .office-card__stars::before,
.page-offices-detail .office-card__stars::before,
.page-category-offices .office-card__stars::after,
.page-offices-list .office-card__stars::after,
.page-offices-detail .office-card__stars::after {
  content: "★★★★★";
}

.page-category-offices .office-card__stars::before,
.page-offices-list .office-card__stars::before,
.page-offices-detail .office-card__stars::before {
  color: #d1d5db;
}

.page-category-offices .office-card__stars::after,
.page-offices-list .office-card__stars::after,
.page-offices-detail .office-card__stars::after {
  position: absolute;
  inset: 0 auto auto 0;
  width: calc(var(--rating) / 5 * 100%);
  overflow: hidden;
  color: #f59e0b;
  white-space: nowrap;
}

.page-category-offices .office-card__score,
.page-offices-list .office-card__score,
.page-offices-detail .office-card__score {
  font-size: 13px;
  font-weight: 600;
  color: #5b6573;
}

.page-category-offices .office-card__address,
.page-offices-list .office-card__address,
.page-offices-detail .office-card__address {
  margin: 0;
  padding: 0 52px 8px 14px;
  font-size: 13px;
  color: #5b6573;
  line-height: 1.45;
}

.page-category-offices .office-card__go,
.page-offices-list .office-card__go,
.page-offices-detail .office-card__go {
  position: absolute;
  right: 12px;
  bottom: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  display: grid;
  place-items: center;
  pointer-events: none;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.28);
}

.page-category-offices .office-card:hover .office-card__go,
.page-offices-list .office-card:hover .office-card__go,
.page-offices-detail .office-card:hover .office-card__go {
  background: #1d4ed8;
}

.page-category-offices .other-cat-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.page-category-offices .other-cat {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: #1a1b1f;
  text-decoration: none;
}

.page-category-offices .other-cat:hover {
  text-decoration: none;
}

.page-category-offices .other-cat__media {
  width: 88px;
  height: 66px;
  border-radius: 6px;
  overflow: hidden;
  background: #f7f8f9;
}

.page-category-offices .other-cat__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-category-offices .other-cat__label {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}

.page-category-offices .other-cat:hover .other-cat__label {
  color: #1e20cf;
}

@media (max-width: 991px) {
  .page-category-offices .cat-hero-wrap {
    margin-top: calc(
      var(--offices-header-h, 83px) + var(--offices-content-top-gap, 10px)
    );
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  .page-category-offices .office-list,
  .page-offices-list .office-list,
  .page-offices-state-list .office-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .page-category-offices .cat-hero {
    border-radius: 10px;
  }

  .page-offices-list .gl-section > h3,
  .page-offices-state-list .gl-section > h3,
  .page-offices-detail .gl-section > h3 {
    font-size: 20px;
    margin-bottom: 16px;
    line-height: 1.3;
  }

  .page-category-offices .cat-hero::before {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.62) 0%,
      rgba(0, 0, 0, 0.38) 100%
    );
  }

  .page-category-offices .cat-hero__inner {
    padding: 28px 20px 24px;
  }

  .page-category-offices .cat-hero h3 {
    font-size: 28px;
  }

  .page-category-offices .cat-hero .page-lead {
    font-size: 15px;
  }
}

@media (max-width: 479px) {
  .page-category-offices,
  .page-offices-state-list,
  .page-offices-list,
  .page-offices-detail {
    --offices-content-top-gap: 8px;
  }

  .page-category-offices .cat-hero-wrap {
    margin-top: calc(
      var(--offices-header-h, 49px) + var(--offices-content-top-gap, 8px)
    );
  }
}

/* --------------------------------------------------------------------------
   5. page-offices-state-list
   -------------------------------------------------------------------------- */

.page-offices-state-list .gl-main {
  margin-top: calc(
    var(--offices-header-h, 83px) + var(--offices-content-top-gap, 10px)
  );
}

.page-offices-state-list .state-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: start;
  justify-items: stretch;
  width: 100%;
  max-width: 100%;
  padding-top: 0;
  box-sizing: border-box;
}

.page-offices-state-list .office-intro {
  margin-bottom: 16px;
}

.page-offices-state-list .office-intro__head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.page-offices-state-list .office-intro__icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(22, 3, 182, 0.08);
  color: #1a1b1f;
}

.page-offices-state-list .office-intro__icon svg {
  width: 32px;
  height: 32px;
  display: block;
}

.page-offices-state-list .office-intro__title {
  margin: 0;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #1a1b1f;
}

.page-offices-state-list .office-intro__lead {
  margin: 6px 0 0;
  font-size: 15px;
  color: #5b6573;
  line-height: 1.5;
}

.page-offices-state-list .state-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.page-offices-state-list .state-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 52px;
  padding: 10px 12px 10px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.page-offices-state-list .state-chip:hover {
  border-color: #b4abff;
  box-shadow: 0 4px 14px rgba(30, 32, 207, 0.08);
  color: var(--ink);
  text-decoration: none;
}

.page-offices-state-list .state-chip::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: 2px;
  border-right: 2px solid #1e20cf;
  border-top: 2px solid #1e20cf;
  transform: rotate(45deg);
  flex-shrink: 0;
  opacity: 0.55;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.page-offices-state-list .state-chip:hover::after {
  opacity: 1;
  transform: rotate(45deg) translate(1px, -1px);
}

.page-offices-state-list .state-chip__place {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.page-offices-state-list .state-chip__code {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #16325c;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.page-offices-state-list .state-chip:hover .state-chip__code {
  background: #0e2242;
}

.page-offices-state-list .state-chip__name {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-offices-state-list .state-chip__count {
  font-size: 12px;
  font-weight: 500;
  color: #5b6573;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
  text-align: right;
}

.page-offices-state-list .state-chip:hover .state-chip__count {
  color: #16325c;
}

@media (max-width: 991px) {
  .page-offices-state-list .state-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .page-offices-state-list .office-intro__head {
    gap: 12px;
  }

  .page-offices-state-list .office-intro__icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
  }

  .page-offices-state-list .office-intro__icon svg {
    width: 28px;
    height: 28px;
  }

  .page-offices-state-list .office-intro__title {
    font-size: 26px;
  }

  .page-offices-state-list .office-intro__lead {
    font-size: 14px;
  }
}

/* --------------------------------------------------------------------------
   6. page-offices-list / detail — shared chrome
   -------------------------------------------------------------------------- */

.page-offices-list .gl-main,
.page-offices-detail .gl-main {
  margin-top: calc(
    var(--offices-header-h, 83px) + var(--offices-content-top-gap, 10px)
  );
}

.page-offices-list .state-layout,
.page-offices-detail .state-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: start;
  padding-top: 0;
}

.page-offices-list .state-layout > div:first-child,
.page-offices-detail .state-layout > div:first-child {
  min-width: 0;
}

.page-offices-list .detail-head,
.page-offices-detail .detail-head {
  margin: 0 0 20px;
}

.page-offices-list .detail-head h1,
.page-offices-detail .detail-head h1 {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #1a1b1f;
}

/* list 无 meta 行，收掉标题下边距，避免与 filters 空隙叠加 */
.page-offices-list .detail-head h1:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   7. page-offices-list — filters / pager / cards
   -------------------------------------------------------------------------- */

/* 勿在 html 上 overflow-x:clip（iOS 会导致 fixed header 微滚） */
html:has(body.page-offices-list) {
  overscroll-behavior-y: none;
  background-color: #fff;
}

body.page-offices-list {
  overflow-x: clip;
  overscroll-behavior-y: none;
  background-color: #fff;
}

.page-offices-list .navbar-no-shadow {
  /* 盖住弹性回弹露出的缝 */
  isolation: isolate;
}

.page-offices-list .navbar-no-shadow::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 80px;
  background: #fff;
  pointer-events: none;
}

.page-offices-list .filters-bar__spacer {
  display: block;
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
}

.page-offices-list .filters-bar {
  position: relative;
  z-index: 40;
  margin: 0 -20px 18px;
  padding: 8px 20px 10px;
  background: #fff;
  box-sizing: border-box;
}

.page-offices-list .filters-bar.is-pinned {
  position: fixed;
  top: var(--offices-header-h, 83px);
  left: 0;
  right: 0;
  width: 100%;
  margin: 0;
  padding: 8px 20px 10px;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 12px rgba(28, 36, 48, 0.06);
  box-sizing: border-box;
}

/* PC：通栏白底贴 header（无浮层边角）；筛选项仍对齐主栏 */
@media (min-width: 992px) {
  .page-offices-list .filters-bar.is-pinned {
    padding: 8px 0 10px;
  }

  .page-offices-list .filters-bar.is-pinned .filters {
    margin-left: var(--filters-pin-left, 0px);
    width: var(--filters-pin-width, auto);
    max-width: 100%;
    box-sizing: border-box;
  }
}

.page-offices-list .filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
}

.page-offices-list .pager {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  justify-content: safe center;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  box-sizing: border-box;
}

.page-offices-list .pager::-webkit-scrollbar {
  display: none;
}

.page-offices-list .pager > * {
  flex: 0 0 auto;
}

.page-offices-list .pager a,
.page-offices-list .pager span {
  min-width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #e3e6eb;
  border-radius: 8px;
  background: #fff;
  color: #1a1b1f;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 0 8px;
  box-sizing: border-box;
}

.page-offices-list .pager a:hover {
  border-color: #b4abff;
  color: #1e20cf;
  text-decoration: none;
}

.page-offices-list .pager .is-current {
  background: #16325c;
  color: #fff;
  border-color: #16325c;
}

.page-offices-list .pager [aria-disabled="true"] {
  opacity: 0.4;
  pointer-events: none;
}

.page-offices-list .filters .filter-dropdown {
  position: relative;
  min-width: 0;
}

.page-offices-list .filter-dropdown__native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.page-offices-list .filter-dropdown__native[hidden] {
  display: none;
}

.page-offices-list .filter-dropdown__trigger {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px 0 14px;
  border: 1px solid #e3e6eb;
  border-radius: 10px;
  background: #fff;
  color: #1a1b1f;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.page-offices-list .filter-dropdown__trigger:hover,
.page-offices-list .filter-dropdown.is-open .filter-dropdown__trigger {
  border-color: #b4abff;
  background: #f7f8f9;
}

.page-offices-list .filter-dropdown__label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-offices-list .filter-dropdown__chevron {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  margin-right: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231a1b1f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
  transition: transform 0.15s ease;
}

.page-offices-list .filter-dropdown.is-open .filter-dropdown__chevron {
  transform: rotate(180deg);
}

.page-offices-list .filter-dropdown__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #fff;
  border: 1px solid #e3e6eb;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(14, 34, 66, 0.12);
  max-height: 260px;
  overflow-y: auto;
}

.page-offices-list .filter-dropdown__menu[hidden] {
  display: none;
}

.page-offices-list .filter-dropdown__option {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  color: #1a1b1f;
  cursor: pointer;
}

.page-offices-list .filter-dropdown__option:hover,
.page-offices-list .filter-dropdown__option.is-selected {
  background: rgba(22, 3, 182, 0.06);
  color: #1e20cf;
}

.page-offices-list .modal {
  position: fixed;
  inset: 0;
  background: rgba(14, 34, 66, 0.42);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
}

.page-offices-list .modal.is-open {
  display: flex;
}

.page-offices-list .modal__panel {
  width: min(560px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(14, 34, 66, 0.2);
}

.page-offices-list .modal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.page-offices-list .modal__head h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.page-offices-list .modal__close {
  border: 0;
  background: #f5f7f9;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
}

.page-offices-list .modal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.page-offices-list .field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #5a6573;
}

.page-offices-list .field .select {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 0 14px;
  color: #1a1b1f;
  font-size: 14px;
  font-weight: 600;
}

.page-offices-list .modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}

.page-offices-list .btn {
  height: 42px;
  border-radius: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-weight: 600;
}

.page-offices-list .btn--primary {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

@media (max-width: 991px) {
  .page-offices-list .filters-bar.is-pinned {
    top: var(--offices-header-h, 83px);
    padding: 8px 20px 12px;
  }

  .page-offices-list .filters {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
    overflow-x: auto;
    overflow-y: visible;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    /* 末项可完整滑入视口 */
    padding-right: 4px;
  }

  .page-offices-list .filters::-webkit-scrollbar {
    display: none;
  }

  .page-offices-list .filters .filter-dropdown {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    scroll-snap-align: start;
  }

  .page-offices-list .filter-dropdown.is-open {
    z-index: 50;
  }

  .page-offices-list .filter-dropdown__trigger {
    width: auto;
    min-width: 96px;
    max-width: none;
    height: 40px;
    padding: 0 14px 0 12px;
    font-size: 13px;
    white-space: nowrap;
  }

  .page-offices-list .filter-dropdown__label {
    flex: 0 1 auto;
  }

  .page-offices-list .filter-dropdown.is-open .filter-dropdown__menu {
    position: fixed;
    z-index: 200;
    right: auto;
    min-width: 160px;
    max-width: min(280px, calc(100vw - 32px));
  }

  .page-offices-list .detail-head,
  .page-offices-list .pager {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-offices-list .pager {
    gap: 4px;
    justify-content: safe center;
  }

  .page-offices-list .pager a,
  .page-offices-list .pager span {
    min-width: 32px;
    height: 32px;
    padding: 0 6px;
    font-size: 12px;
    border-radius: 7px;
  }
}

@media (max-width: 479px) {
  .page-offices-list .filters-bar {
    margin: 0 -16px 18px;
    padding: 8px 16px 12px;
  }

  .page-offices-list .filters-bar.is-pinned {
    top: var(--offices-header-h, 49px);
    padding: 8px 16px 12px;
  }

  .page-offices-list .filter-dropdown__trigger {
    height: 38px;
    min-width: 88px;
    padding: 0 12px 0 10px;
    font-size: 12px;
  }

  .page-offices-list .pager {
    gap: 3px;
  }

  .page-offices-list .pager a,
  .page-offices-list .pager span {
    min-width: 30px;
    height: 30px;
    padding: 0 4px;
    font-size: 12px;
    border-radius: 6px;
  }
}

@media (max-width: 640px) {
  .page-offices-list .modal__grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   8. page-offices-detail
   -------------------------------------------------------------------------- */

.page-offices-detail .detail-hero {
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid #e3e6eb;
  border-radius: 12px;
  background: #e8edf4;
  aspect-ratio: 21 / 9;
}

.page-offices-detail .detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-offices-detail .detail-head__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.page-offices-detail .detail-head__tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(22, 3, 182, 0.09);
  color: #1e20cf;
  font-size: 13px;
  font-weight: 600;
}

.page-offices-detail .detail-head__rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.page-offices-detail .detail-head__stars {
  --rating: 4.6;
  position: relative;
  display: inline-block;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 1px;
}

.page-offices-detail .detail-head__stars::before,
.page-offices-detail .detail-head__stars::after {
  content: "★★★★★";
}

.page-offices-detail .detail-head__stars::before {
  color: #d1d5db;
}

.page-offices-detail .detail-head__stars::after {
  position: absolute;
  inset: 0 auto auto 0;
  width: calc(var(--rating) / 5 * 100%);
  overflow: hidden;
  color: #f59e0b;
  white-space: nowrap;
}

.page-offices-detail .detail-head__score {
  font-size: 14px;
  font-weight: 600;
  color: #5b6573;
}

.page-offices-detail .detail-head__reviews-count {
  font-size: 14px;
  color: #5b6573;
}

.page-offices-detail .detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.95fr);
  gap: 20px 24px;
  align-items: stretch;
  margin-bottom: 20px;
}

.page-offices-detail .detail-layout > * {
  min-width: 0;
}

.page-offices-detail .detail-contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: 8px 4px;
  border: 1px solid #e6ebf0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(22, 50, 92, 0.05);
}

.page-offices-detail .detail-contact__row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
}

.page-offices-detail .detail-contact__row + .detail-contact__row {
  border-top: 1px solid #eef1f4;
}

.page-offices-detail .detail-contact__icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e7f5f1;
  color: #0d7a66;
}

.page-offices-detail .detail-contact__icon svg {
  width: 20px;
  height: 20px;
}

.page-offices-detail .detail-contact__body {
  min-width: 0;
  flex: 1;
}

.page-offices-detail .detail-contact__label {
  margin-bottom: 4px;
  color: #0d7a66;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.page-offices-detail .detail-contact__value {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: #1a1b1f;
  overflow-wrap: anywhere;
}

.page-offices-detail .detail-contact__value--url {
  font-size: 14px;
  font-weight: 500;
}

.page-offices-detail .detail-contact__value a {
  color: #1e20cf;
  text-decoration: none;
}

.page-offices-detail .detail-contact__value a:hover {
  text-decoration: underline;
}

.page-offices-detail .hours-board {
  margin-bottom: 24px;
  padding: 22px 24px 18px;
  border: 1px solid #e6ebf0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(22, 50, 92, 0.05);
}

.page-offices-detail .hours-board__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.page-offices-detail .hours-board__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e7f5f1;
  color: #0d7a66;
}

.page-offices-detail .hours-board__icon svg {
  width: 22px;
  height: 22px;
}

.page-offices-detail .hours-board__title {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #16325c;
}

.page-offices-detail .hours-board__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(4, auto);
  grid-auto-flow: column;
  column-gap: 28px;
}

.page-offices-detail .hours-board__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 8px 10px;
  border-bottom: 1px solid #eef1f4;
  border-radius: 8px;
}

.page-offices-detail .hours-board__day {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #5b6573;
  font-size: 14px;
  font-weight: 500;
}

.page-offices-detail .hours-board__day svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #8b95a5;
}

.page-offices-detail .hours-board__time {
  color: #1a1b1f;
  font-size: 14px;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.page-offices-detail .hours-board__row.is-today {
  background: #eef8f4;
}

.page-offices-detail .hours-board__row.is-today .hours-board__day,
.page-offices-detail .hours-board__row.is-today .hours-board__time,
.page-offices-detail .hours-board__row.is-today .hours-board__day svg {
  color: #0d7a66;
  font-weight: 500;
}

.page-offices-detail .hours-board__row.is-closed .hours-board__time {
  color: #d14343;
  font-weight: 500;
}

.page-offices-detail .hours-board__fallback {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: #1a1b1f;
  line-height: 1.5;
}

.page-offices-detail .detail-map {
  position: relative;
  width: 100%;
  min-height: 280px;
  height: 100%;
  border: 1px solid #e3e6eb;
  border-radius: 16px;
  overflow: hidden;
  background: #e8edf4;
  box-shadow: 0 8px 24px rgba(22, 50, 92, 0.05);
}

.page-offices-detail .detail-map--empty {
  min-height: 56px;
  height: auto;
  display: flex;
  align-items: flex-start;
  padding: 12px;
  background: #f7f8f9;
}

.page-offices-detail .detail-map__open {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border: 1.5px solid #1e20cf;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  color: #1e20cf;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(26, 27, 31, 0.06);
}

.page-offices-detail .detail-map__open:hover {
  background: #fff;
  text-decoration: none;
}

.page-offices-detail .detail-map__open svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.page-offices-detail .detail-map--empty .detail-map__open {
  position: static;
}

.page-offices-detail .detail-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.page-offices-detail .reviews-section {
  margin-bottom: 48px;
}

.page-offices-detail .reviews-section > h3,
.page-offices-detail .nearby-section > h3 {
  margin: 0 0 20px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.page-offices-detail .review-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-offices-detail .review {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border: 1px solid #e3e6eb;
  border-radius: 12px;
  background: #fff;
}

.page-offices-detail .review__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #f7f8f9;
}

.page-offices-detail .review__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  margin-bottom: 6px;
}

.page-offices-detail .review__name {
  font-size: 15px;
  font-weight: 500;
  color: #1a1b1f;
}

.page-offices-detail .review__date {
  font-size: 13px;
  color: #8b919a;
}

.page-offices-detail .review__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #505058;
}

@media (max-width: 991px) {
  .page-offices-detail .detail-layout {
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-offices-detail .detail-head,
  .page-offices-detail .detail-hero,
  .page-offices-detail .hours-board,
  .page-offices-detail .reviews-section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-offices-detail .detail-head__tag {
    display: none;
  }

  .page-offices-detail .detail-map {
    min-height: 220px;
    height: 240px;
  }

  .page-offices-detail .hours-board__grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-flow: row;
  }

  .page-offices-list .detail-head h1,
  .page-offices-detail .detail-head h1 {
    font-size: 26px;
  }

  .page-offices-detail .detail-hero {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 640px) {
  .page-offices-list .detail-head h1,
  .page-offices-detail .detail-head h1 {
    font-size: 22px;
  }

  .page-offices-detail .detail-map {
    height: 200px;
    min-height: 200px;
  }

  .page-offices-detail .hours-board {
    padding: 18px 16px 14px;
  }

  .page-offices-detail .detail-contact__row {
    padding: 14px 16px;
  }

  .page-offices-detail .office-grid {
    grid-template-columns: 1fr;
  }

  .page-offices-detail .review {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .page-offices-detail .review__avatar {
    width: 40px;
    height: 40px;
  }
}

/* --------------------------------------------------------------------------
   9. Shared mobile layout (双栏 → 单栏全宽)
   -------------------------------------------------------------------------- */

@media (max-width: 991px) {
  .page-offices-state-list .gl-main,
  .page-offices-list .gl-main,
  .page-offices-detail .gl-main {
    margin-top: calc(
      var(--offices-header-h, 83px) + var(--offices-content-top-gap, 10px)
    );
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  .page-category-offices .cat-layout,
  .page-offices-state-list .state-layout,
  .page-offices-list .state-layout,
  .page-offices-detail .state-layout {
    display: block;
    width: 100%;
    max-width: 100%;
  }

  .page-category-offices .cat-layout__main,
  .page-category-offices .cat-layout > div:first-child,
  .page-category-offices .cat-layout .side-card,
  .page-offices-state-list .state-layout__main,
  .page-offices-state-list .state-layout > div:first-child,
  .page-offices-state-list .state-layout .side-card,
  .page-offices-list .state-layout__main,
  .page-offices-list .state-layout > div:first-child,
  .page-offices-list .state-layout .side-card,
  .page-offices-detail .state-layout__main,
  .page-offices-detail .state-layout > div:first-child,
  .page-offices-detail .state-layout .side-card {
    width: 100%;
    max-width: 100%;
  }

  .page-category-offices .side-card,
  .page-offices-state-list .side-card,
  .page-offices-list .side-card,
  .page-offices-detail .side-card {
    position: static;
  }

  .page-category-offices .gl-section,
  .page-offices-state-list .gl-section,
  .page-offices-list .gl-section,
  .page-offices-detail .gl-section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-category-offices .office-ad,
  .page-offices-state-list .office-ad,
  .page-offices-list .office-ad,
  .page-offices-detail .office-ad {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-category-offices .tile-grid,
  .page-offices-state-list .tile-grid,
  .page-offices-list .tile-grid,
  .page-offices-detail .tile-grid {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
  }

  .page-category-offices .office-grid,
  .page-offices-list .office-grid,
  .page-offices-detail .office-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    gap: 16px;
  }
}

@media (max-width: 479px) {
  .page-offices-state-list .gl-main,
  .page-offices-list .gl-main,
  .page-offices-detail .gl-main {
    margin-top: calc(
      var(--offices-header-h, 49px) + var(--offices-content-top-gap, 8px)
    );
  }

  body.page-category-offices .gl-wrap,
  .page-category-offices .gl-wrap,
  body.page-offices-state-list .gl-wrap,
  .page-offices-state-list .gl-wrap,
  body.page-offices-list .gl-wrap,
  .page-offices-list .gl-wrap,
  body.page-offices-detail .gl-wrap,
  .page-offices-detail .gl-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
}
