:root {
  color-scheme: dark;
  --bg: #070a12;
  --panel: rgba(18, 23, 34, 0.82);
  --panel-strong: rgba(24, 29, 42, 0.94);
  --line: rgba(225, 174, 84, 0.28);
  --gold: #d9a64f;
  --gold-soft: #f4d58b;
  --cyan: #38c5df;
  --text: #f6f8fb;
  --muted: #b7c2d0;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    "Noto Sans CJK SC",
    Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

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

img {
  display: block;
  max-width: 100%;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 79% 7%, rgba(205, 152, 61, 0.34), transparent 31rem),
    radial-gradient(circle at 16% 24%, rgba(29, 138, 157, 0.24), transparent 36rem),
    linear-gradient(145deg, #080b14 0%, #0b0d15 48%, #1f1917 100%);
}

.aura,
.grid {
  position: absolute;
  inset: 0;
}

.aura-cyan {
  background: radial-gradient(ellipse at 18% 35%, rgba(47, 178, 203, 0.28), transparent 34rem);
}

.aura-gold {
  background: radial-gradient(ellipse at 78% 68%, rgba(216, 164, 78, 0.22), transparent 38rem);
}

.grid {
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(74deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 96px 96px, 148px 148px;
  mask-image: linear-gradient(to bottom, #000, rgba(0, 0, 0, 0.54), transparent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 26px 0 18px;
  backdrop-filter: blur(18px);
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 8px 10px;
  margin: -8px -10px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 18px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
  transform-origin: left center;
  transition: transform 260ms ease, filter 260ms ease;
}

.brand::after {
  position: absolute;
  inset: -45% -70%;
  z-index: -1;
  content: "";
  background:
    linear-gradient(110deg, transparent 28%, rgba(255, 225, 156, 0.14) 42%, rgba(255, 248, 221, 0.34) 50%, rgba(216, 164, 78, 0.16) 58%, transparent 72%);
  transform: translateX(-70%) rotate(7deg);
  opacity: 0;
  transition: transform 1600ms cubic-bezier(0.19, 1, 0.22, 1), opacity 420ms ease;
  pointer-events: none;
}

.brand:is(:hover, :focus-visible) {
  transform: scale(1.065);
  filter: drop-shadow(0 0 18px rgba(216, 164, 78, 0.28));
}

.brand:focus-visible {
  outline: 2px solid rgba(255, 217, 138, 0.78);
  outline-offset: 4px;
}

.brand:is(:hover, :focus-visible)::after {
  transform: translateX(70%) rotate(7deg);
  opacity: 1;
}

.brand img {
  width: 112px;
  height: auto;
  transition: filter 260ms ease, transform 260ms ease;
}

.brand:is(:hover, :focus-visible) img {
  filter: sepia(0.45) saturate(1.25) brightness(1.08) drop-shadow(0 0 12px rgba(255, 214, 136, 0.34));
}

.brand span {
  font-size: 25px;
  transition: color 260ms ease, text-shadow 260ms ease;
}

.brand:is(:hover, :focus-visible) span {
  color: transparent;
  background: linear-gradient(90deg, #fff3cf 0%, #d8a44e 38%, #fff9e6 52%, #bd7f2f 76%, #ffe4a1 100%);
  background-clip: text;
  -webkit-background-clip: text;
  text-shadow: 0 0 18px rgba(216, 164, 78, 0.42);
}

.nav {
  display: flex;
  align-items: center;
  gap: 42px;
  color: rgba(236, 241, 248, 0.82);
  font-size: 17px;
}

.nav a {
  position: relative;
  padding: 10px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
  transform: scaleX(0);
  transition: transform 220ms ease;
}

.nav a:hover::after {
  transform: scaleX(1);
}

.section-shell {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.92fr);
  align-items: center;
  gap: 54px;
  min-height: 820px;
  padding: 58px 0 80px;
}

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

.eyebrow {
  display: inline-flex;
  margin: 0 0 24px;
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e3aa4c, #c88c32);
  color: #18120a;
  font-weight: 800;
  box-shadow: 0 12px 32px rgba(216, 164, 78, 0.22);
}

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

h1 {
  margin-bottom: 24px;
  max-width: 660px;
  font-size: clamp(44px, 6.2vw, 78px);
  line-height: 1.05;
  letter-spacing: 0;
}

.lead {
  max-width: 650px;
  margin-bottom: 44px;
  color: #dce7f2;
  font-size: 23px;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 54px;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 30px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.primary-btn {
  background: linear-gradient(135deg, #e4ad52, #c58a31);
  color: #17110a;
  box-shadow: 0 18px 45px rgba(216, 164, 78, 0.28);
}

.ghost-btn {
  border: 1px solid rgba(244, 213, 139, 0.78);
  color: #fff7df;
  background: rgba(255, 255, 255, 0.04);
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-3px);
}

.stats,
.feature-grid,
.contact-grid {
  display: grid;
  gap: 22px;
}

.stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 650px;
}

.tilt-card {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(255, 225, 156, 0.18), transparent 11rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.tilt-card::before {
  content: "";
  position: absolute;
  inset: -90% auto auto -55%;
  width: 45%;
  height: 260%;
  background: linear-gradient(90deg, transparent, rgba(255, 238, 184, 0.22), transparent);
  transform: rotate(18deg) translateX(-70%);
  transition: transform 620ms ease;
  pointer-events: none;
}

.tilt-card:hover {
  transform: translateY(-8px);
  border-color: rgba(244, 213, 139, 0.72);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.52), 0 0 32px rgba(216, 164, 78, 0.14);
}

.tilt-card:hover::before {
  transform: rotate(18deg) translateX(330%);
}

.mini-card {
  min-height: 92px;
  padding: 22px 24px;
  border-radius: 18px;
}

.mini-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--gold-soft);
  font-size: 20px;
}

.mini-card span {
  color: var(--muted);
  font-size: 15px;
}

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

.visual-panel {
  position: absolute;
  inset: 54px 0 auto 58px;
  height: 660px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.04);
}

.phone-frame {
  position: absolute;
  top: 42px;
  right: 38px;
  width: min(390px, 74vw);
  aspect-ratio: 430 / 660;
  padding: 18px;
  border: 4px solid var(--gold);
  border-radius: 48px;
  background: #05070d;
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.46), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.phone-camera {
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 2;
  width: 76px;
  height: 7px;
  border-radius: 999px;
  background: #222734;
  transform: translateX(-50%);
}

.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 35px;
  background:
    radial-gradient(circle at 50% 18%, rgba(216, 164, 78, 0.22), transparent 14rem),
    linear-gradient(180deg, #151a24 0%, #070a12 100%);
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.hero-bots {
  position: absolute;
  left: 0;
  bottom: 64px;
  width: 190px;
  filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.36));
}

.hero-doctor {
  position: absolute;
  right: -18px;
  bottom: 36px;
  width: 170px;
  filter: drop-shadow(0 22px 32px rgba(0, 0, 0, 0.38));
}

.content-section {
  padding: 92px 0;
}

.section-heading {
  max-width: 980px;
  margin-bottom: 38px;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.78;
}

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

.feature-card {
  min-height: 210px;
  padding: 30px;
  border-radius: 24px;
}

.card-index {
  display: block;
  margin-bottom: 32px;
  color: rgba(244, 213, 139, 0.62);
  font-size: 15px;
  font-weight: 800;
}

.feature-card h3,
.service-card h3,
.qr-card h3,
.info-card h3 {
  margin-bottom: 14px;
  color: var(--gold-soft);
  font-size: 24px;
}

.feature-card p,
.service-card p,
.qr-card p,
.info-card dd {
  color: #cbd7e3;
  line-height: 1.72;
}

.wide-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding: 46px;
  border-radius: 30px;
  background-color: rgba(255, 255, 255, 0.04);
}

.service-card {
  min-height: 180px;
  padding: 30px;
  border: 1px solid rgba(216, 164, 78, 0.18);
  border-radius: 20px;
  background: rgba(20, 27, 40, 0.78);
}

.contact-grid {
  grid-template-columns: minmax(320px, 0.82fr) minmax(420px, 1.18fr);
}

.qr-card,
.info-card {
  border-radius: 28px;
  padding: 34px;
}

.qr-card {
  display: grid;
  grid-template-columns: 1fr 180px;
  align-items: center;
  gap: 28px;
}

.qr-card img {
  width: 180px;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
}

.info-card dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.info-card div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
}

.info-card dt {
  color: var(--gold-soft);
  font-weight: 800;
}

.info-card dd {
  margin: 0;
}

.info-card dd a,
.site-footer p a {
  color: #f2c46e;
  text-decoration: underline;
  text-decoration-color: rgba(242, 196, 110, 0.42);
  text-underline-offset: 4px;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.public-security-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.public-security-link img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.info-card dd a:hover,
.site-footer p a:hover {
  color: #ffe2a0;
  text-decoration-color: rgba(255, 226, 160, 0.9);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1200px, calc(100% - 48px));
  margin: 70px auto 0;
  padding: 54px 0 64px;
  color: rgba(203, 215, 227, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer .brand img {
  width: 98px;
}

.site-footer p {
  margin: 0;
  font-size: 15px;
}

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

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

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 24px;
    gap: 28px;
  }

  .hero-copy {
    order: 1;
  }

  .hero-visual {
    order: 2;
    min-height: 620px;
  }

  .visual-panel {
    position: relative;
    inset: auto;
    max-width: 660px;
    height: 590px;
    margin: 0 auto;
  }

  .phone-frame {
    top: 32px;
    right: 50%;
    transform: translateX(50%);
  }

  .hero-bots {
    left: calc(50% - 310px);
  }

  .hero-doctor {
    right: calc(50% - 330px);
  }

  .feature-grid,
  .wide-panel,
  .contact-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .qr-card {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }
}

@media (max-width: 620px) {
  .section-shell,
  .site-header,
  .site-footer {
    width: min(100% - 28px, 1200px);
  }

  .brand img {
    width: 94px;
  }

  .brand span {
    font-size: 22px;
  }

  .lead {
    font-size: 18px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .visual-panel {
    height: 540px;
  }

  .phone-frame {
    top: 28px;
    width: min(300px, 78vw);
    right: 50%;
    transform: translateX(50%);
  }

  .hero-bots {
    width: 144px;
    left: 4px;
    bottom: 46px;
  }

  .hero-doctor {
    width: 130px;
    right: 0;
    bottom: 24px;
  }

  .content-section {
    padding: 68px 0;
  }

  .wide-panel,
  .feature-card,
  .qr-card,
  .info-card {
    padding: 24px;
  }

  .info-card div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
