/* AI 专属落地：一屏舒展 + 正式机构风（与 ai-welcome.js 内联样式保持一致） */
.lyt-aiw {
  --aiw-ink: #15232b;
  --aiw-muted: #5a6b75;
  --aiw-line: #d7e0e6;
  --aiw-paper: #f7f9fb;
  --aiw-card: #fff;
  --aiw-accent: #0f6b5c;
  --aiw-wx: #07c160;
  --aiw-hl: #c62828;
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  box-sizing: border-box;
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
  --aiw-font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-family: var(--aiw-font);
  color: var(--aiw-ink);
  background: var(--aiw-paper);
  border: 0;
  box-shadow: none;
  outline: 0;
  -webkit-font-smoothing: antialiased;
}
.lyt-aiw *,
.lyt-aiw *::before,
.lyt-aiw *::after {
  box-sizing: border-box;
  font-family: inherit;
}
.lyt-aiw__bg {
  position: absolute;
  inset: 0;
  background: var(--aiw-paper);
  border: 0;
  box-shadow: none;
  pointer-events: none;
}
.lyt-aiw__bg::before,
.lyt-aiw__bg::after {
  content: none !important;
  display: none !important;
}
.lyt-aiw__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  height: 100%;
  max-height: 100%;
  padding: 18px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: space-between;
  overflow: hidden;
}
.lyt-aiw__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--aiw-line);
  flex-shrink: 0;
}
.lyt-aiw__brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.lyt-aiw__brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.lyt-aiw__brand-name {
  font-size: 1rem;
  font-weight: 700;
}
.lyt-aiw__brand-sub {
  font-size: 0.72rem;
  color: var(--aiw-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lyt-aiw__main {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1 1 auto;
  justify-content: center;
  min-height: 0;
}
.lyt-aiw__title {
  margin: 0;
  font-family: var(--aiw-font);
  font-weight: 700;
  font-size: clamp(1.22rem, 5vw, 1.5rem);
  line-height: 1.35;
}
.lyt-aiw__hl {
  color: var(--aiw-hl);
  font-weight: 800;
}
.lyt-aiw__lead {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--aiw-muted);
}
.lyt-aiw__cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  padding-top: 4px;
}
.lyt-aiw__btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  border-radius: 12px;
  padding: 15px 16px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.35;
  color: #fff;
  background: var(--aiw-wx);
  box-shadow: 0 8px 20px rgba(7, 193, 96, 0.28);
  position: relative;
  animation: lyt-aiw-breathe 1.8s ease-in-out infinite;
}
.lyt-aiw__btn::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 16px;
  border: 2px solid rgba(7, 193, 96, 0.4);
  animation: lyt-aiw-ring 1.8s ease-out infinite;
  pointer-events: none;
}
.lyt-aiw__btn .lyt-aiw__hl {
  color: #ffe082;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}
.lyt-aiw__btn .lyt-aiw__click {
  color: #fff;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@keyframes lyt-aiw-breathe {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 8px 20px rgba(7, 193, 96, 0.28);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 12px 28px rgba(7, 193, 96, 0.45);
  }
}
@keyframes lyt-aiw-ring {
  0% {
    opacity: 0.85;
    transform: scale(0.98);
  }
  100% {
    opacity: 0;
    transform: scale(1.08);
  }
}
@media (prefers-reduced-motion: reduce) {
  .lyt-aiw__btn,
  .lyt-aiw__btn::after {
    animation: none !important;
  }
}
.lyt-aiw__btn-sub {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--aiw-muted);
  font-size: 0.8rem;
  padding: 4px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.lyt-aiw__foot {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}
.lyt-aiw__phones {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--aiw-line);
  flex-shrink: 0;
}
.lyt-aiw__phones-tip {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--aiw-muted);
}
.lyt-aiw__phones-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lyt-aiw__phones a {
  display: inline-flex;
  align-items: center;
  color: #0a5246;
  font-weight: 700;
  font-size: 0.84rem;
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--aiw-line);
}
.lyt-aiw__hint {
  margin: 0;
  font-size: 0.72rem;
  color: var(--aiw-muted);
  line-height: 1.45;
}
.lyt-aiw__qr {
  padding: 12px;
  border-radius: 12px;
  background: var(--aiw-card);
  border: 1px solid var(--aiw-line);
  text-align: center;
  flex-shrink: 0;
}
.lyt-aiw__qr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.lyt-aiw__qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.lyt-aiw__qr-item img {
  width: 108px;
  height: 108px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #eef2f5;
}
.lyt-aiw__qr-item strong {
  font-size: 0.74rem;
  font-weight: 700;
}
.lyt-aiw__qr-tip {
  margin: 8px 0 0;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--aiw-muted);
  line-height: 1.4;
}
@media (max-height: 740px) {
  .lyt-aiw__panel {
    gap: 10px;
    padding: 14px 16px 16px;
  }
  .lyt-aiw__main {
    gap: 10px;
  }
  .lyt-aiw__foot {
    gap: 8px;
  }
  .lyt-aiw__qr-item img {
    width: 88px;
    height: 88px;
  }
  .lyt-aiw__btn {
    padding: 13px 14px;
  }
}
@media (max-height: 640px) {
  .lyt-aiw__brand-sub,
  .lyt-aiw__hint {
    display: none;
  }
  .lyt-aiw__panel {
    gap: 8px;
    padding: 10px 14px 12px;
    justify-content: flex-start;
  }
  .lyt-aiw__main {
    flex: 0 0 auto;
    justify-content: flex-start;
  }
  .lyt-aiw__qr-item img {
    width: 72px;
    height: 72px;
  }
  .lyt-aiw__lead {
    font-size: 0.82rem;
  }
}
