:root {
  --orange: #f47b20;
  --orange-dark: #d95d12;
  --ink: #20242a;
  --muted: #6f7782;
  --line: #e8eaee;
  --paper: #ffffff;
  --soft: #f6f7f9;
  --blue: #1264d8;
  --green: #18845f;
  --shadow: 0 14px 32px rgba(34, 38, 45, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f2f3f5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.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;
}

.topbar {
  color: #5b6270;
  background: #f8f8f8;
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 38px;
  font-size: 14px;
}

.topbar-inner p {
  margin: 0;
  flex: 1;
}

.top-links {
  display: flex;
  gap: 14px;
}

.top-links a:hover,
.section-head a:hover,
.notice-list a:hover {
  color: var(--orange-dark);
}

.city-picker {
  position: relative;
}

.city-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  color: var(--orange-dark);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.chevron {
  font-size: 13px;
}

.city-panel {
  position: absolute;
  z-index: 20;
  top: 31px;
  left: 0;
  width: min(520px, calc(100vw - 32px));
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.city-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.city-tabs button,
.city-list button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.city-tabs button {
  padding: 5px 10px;
  color: var(--muted);
}

.city-tabs .active {
  color: #fff;
  background: var(--orange);
}

.city-list {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding-top: 12px;
}

.city-list.active {
  display: grid;
}

.city-list button {
  padding: 7px 8px;
  text-align: left;
  color: #4d5561;
}

.city-list button:hover {
  color: var(--orange-dark);
  background: #fff4ec;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 96px;
  background: #fff;
}

.logo {
  display: inline-flex;
  align-items: center;
  min-width: 236px;
  gap: 11px;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #fff;
  font-weight: 800;
  background: var(--orange);
  border-radius: 8px;
}

.logo strong,
.logo em {
  display: block;
}

.logo strong {
  font-size: 27px;
  letter-spacing: 0;
}

.logo em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.search {
  display: flex;
  flex: 1;
  max-width: 560px;
  height: 44px;
  border: 2px solid var(--orange);
  background: #fff;
}

.search input {
  flex: 1;
  min-width: 0;
  padding: 0 14px;
  border: 0;
  outline: 0;
}

.search button {
  width: 98px;
  color: #fff;
  background: var(--orange);
  border: 0;
  cursor: pointer;
}

.brand-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.link-button,
.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  cursor: pointer;
}

.link-button {
  color: var(--orange-dark);
  background: #fff4ec;
  border-color: #ffd6ba;
}

.primary-button {
  color: #fff;
  background: var(--orange);
  border-color: var(--orange);
}

.primary-button:hover,
.search button:hover {
  background: var(--orange-dark);
}

.ghost-button {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.62);
}

.main-nav {
  background: var(--orange);
}

.nav-inner {
  display: flex;
  min-height: 46px;
  overflow-x: auto;
}

.nav-inner a {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 0 18px;
  color: #fff;
  font-weight: 600;
}

.nav-inner a:hover,
.nav-inner .active {
  background: var(--orange-dark);
}

.hero {
  padding: 22px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 244px 1fr 300px;
  gap: 18px;
}

.category-card,
.notice-card,
.panel,
.service-item,
.listing-table {
  background: var(--paper);
  border: 1px solid var(--line);
}

.category-title {
  padding: 14px 16px;
  color: #fff;
  font-weight: 700;
  background: #3a3f47;
}

.category-card a {
  display: block;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.category-card a:last-child {
  border-bottom: 0;
}

.category-card strong,
.category-card span {
  display: block;
}

.category-card strong {
  font-size: 16px;
}

.category-card span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.category-card a:hover {
  background: #fff7f1;
}

.hero-main {
  min-height: 358px;
  padding: 42px;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(18, 37, 70, 0.88), rgba(244, 123, 32, 0.78)),
    url("https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=1400&q=80") center / cover;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--orange-dark);
  font-weight: 700;
  font-size: 13px;
}

.hero-copy .eyebrow {
  color: #ffe0c5;
}

.hero-copy h1 {
  max-width: 620px;
  margin: 0;
  font-size: 42px;
  line-height: 1.16;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 640px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 42px;
  background: rgba(255, 255, 255, 0.24);
}

.hero-stats div {
  padding: 16px;
  background: rgba(0, 0, 0, 0.16);
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  font-size: 26px;
}

.hero-stats span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.notice-card {
  padding: 17px;
}

.card-head,
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.card-head h2,
.section-head h2 {
  margin: 0;
  font-size: 22px;
}

.card-head a,
.section-head a {
  color: var(--muted);
  font-size: 14px;
}

.notice-list {
  list-style: none;
  padding: 8px 0 0;
  margin: 0;
}

.notice-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
}

.notice-list li:last-child {
  border-bottom: 0;
}

.notice-list a {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice-list time {
  color: var(--muted);
  font-size: 13px;
}

.service-section,
.two-column,
.listing-section {
  margin-bottom: 28px;
}

.section-head {
  margin-bottom: 14px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-item {
  position: relative;
  padding: 22px;
}

.service-item h3 {
  margin: 0 0 10px;
  font-size: 19px;
}

.service-item p {
  margin: 0 0 18px;
  color: var(--muted);
}

.item-tag {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 3px 8px;
  color: var(--green);
  background: #eaf8f2;
  font-size: 13px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta span {
  padding: 4px 8px;
  color: #536070;
  background: var(--soft);
  font-size: 13px;
}

.two-column {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.panel {
  padding: 22px;
}

.compact {
  margin-bottom: 10px;
}

.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.process-list li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.process-list li:last-child {
  border-bottom: 0;
}

.process-list span {
  color: var(--orange-dark);
  font-weight: 800;
}

.process-list strong,
.process-list p {
  display: block;
  margin: 0;
}

.process-list p {
  margin-top: 4px;
  color: var(--muted);
}

.check-form {
  display: grid;
  gap: 13px;
}

.check-form label,
.lead-form label {
  display: grid;
  gap: 6px;
  color: #434b56;
  font-size: 14px;
}

.check-form input,
.check-form select,
.lead-form input,
.lead-form select {
  min-height: 42px;
  padding: 0 12px;
  color: var(--ink);
  border: 1px solid var(--line);
  outline: 0;
}

.check-form input:focus,
.check-form select:focus,
.lead-form input:focus,
.lead-form select:focus,
.search input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(244, 123, 32, 0.12);
}

.checkbox-line {
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: 8px !important;
}

.checkbox-line input {
  min-height: auto;
}

.full {
  width: 100%;
}

.check-result,
.form-tip {
  min-height: 22px;
  margin: 0;
  color: var(--green);
  font-size: 14px;
}

.listing-table {
  display: grid;
}

.table-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 120px 140px 90px;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.table-row:last-child {
  border-bottom: 0;
}

.table-row:not(.table-head):hover {
  background: #fff7f1;
}

.table-head {
  color: #fff;
  font-weight: 700;
  background: #3a3f47;
}

.footer {
  padding: 28px 0;
  color: #dce1e8;
  background: #262b33;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 28px;
  align-items: start;
}

.footer p {
  max-width: 640px;
  margin: 8px 0 0;
  color: #aeb6c2;
}

.footer span,
.footer strong {
  display: block;
}

.footer span {
  color: #aeb6c2;
  font-size: 13px;
}

.footer-record {
  text-align: center;
  color: #aeb6c2;
  font-size: 13px;
}

.footer-record a:hover {
  color: #fff;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 18, 24, 0.58);
}

.modal-card {
  position: relative;
  width: min(440px, 100%);
  padding: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.modal-card h2 {
  margin: 0 0 16px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  background: var(--soft);
  cursor: pointer;
  font-size: 22px;
}

.lead-form {
  display: grid;
  gap: 13px;
}

@media (max-width: 1020px) {
  .brand-row {
    flex-wrap: wrap;
    padding: 18px 0;
  }

  .search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }

  .hero-grid {
    grid-template-columns: 220px 1fr;
  }

  .notice-card {
    grid-column: 1 / -1;
  }

  .service-grid,
  .two-column {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 22px, 1200px);
  }

  .topbar-inner {
    flex-wrap: wrap;
    gap: 10px;
    padding: 9px 0;
  }

  .topbar-inner p {
    flex-basis: 100%;
  }

  .brand-actions {
    width: 100%;
    margin-left: 0;
  }

  .brand-actions > * {
    flex: 1;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-main {
    padding: 28px 20px;
    min-height: 0;
  }

  .hero-copy h1 {
    font-size: 31px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .city-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .table-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .table-head {
    display: none;
  }

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