:root {
  color-scheme: light;
  --ink: #17212b;
  --muted: #5c6875;
  --line: #dce3ea;
  --paper: #ffffff;
  --soft: #f5f7f9;
  --brand: #0b6f68;
  --brand-dark: #084c49;
  --accent: #c6462f;
  --shadow: 0 12px 30px rgba(23, 33, 43, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
  background: var(--paper);
}

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

img {
  display: block;
  width: 100%;
  height: auto;
}

.topbar {
  background: var(--brand-dark);
  color: #fff;
  font-size: 14px;
}

.topbar .inner,
.nav .inner,
.section,
.footer .inner {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.topbar .inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
}

.brand span {
  display: grid;
  gap: 1px;
}

.brand strong {
  color: var(--brand-dark);
  font-size: 22px;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #33404d;
  font-size: 15px;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--brand);
}

.hero {
  background: linear-gradient(180deg, #e9f2ef 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}

.hero .section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 36px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 50px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.25;
}

h1 {
  font-size: 42px;
  letter-spacing: 0;
}

h2 {
  font-size: 28px;
}

h3 {
  font-size: 20px;
}

p {
  margin: 0;
}

.lead {
  margin-top: 18px;
  color: #3f4d5a;
  font-size: 18px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--brand);
  border-radius: 6px;
  color: var(--brand);
  font-weight: 700;
}

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

.hero-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.hero-panel dl {
  display: grid;
  gap: 16px;
  margin: 0;
}

.hero-panel dt {
  color: var(--muted);
  font-size: 14px;
}

.hero-panel dd {
  margin: 4px 0 0;
  font-weight: 700;
}

.section {
  padding-top: 48px;
  padding-bottom: 48px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-head p {
  color: var(--muted);
  max-width: 620px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.services {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.grid.cases {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  overflow: hidden;
}

.card-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.card p,
.muted {
  color: var(--muted);
}

.case-cover {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--soft);
}

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

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef6f4;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 700;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.category-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--brand-dark);
  font-weight: 700;
}

.knowledge-group {
  margin-top: 36px;
}

.knowledge-card h3 a {
  color: var(--ink);
}

.knowledge-card a {
  color: var(--brand);
  font-weight: 700;
}

.mini-program-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 28px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.mini-program-copy {
  display: grid;
  gap: 12px;
}

.mini-program-copy p:not(.eyebrow) {
  color: var(--muted);
  max-width: 720px;
}

.mini-program-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.mini-program-actions span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 700;
}

.mini-program-qr {
  margin: 0;
}

.mini-program-qr img {
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 12px;
  background: #fff;
}

.mini-program-qr figcaption {
  display: grid;
  gap: 3px;
}

.mini-program-qr figcaption strong {
  color: var(--ink);
}

.admin-login-section {
  min-height: calc(100vh - 69px);
  display: grid;
  align-items: center;
  padding: 56px 20px;
  background:
    linear-gradient(135deg, rgba(11, 111, 104, 0.1), rgba(198, 70, 47, 0.08)),
    var(--soft);
}

.admin-login-shell {
  width: min(1040px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 34px;
  align-items: center;
}

.admin-login-info {
  display: grid;
  gap: 18px;
}

.admin-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-feature-list span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 700;
}

.admin-login-card {
  display: grid;
  gap: 16px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.admin-login-logo {
  width: 68px;
  height: 68px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.admin-login-card label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.admin-login-card input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  outline: none;
}

.admin-login-card input:focus {
  border-color: var(--brand);
}

.admin-submit {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.admin-login-message {
  min-height: 24px;
  color: var(--muted);
  font-size: 14px;
}

.admin-login-message.error {
  color: var(--accent);
}

.admin-endpoints {
  display: grid;
  gap: 8px;
  padding-top: 6px;
}

.admin-endpoints span {
  display: block;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
  color: var(--muted);
  font-size: 13px;
}

.knowledge-article section p + p {
  margin-top: 12px;
}

.related-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.related-list a {
  display: block;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--brand-dark);
  font-weight: 700;
}

.band {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 30px;
}

.info-list {
  display: grid;
  gap: 14px;
}

.info-list div {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.info-list strong {
  display: block;
  margin-bottom: 4px;
}

.article {
  display: grid;
  gap: 26px;
}

.article section {
  display: grid;
  gap: 10px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.company-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 18px;
}

.company-stack {
  display: grid;
  gap: 18px;
}

.company-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.construction-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.company-photo img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.construction-card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.company-photo.featured img {
  height: 100%;
  min-height: 440px;
}

.company-photo figcaption {
  display: grid;
  gap: 3px;
}

.construction-card figcaption {
  display: grid;
  gap: 4px;
  min-height: 126px;
}

.company-photo figcaption strong {
  color: var(--ink);
}

.construction-card figcaption strong {
  color: var(--ink);
}

.company-photo figcaption span {
  color: var(--muted);
}

.construction-card figcaption span {
  color: var(--muted);
}

.contact-photo {
  margin-bottom: 22px;
}

.license-preview,
.license-image {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.license-preview img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.license-image img {
  object-fit: contain;
  background: #fff;
}

figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

figcaption {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
}

.footer {
  background: #14212a;
  color: #dce5ea;
}

.footer .inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  padding-top: 34px;
  padding-bottom: 34px;
}

.footer strong {
  color: #fff;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.footer-brand img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
}

.record {
  margin-top: 12px;
  color: #b7c5ce;
  font-size: 14px;
}

.social-links {
  margin-top: 14px;
}

.social-links div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #d8e2e8;
  border-radius: 6px;
  color: #0b6f68;
  background: #fff;
  font-size: 14px;
  text-decoration: none;
}

.footer-social strong {
  display: block;
  margin-top: 4px;
}

.footer-social a {
  border-color: rgba(255, 255, 255, .2);
  color: #d8f3ee;
  background: rgba(255, 255, 255, .08);
}

@media (max-width: 900px) {
  .hero .section,
  .two-col,
  .mini-program-panel,
  .admin-login-shell,
  .footer .inner {
    grid-template-columns: 1fr;
  }

  .mini-program-panel {
    padding: 22px;
  }

  .mini-program-qr {
    max-width: 260px;
  }

  .admin-login-shell {
    gap: 24px;
  }

  .grid.services,
  .grid.cases,
  .construction-grid,
  .company-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .company-showcase {
    grid-template-columns: 1fr;
  }

  .company-photo.featured img {
    min-height: 0;
  }

  .nav .inner {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  h1 {
    font-size: 34px;
  }
}

@media (max-width: 620px) {
  .topbar .inner {
    flex-direction: column;
    gap: 4px;
  }

  .grid.services,
  .grid.cases,
  .gallery,
  .construction-grid,
  .company-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 24px;
  }

  .mini-program-panel {
    padding: 18px;
  }

  .mini-program-actions span {
    width: 100%;
  }
}
