:root {
  --brand-red: #ef263c;
  --deep-red: #d91431;
  --ink: #24243a;
  --muted: #656579;
  --page-width: 750px;
  --page-gutter: clamp(14px, 2.2vw, 18px);
  --section-gap: clamp(22px, 4vw, 34px);
}
* { box-sizing: border-box; }
html { background: #fff8fb; }
body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
               "Noto Sans CJK SC", Arial, sans-serif;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(255, 190, 211, .48), transparent 30rem),
    radial-gradient(ellipse at 0% 76%, rgba(221, 224, 255, .32), transparent 28rem),
    #fffafd;
  /* APP 沉浸式 webview（全屏+悬浮原生标题栏）下，为顶部状态栏/标题栏预留安全间距；
     普通浏览器不支持 env() 时自动回退为 0，无任何影响 */
  padding-top: constant(safe-area-inset-top);
  padding-top: env(safe-area-inset-top, 0px);
}
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
.page {
  width: min(100%, var(--page-width));
  margin: 0 auto;
  padding: 14px var(--page-gutter) 48px;
  overflow: hidden;
}

/* 01 品牌头部 */
.site-header {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 10px 0;
  margin-bottom: 24px;
}
.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  width: 172px;
}
.offcn {
  color: #e91e36;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(29px, 6vw, 43px);
  line-height: .9;
  font-weight: 900;
  letter-spacing: -2.5px;
  font-style: italic;
}
.brand-name {
  font-size: clamp(17px, 3.4vw, 25px);
  font-weight: 850;
  letter-spacing: -1px;
  color: #222;
}
.brand > span { visibility: hidden; }
.brand-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}
.brand-divider {
  width: 1px;
  height: 30px;
  background: #3d3540;
  /* 与 .site-header 的 gap 叠加后，保证 logo→竖线、竖线→右侧标签距离相等 */
  margin: 0 14px;
}
.site-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 999px;
  color: #e31d36;
  background: linear-gradient(110deg, #ffe3eb, #fff0f3);
  font-size: clamp(15px, 3.1vw, 21px);
  font-weight: 850;
  white-space: nowrap;
  box-shadow: 0 5px 12px rgba(237, 76, 105, .08);
}
.site-tag svg { width: 25px; height: 25px; flex: none; }

/* 02 Banner */
.hero {
  touch-action: pan-y pinch-zoom;
  position: relative;
  width: 100%;
  aspect-ratio: 2.5 / 1;
  min-height: 180px;
  overflow: hidden;
  border-radius: 24px;
  margin-bottom: var(--section-gap);
  background: linear-gradient(120deg, #ff776c, #f52f48);
  box-shadow: 0 8px 20px rgba(237, 67, 90, .10);
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.hero.dragging { cursor: grabbing; }
.hero a, .hero img { display: block; width: 100%; height: 100%; }
.hero img {
  object-fit: cover;
  opacity: 1;
  transition: opacity .45s ease;
  -webkit-user-drag: none;
}
.hero img.banner-fading { opacity: 0; }
.hero-dots {
  position: absolute;
  bottom: 13px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
  z-index: 2;
}
.hero-dots i {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.48);
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  cursor: pointer;
  pointer-events: auto;
  transition: width .25s ease, background .25s ease;
}
.hero-dots i.active { width: 22px; border-radius: 8px; background: #fff; cursor: default; }

/* 03 导航 */
.nav-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 12px;
  margin-bottom: var(--section-gap);
}
.nav-item {
  min-width: 0;
  min-height: 142px;
  border: 1px solid rgba(238, 226, 246, .92);
  border-radius: 23px;
  background: linear-gradient(145deg, #fff 20%, #fff 60%, #f7f5ff);
  box-shadow: 0 5px 12px rgba(95, 78, 150, .09);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 4px 11px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.nav-item:active { transform: scale(.97); }
.nav-item:focus-visible, .cta:focus-visible, .modal-close:focus-visible {
  outline: 3px solid #ff9aac; outline-offset: 3px;
}
.nav-icon { width: 55px; height: 55px; display: block; }
.nav-label {
  font-size: clamp(14px, 2.7vw, 21px);
  line-height: 1.2;
  font-weight: 800;
  color: #38364f;
  text-align: center;
  white-space: nowrap;
}

/* 04 咨询卡片：内容均为真实文本 */
.contact-grid {
  container-type: inline-size;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.contact-card {
  aspect-ratio: 1.23;
  position: relative;
  overflow: hidden;
  border-radius: 3.4cqi;
  padding: 2.4cqi;
}
.contact-card.online {
  background: linear-gradient(145deg, #ffe8ed 0%, #ffd6df 65%, #ffb9c9 100%);
}
.contact-card.wechat {
  background: linear-gradient(145deg, #e4f3ff 0%, #c9e6ff 68%, #83c7ff 100%);
}
.contact-title {
  display: inline-flex;
  align-items: center;
  min-height: 6.4cqi;
  padding: 0.9cqi 2.2cqi;
  border-radius: 999px;
  color: white;
  font-size: 3.35cqi;
  line-height: 1;
  font-weight: 850;
  box-shadow: 0 5px 12px rgba(0,0,0,.10);
  position: relative;
  z-index: 1;
}
.online .contact-title { background: linear-gradient(100deg, #ff6378, #e91b38); }
.wechat .contact-title { background: linear-gradient(100deg, #43b5ff, #0879ec); }
.contact-copy {
  position: relative;
  z-index: 1;
  margin: 2cqi 0 0;
  font-size: 3.45cqi;
  line-height: 1.35;
  font-weight: 850;
  letter-spacing: -.5px;
}
.contact-copy .accent-red { color: #ed1f3b; }
.contact-copy .accent-blue { color: #0879e9; }
.service-time {
  display: flex;
  align-items: center;
  gap: 0.8cqi;
  margin: 1.25cqi 0 0;
  color: #ed1f3b;
  font-size: 2.9cqi;
  font-weight: 850;
  position: relative;
  z-index: 1;
}
.service-time svg { width: 3.3cqi; height: 3.3cqi; }
.contact-illustration {
  position: absolute;
  width: 36%;
  right: 4%;
  top: 22%;
  opacity: .95;
  pointer-events: none;
}
.wechat-qr {
  position: absolute;
  width: 33%;
  right: 5%;
  top: 26%;
  border-radius: 10px;
  background: white;
  padding: 0.65cqi;
  box-shadow: 0 4px 12px rgba(39, 117, 190, .16);
}
.wechat-qr img { display: block; width: 100%; height: auto; }
.cta {
  position: absolute;
  left: 13%;
  right: 13%;
  bottom: 6%;
  min-height: 7.2cqi;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1cqi;
  border-radius: 999px;
  font-size: 3.35cqi;
  line-height: 1;
  font-weight: 850;
  z-index: 2;
  box-shadow: 0 5px 12px rgba(0,0,0,.10);
}
.online .cta { color: #fff; background: linear-gradient(100deg, #ff5b70, #e6002d); }
.wechat .cta {
  color: #0879ed; background: rgba(255,255,255,.88);
  border: 2px solid #1486ff;
}
.cta svg { width: 3.25cqi; height: 3.25cqi; flex: none; }

/* 弹窗：每个导航项独立配置二维码图/跳转地址 */
.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(22, 20, 34, .56);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}
.modal-layer.show { display: flex; }
.modal-panel {
  width: min(500px, 92vw);
  position: relative;
  animation: modal-in .2s ease-out;
}
.modal-art {
  display: block;
  width: 100%;
  height: auto;
}
.modal-close {
  position: absolute;
  top: 0;
  left: 82%;
  width: 17.5%;
  height: 14%;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (min-width: 900px) {
  .page { padding-top: 18px; }
  .site-header { margin-bottom: 8px; }
  .nav-grid { gap: 16px 14px; }
  .nav-item { min-height: 150px; }
}
@media (max-width: 520px) {
  .page { padding: 9px 10px 30px; }
  .site-header { min-height: 30px; padding-inline: 5px; gap: 8px; margin-bottom: 18px; }
  .offcn { font-size: clamp(25px, 7vw, 34px); }
  .brand-name { font-size: clamp(15px, 3.7vw, 19px); }
  .brand { gap: 6px; }
  .brand-divider { height: 25px; margin: 0 8px; }
  .site-tag { padding: 7px 9px; gap: 4px; font-size: clamp(13px, 3.4vw, 17px); }
  .site-tag svg { width: 20px; height: 20px; }
  .hero { border-radius: 17px; min-height: 0; margin-bottom: 22px; }
  .hero-dots { bottom: 8px; gap: 7px; }
  .hero-dots i { width: 7px; height: 7px; }
  .hero-dots i.active { width: 16px; }
  .nav-grid { gap: 10px 8px; margin-bottom: 24px; }
  .nav-item { min-height: 105px; border-radius: 17px; gap: 5px; padding: 8px 2px; }
  .nav-icon { width: 43px; height: 43px; }
  .nav-label { font-size: clamp(12px, 3.2vw, 16px); }
  .contact-grid { gap: 9px; }
  .modal-panel { width: min(500px, 88vw); }
  .brand{width: 122px;height: 28px;}
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
