:root {
  --brand-blue: #1f6cff;
  --brand-deep: #132b6d;
  --brand-green: #19c37d;
  --ink: #14213d;
  --muted: #697386;
  --line: rgba(31, 108, 255, 0.12);
  --surface: #ffffff;
  --surface-soft: #f4f7ff;
  --shadow: 0 24px 70px rgba(19, 43, 109, 0.14);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family:
    "PingFang SC",
    "Microsoft YaHei",
    "Noto Sans CJK SC",
    sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(25, 195, 125, 0.12), transparent 28%),
    radial-gradient(circle at 85% 4%, rgba(31, 108, 255, 0.16), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #eef4ff 50%, #ffffff 100%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 24px;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 10px 22px rgba(31, 108, 255, 0.18);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

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

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 86px 24px;
}

.hero {
  min-height: 760px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  align-items: center;
  gap: 52px;
  padding-top: 72px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand-blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(52px, 8vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.hero-subtitle {
  margin-bottom: 24px;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: var(--brand-deep);
}

.hero-description {
  max-width: 650px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
}

.primary-button {
  border: none;
  margin-top: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-blue), #6b62db);
  box-shadow: 0 18px 38px rgba(31, 108, 255, 0.28);
  cursor: pointer;
  font: inherit;
}

.qr-trigger {
  position: relative;
  display: inline-flex;
}

.qr-popover {
  position: absolute;
  left: calc(100% + 18px);
  top: 50%;
  z-index: 3;
  width: 206px;
  padding: 18px;
  border: 1px solid rgba(31, 108, 255, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 56px rgba(19, 43, 109, 0.18);
  transform: translateY(-44%) translateX(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.qr-trigger:hover .qr-popover {
  opacity: 1;
  transform: translateY(-44%) translateX(0);
}

.qr-popover img,
.qr-modal-panel img {
  display: block;
  width: 180px;
  height: 180px;
  margin: 0 auto 14px;
  border-radius: 18px;
  object-fit: contain;
}

.qr-popover strong {
  display: block;
  margin-top: 14px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
}

.secondary-button {
  margin-top: 14px;
  color: var(--brand-blue);
  background: rgba(31, 108, 255, 0.08);
}

.hero-visual {
  position: relative;
  min-height: 560px;
}

.map-card {
  position: absolute;
  inset: 20px 0 70px 28px;
  overflow: hidden;
  border: 1px solid rgba(31, 108, 255, 0.12);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 18% 20%, rgba(31, 108, 255, 0.18), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(25, 195, 125, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(31, 108, 255, 0.08), rgba(25, 195, 125, 0.08)),
    #ffffff;
  box-shadow: var(--shadow);
}

.asset-placeholder {
  display: none;
}

.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(31, 108, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 108, 255, 0.08) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
}

.map-card::before,
.map-card::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.map-card::before {
  right: -72px;
  top: 40px;
  width: 220px;
  height: 220px;
  background: rgba(31, 108, 255, 0.08);
}

.map-card::after {
  left: -64px;
  bottom: -80px;
  width: 250px;
  height: 250px;
  background: rgba(25, 195, 125, 0.09);
}

.hero-route {
  position: absolute;
  inset: 9% 6% 12%;
  z-index: 1;
  width: 88%;
  height: 78%;
}

.hero-route-line,
.hero-route-shadow {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-route-shadow {
  stroke: rgba(19, 43, 109, 0.1);
  stroke-width: 18;
}

.hero-route-line {
  stroke: url("#heroRouteGradient");
  stroke-width: 7;
}

.map-pin {
  position: absolute;
  z-index: 2;
  width: 28px;
  height: 28px;
  border: 7px solid #ffffff;
  border-radius: 50%;
  background: var(--brand-blue);
  box-shadow: 0 12px 28px rgba(31, 108, 255, 0.26);
}

.pin-a {
  left: 16%;
  bottom: 22%;
}

.pin-b {
  left: 42%;
  top: 44%;
  background: var(--brand-green);
}

.pin-c {
  right: 16%;
  top: 18%;
  background: #6b62db;
}

.pin-d {
  left: 31%;
  top: 29%;
  width: 22px;
  height: 22px;
  border-width: 6px;
  background: #20b7d8;
}

.pin-e {
  right: 29%;
  bottom: 28%;
  width: 22px;
  height: 22px;
  border-width: 6px;
  background: #ffb84d;
}

.hero-place-card,
.hero-mini-card {
  position: absolute;
  z-index: 3;
  border: 1px solid rgba(31, 108, 255, 0.1);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 20px 46px rgba(19, 43, 109, 0.13);
  backdrop-filter: blur(16px);
}

.hero-place-card {
  left: 28px;
  bottom: 28px;
  display: flex;
  gap: 12px;
  align-items: center;
  width: 210px;
  padding: 14px 16px;
  border-radius: 20px;
}

.place-dot {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 8px solid rgba(31, 108, 255, 0.12);
  border-radius: 50%;
  background: var(--brand-blue);
  box-shadow: 0 12px 22px rgba(31, 108, 255, 0.2);
}

.hero-place-card strong,
.hero-mini-card strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
}

.hero-place-card p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.hero-compass {
  position: absolute;
  right: 30px;
  bottom: 36px;
  z-index: 3;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(31, 108, 255, 0.12);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 40px rgba(19, 43, 109, 0.12);
}

.hero-compass span {
  width: 20px;
  height: 34px;
  clip-path: polygon(50% 0, 72% 46%, 50% 100%, 28% 46%);
  background: linear-gradient(180deg, var(--brand-blue), var(--brand-green));
  transform: rotate(28deg);
}

.hero-mini-card {
  right: 28px;
  top: 32px;
  width: 150px;
  padding: 14px;
  border-radius: 18px;
}

.hero-mini-card span {
  display: block;
  height: 8px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(31, 108, 255, 0.14);
}

.hero-mini-card span:last-child {
  width: 68%;
  background: rgba(25, 195, 125, 0.18);
}

.section-heading {
  max-width: 680px;
  margin-bottom: 34px;
}

.section-lead {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

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

.feature-card {
  min-height: 230px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 50px rgba(19, 43, 109, 0.08);
}

.feature-card p {
  color: var(--muted);
  line-height: 1.7;
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  border: 1px solid rgba(31, 108, 255, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 74% 18%, rgba(25, 195, 125, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(31, 108, 255, 0.13), rgba(25, 195, 125, 0.09));
}

.feature-icon svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: var(--brand-blue);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-icon svg,
.publish-icon svg {
  stroke: #168f9f;
}

.comment-icon svg {
  stroke: #1f6cff;
}

.categories {
  padding-top: 48px;
}

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

.category-card {
  min-height: 258px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.78)),
    var(--surface);
  box-shadow: 0 18px 46px rgba(19, 43, 109, 0.07);
}

.category-card h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.category-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(235, 244, 255, 0.8);
}

.category-icon img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
}

.category-position {
  margin-bottom: 12px;
  color: var(--brand-deep);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.7;
}

.category-fit {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.cities {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 36px;
  align-items: stretch;
}

.city-copy,
.city-placeholder {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 20px 54px rgba(19, 43, 109, 0.08);
}

.city-copy p {
  color: var(--muted);
  line-height: 1.8;
}

.city-map {
  position: relative;
  display: flex;
  align-content: center;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  min-height: 310px;
  padding: 34px;
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(31, 108, 255, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(31, 108, 255, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, rgba(25, 195, 125, 0.12), rgba(31, 108, 255, 0.12));
  background-size: 44px 44px, 44px 44px, auto;
}

.city-node {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--brand-deep);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(19, 43, 109, 0.12);
  font-size: 13px;
  font-weight: 800;
}

.city-node.active {
  color: #ffffff;
  background: var(--brand-blue);
}

.city-placeholder p {
  margin: 16px 0 0;
  color: var(--muted);
  text-align: center;
}

.site-footer {
  margin-top: 38px;
  padding: 34px 24px 42px;
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
  background: #111d3d;
}

.site-footer h2 {
  margin-bottom: 16px;
  color: #ffffff;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.footer-links a:hover {
  color: #ffffff;
}

.site-footer p {
  margin: 6px 0;
}

.footer-beian {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.footer-beian-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.police-beian-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.police-beian-link img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}

.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.qr-modal.is-open {
  display: flex;
}

.qr-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(12, 20, 43, 0.48);
  backdrop-filter: blur(10px);
}

.qr-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 340px);
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 70px rgba(12, 20, 43, 0.24);
  text-align: center;
}

.qr-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  color: var(--muted);
  background: rgba(31, 108, 255, 0.08);
  font-size: 24px;
  line-height: 34px;
  cursor: pointer;
}

.qr-modal-panel h2 {
  margin-bottom: 8px;
  font-size: 22px;
}

.qr-modal-panel p {
  margin-bottom: 6px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .hero {
    min-height: auto;
    padding-top: 44px;
  }

  .hero-visual {
    min-height: 460px;
  }

  .map-card {
    inset: 0 0 58px;
  }

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

@media (max-width: 768px) {
  .qr-popover {
    display: none;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 56px 18px;
  }

  .site-header {
    padding: 16px 18px;
  }

  .site-nav {
    gap: 16px;
    font-size: 13px;
  }

  .hero-description {
    font-size: 16px;
  }

  .hero-visual {
    min-height: 390px;
  }

  .hero-route {
    inset: 10% 4% 16%;
    width: 92%;
    height: 74%;
  }

  .hero-route-shadow {
    stroke-width: 14;
  }

  .hero-route-line {
    stroke-width: 6;
  }

  .map-pin {
    width: 24px;
    height: 24px;
    border-width: 6px;
  }

  .pin-d,
  .pin-e {
    width: 19px;
    height: 19px;
    border-width: 5px;
  }

  .hero-place-card {
    left: 18px;
    bottom: 20px;
    width: 188px;
    padding: 12px 14px;
    border-radius: 18px;
  }

  .place-dot {
    width: 32px;
    height: 32px;
    border-width: 7px;
  }

  .hero-compass {
    right: 18px;
    bottom: 22px;
    width: 48px;
    height: 48px;
  }

  .hero-mini-card {
    display: none;
  }

  .feature-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .city-copy,
  .city-placeholder {
    padding: 24px;
  }

  .feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    border-radius: 14px;
  }

  .feature-icon svg {
    width: 26px;
    height: 26px;
  }

  .category-icon {
    width: 48px;
    height: 48px;
  }

  .category-icon img {
    width: 38px;
    height: 38px;
  }
}
