:root {
  --navy: #073b6f;
  --blue: #0878bd;
  --ink: #172638;
  --muted: #647286;
  --line: #dbe3eb;
  --soft-line: #e9eef3;
  --paper: #ffffff;
  --canvas: #f4f7fa;
  --orange: #e97918;
  --orange-dark: #c95f0d;
  --focus: #f5a623;
  --page-width: 1180px;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 55%, transparent);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.topbar {
  position: relative;
  z-index: 20;
  min-height: 88px;
  padding: 8px max(22px, calc((100vw - var(--page-width)) / 2));
  display: grid;
  grid-template-columns: minmax(250px, 360px) 1fr auto;
  align-items: center;
  gap: 24px;
  color: var(--ink);
  background: #fff;
  border-bottom: 4px solid var(--orange);
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: min(100%, 330px);
  height: 68px;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.brand-positioning {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
}

.brand-positioning strong {
  color: var(--navy);
  font-size: 16px;
  line-height: 1.4;
}

.brand-positioning span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.contact-button,
.catalog-note button,
.detail-contact,
.empty-state button {
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.contact-button:hover,
.catalog-note button:hover,
.detail-contact:hover,
.empty-state button:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}

main {
  width: min(100%, var(--page-width));
  margin: 0 auto;
  padding: 0 24px 72px;
}

.catalog-intro {
  min-height: 220px;
  padding: 42px 0 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.72fr);
  align-items: end;
  gap: 52px;
  border-bottom: 1px solid var(--line);
}

.intro-copy {
  min-width: 0;
}

.eyebrow,
.dialog-eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-family: Consolas, "Microsoft YaHei", monospace;
  font-size: 12px;
  font-weight: 800;
}

.catalog-intro h1 {
  margin: 0;
  color: var(--navy);
  font-size: 38px;
  line-height: 1.18;
  font-weight: 900;
}

.intro-summary {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.catalog-stats {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 2px solid var(--navy);
  border-bottom: 1px solid var(--line);
}

.catalog-stats div {
  min-width: 0;
  padding: 18px 12px 16px;
  border-right: 1px solid var(--line);
}

.catalog-stats div:last-child {
  border-right: 0;
}

.catalog-stats dt {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
}

.catalog-stats dd {
  margin: 0;
  color: var(--navy);
  font-family: Arial, "Microsoft YaHei", sans-serif;
  font-size: 25px;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.catalog-tools {
  position: sticky;
  top: 0;
  z-index: 10;
  margin: 0 -24px;
  padding: 18px 24px 14px;
  background: rgba(244, 247, 250, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.search-wrap {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.search-wrap > label {
  color: var(--navy);
  font-size: 14px;
  font-weight: 900;
}

.search-control {
  position: relative;
}

.search-control input {
  width: 100%;
  height: 48px;
  padding: 0 48px 0 16px;
  border: 1px solid #bdcbd8;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.search-control input::placeholder {
  color: #8995a4;
}

.search-control input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(8, 120, 189, 0.12);
}

.clear-search {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #edf2f6;
  color: #526174;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.category-nav {
  margin-top: 13px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.category-tab {
  min-width: 0;
  min-height: 40px;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #445268;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.category-tab small {
  min-width: 22px;
  height: 20px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #edf2f6;
  color: #69778a;
  font-size: 11px;
}

.category-tab:hover,
.category-tab.is-active {
  border-color: var(--tab-color);
  color: var(--tab-color);
}

.category-tab.is-active {
  background: color-mix(in srgb, var(--tab-color) 8%, #fff);
  box-shadow: inset 0 -3px 0 var(--tab-color);
}

.category-tab.is-active small {
  background: var(--tab-color);
  color: #fff;
}

.result-status {
  min-height: 36px;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 13px;
}

.result-status button {
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.catalog {
  padding-top: 28px;
}

.category-section {
  margin-bottom: 38px;
  scroll-margin-top: 220px;
  background: var(--paper);
  border-top: 4px solid var(--category-color);
  border-bottom: 1px solid var(--line);
}

.category-header {
  min-height: 102px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  background: color-mix(in srgb, var(--category-color) 7%, #fff);
}

.category-number {
  color: var(--category-color);
  font-family: Consolas, Arial, sans-serif;
  font-size: 28px;
  font-weight: 900;
}

.category-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.35;
}

.category-header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.category-header > strong {
  color: var(--category-color);
  font-size: 14px;
  white-space: nowrap;
}

.column-head,
.service-row {
  display: grid;
  grid-template-columns: 68px minmax(260px, 1.4fr) 180px 140px 120px 42px;
  align-items: center;
}

.column-head {
  min-height: 42px;
  padding: 0 12px;
  background: #eef3f7;
  color: #657286;
  font-size: 12px;
  font-weight: 800;
}

.column-head span:not(:nth-child(2)) {
  text-align: center;
}

.service-entry {
  border-top: 1px solid var(--soft-line);
}

.service-row {
  width: 100%;
  min-height: 68px;
  padding: 0 12px;
  border: 0;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: background 150ms ease;
}

.service-row:hover,
.service-row[aria-expanded="true"] {
  background: color-mix(in srgb, var(--category-color) 5%, #fff);
}

.service-index {
  color: #8793a2;
  font-family: Consolas, Arial, sans-serif;
  font-size: 13px;
  text-align: center;
}

.service-name {
  min-width: 0;
  padding-right: 24px;
  color: #26374b;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.service-metric {
  min-width: 0;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-align: center;
}

.service-metric small {
  display: none;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.service-metric strong {
  max-width: 100%;
  color: #435267;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.service-price strong,
.service-rate strong {
  color: var(--category-color);
}

.row-toggle {
  width: 11px;
  height: 11px;
  justify-self: center;
  border-right: 2px solid var(--category-color);
  border-bottom: 2px solid var(--category-color);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 160ms ease;
}

.service-row[aria-expanded="true"] .row-toggle {
  transform: rotate(225deg) translate(-1px, -1px);
}

.service-detail {
  min-height: 76px;
  padding: 15px 20px 16px 80px;
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  background: #f7f9fb;
  border-top: 1px dashed #cdd7e1;
}

.detail-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.service-detail p {
  margin: 0;
  color: #35465a;
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.detail-contact {
  min-height: 36px;
  padding: 0 14px;
  font-size: 12px;
}

.empty-state {
  padding: 70px 24px 90px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.empty-state strong {
  display: block;
  color: var(--navy);
  font-size: 20px;
}

.empty-state p {
  margin: 10px 0 22px;
  color: var(--muted);
}

.catalog-note {
  margin-top: 18px;
  padding: 28px 30px;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  color: #fff;
  background: #263c53;
  border-left: 5px solid var(--orange);
}

.catalog-note strong {
  font-size: 17px;
}

.catalog-note p {
  margin: 0;
  color: #d5e0ea;
  font-size: 13px;
  line-height: 1.7;
}

.footer {
  color: #d4dfeb;
  background: #10263c;
}

.footer-inner {
  width: min(100%, var(--page-width));
  margin: 0 auto;
  padding: 38px 24px;
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  align-items: center;
  gap: 48px;
}

.footer-brand,
.footer-contact,
.footer-qr {
  display: flex;
  flex-direction: column;
}

.footer-brand {
  gap: 9px;
}

.footer-brand strong {
  color: #fff;
  font-size: 20px;
}

.footer-brand span,
.footer-contact,
.footer-qr span {
  font-size: 12px;
  line-height: 1.7;
}

.footer-contact {
  gap: 5px;
}

.footer-contact a {
  color: #fff;
  text-decoration: none;
}

.footer-qr {
  align-items: center;
  gap: 8px;
}

.footer-qr img {
  width: 88px;
  height: 88px;
  display: block;
  object-fit: cover;
  background: #fff;
}

.footer-bottom {
  padding: 15px 24px;
  color: #91a5b8;
  background: #0b1e30;
  border-top: 1px solid #243a50;
  font-size: 11px;
  text-align: center;
}

.contact-dialog {
  width: min(92vw, 430px);
  padding: 30px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 24px 70px rgba(7, 35, 61, 0.3);
  text-align: center;
}

.contact-dialog::backdrop {
  background: rgba(6, 28, 49, 0.7);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #eef3f7;
  color: #536276;
  font-size: 23px;
  cursor: pointer;
}

.contact-dialog h2 {
  margin: 0;
  color: var(--navy);
  font-size: 23px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.contact-dialog > p:not(.dialog-eyebrow) {
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.contact-dialog > img {
  width: 180px;
  height: 180px;
  display: block;
  margin: 0 auto;
  object-fit: cover;
  border: 1px solid var(--line);
}

.dialog-contact-lines {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #435267;
  font-size: 13px;
}

.dialog-contact-lines a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: minmax(210px, 280px) 1fr auto;
    gap: 14px;
  }

  .brand-positioning span {
    display: none;
  }

  .catalog-intro {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .catalog-stats {
    max-width: 560px;
  }

  .column-head,
  .service-row {
    grid-template-columns: 60px minmax(220px, 1.4fr) 150px 115px 100px 38px;
  }

  .service-detail {
    padding-left: 72px;
  }
}

@media (max-width: 680px) {
  .topbar {
    min-height: 68px;
    padding: 6px 14px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    border-bottom-width: 3px;
  }

  .brand img {
    width: 190px;
    height: 52px;
  }

  .brand-positioning {
    display: none;
  }

  .contact-button {
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }

  main {
    padding: 0 14px 48px;
  }

  .catalog-intro {
    min-height: 0;
    padding: 28px 0 26px;
    gap: 24px;
  }

  .catalog-intro h1 {
    font-size: 28px;
  }

  .intro-summary {
    margin-top: 9px;
    font-size: 14px;
  }

  .catalog-stats {
    width: 100%;
  }

  .catalog-stats div {
    padding: 14px 8px 13px;
  }

  .catalog-stats dd {
    font-size: 18px;
  }

  .catalog-tools {
    margin: 0 -14px;
    padding: 12px 14px 10px;
  }

  .search-wrap {
    display: block;
  }

  .search-wrap > label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .search-control input {
    height: 44px;
    font-size: 14px;
  }

  .category-nav {
    margin: 10px -14px 0;
    padding: 0 14px 2px;
    display: flex;
    gap: 7px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .category-nav::-webkit-scrollbar {
    display: none;
  }

  .category-tab {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 4px 10px;
  }

  .result-status {
    padding-top: 8px;
    font-size: 12px;
  }

  .catalog {
    padding-top: 18px;
  }

  .category-section {
    margin: 0 -14px 28px;
    border-top-width: 4px;
  }

  .category-header {
    min-height: 88px;
    padding: 15px 14px;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .category-number {
    font-size: 22px;
  }

  .category-header h2 {
    font-size: 17px;
  }

  .category-header p {
    font-size: 11px;
  }

  .category-header > strong {
    font-size: 12px;
  }

  .column-head {
    display: none;
  }

  .service-row {
    min-height: 102px;
    padding: 14px 10px 12px;
    grid-template-columns: 42px repeat(3, minmax(0, 1fr)) 28px;
    grid-template-rows: auto auto;
    align-items: start;
    row-gap: 12px;
  }

  .service-index {
    grid-column: 1;
    grid-row: 1 / 3;
    padding-top: 2px;
  }

  .service-name {
    grid-column: 2 / 5;
    grid-row: 1;
    padding: 0 8px 0 0;
    font-size: 15px;
    line-height: 1.45;
  }

  .service-metric {
    grid-row: 2;
    padding: 0 7px;
    align-items: flex-start;
    text-align: left;
    border-left: 1px solid var(--line);
  }

  .service-price {
    grid-column: 2;
    border-left: 0;
    padding-left: 0;
  }

  .service-row > .service-metric:nth-child(4) {
    grid-column: 3;
  }

  .service-rate {
    grid-column: 4;
  }

  .service-metric small {
    display: block;
  }

  .service-metric strong {
    font-size: 12px;
    line-height: 1.35;
  }

  .row-toggle {
    grid-column: 5;
    grid-row: 1;
    margin-top: 5px;
  }

  .service-detail {
    padding: 14px 14px 16px 52px;
    display: block;
  }

  .detail-label {
    display: block;
    margin-bottom: 5px;
  }

  .service-detail p {
    font-size: 13px;
  }

  .detail-contact {
    margin-top: 12px;
  }

  .catalog-note {
    margin: 10px -14px 0;
    padding: 24px 20px;
    display: block;
  }

  .catalog-note p {
    margin: 8px 0 18px;
  }

  .footer-inner {
    padding: 30px 20px;
    grid-template-columns: 1fr auto;
    gap: 28px 18px;
  }

  .footer-contact {
    grid-column: 1;
    grid-row: 2;
  }

  .footer-qr {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .footer-qr img {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 390px) {
  .brand img {
    width: 160px;
  }

  .catalog-stats dd {
    font-size: 16px;
  }

  .category-header {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .category-header > strong {
    display: none;
  }

  .service-row {
    grid-template-columns: 36px repeat(3, minmax(0, 1fr)) 24px;
  }

  .service-detail {
    padding-left: 46px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-contact,
  .footer-qr {
    grid-column: 1;
    grid-row: auto;
  }

  .footer-qr {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
