/* ============================================================
   企业微信 H5 落地页样式（移动端优先）
   品牌：AI开发圈 / 江西华林信息技术工程有限公司
   说明：与官网 style.css 保持同一深色科技风，独立成文件，
         便于按落地页场景单独调优，不干扰官网样式。
   ============================================================ */

:root {
  --bg: #040816;
  --bg-soft: #091126;
  --panel: rgba(9, 17, 38, 0.72);
  --line: rgba(124, 146, 255, 0.2);
  --text: #eef4ff;
  --muted: #9fb0d8;
  --primary: #5b8cff;
  --primary-strong: #3d6cf0;
  --secondary: #6ef3ff;
  --accent: #9c6bff;
  --success: #4ade80;
  --wechat: #07c160;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --shadow: 0 24px 60px rgba(7, 13, 32, 0.5);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(91, 140, 255, 0.2), transparent 30%),
    radial-gradient(circle at top right, rgba(156, 107, 255, 0.16), transparent 28%),
    linear-gradient(180deg, #040816 0%, #060d1d 45%, #040712 100%);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
  border: none;
  cursor: pointer;
}

/* ---------------- 页面骨架 ---------------- */
.wx-shell {
  position: relative;
  overflow: hidden;
  max-width: 520px;
  margin-inline: auto;
  padding: 0 20px calc(32px + var(--safe-bottom));
}

/* 顶部氛围光斑 */
.wx-shell::before,
.wx-shell::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(20px);
  pointer-events: none;
}

.wx-shell::before {
  top: -60px;
  left: -80px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(91, 140, 255, 0.5) 0%, transparent 68%);
}

.wx-shell::after {
  top: 120px;
  right: -90px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(110, 243, 255, 0.22) 0%, transparent 68%);
}

/* ---------------- 头部 ---------------- */
.wx-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0 6px;
}

.wx-header__logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(91, 140, 255, 0.14);
  border: 1px solid var(--line);
  padding: 6px;
}

.wx-header__name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.wx-header__sub {
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
}

/* ---------------- Hero ---------------- */
.wx-hero {
  position: relative;
  z-index: 1;
  padding: 26px 0 8px;
  text-align: center;
}

.wx-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--secondary);
  background: rgba(110, 243, 255, 0.1);
  border: 1px solid rgba(110, 243, 255, 0.28);
}

.wx-hero__tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.18);
}

.wx-hero h1 {
  margin: 18px 0 10px;
  font-size: 26px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(120deg, #ffffff 10%, var(--secondary) 55%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.wx-hero__desc {
  margin: 0 auto;
  max-width: 340px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------------- 卡片通用 ---------------- */
.wx-card {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  padding: 22px 18px;
  border-radius: var(--radius-xl);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.wx-card__index {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 1px;
}

.wx-card__index b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  font-size: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.wx-card h2 {
  margin: 12px 0 6px;
  font-size: 18px;
  font-weight: 700;
}

.wx-card__tips {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------------- 方式一：短链接按钮 ---------------- */
.wx-link-actions {
  display: grid;
  gap: 12px;
}

.wx-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
  box-shadow: 0 12px 28px rgba(61, 108, 240, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wx-btn:active {
  transform: scale(0.97);
  box-shadow: 0 6px 16px rgba(61, 108, 240, 0.3);
}

.wx-btn .wx-btn__icon {
  font-size: 20px;
}

.wx-btn--ghost {
  color: var(--text);
  background: rgba(124, 146, 255, 0.08);
  border: 1px solid var(--line);
  box-shadow: none;
}

.wx-btn--ghost:active {
  background: rgba(124, 146, 255, 0.16);
}

.wx-btn--wechat {
  background: linear-gradient(135deg, #0fc95f 0%, var(--wechat) 100%);
  box-shadow: 0 12px 28px rgba(7, 193, 96, 0.32);
}

.wx-btn--wechat:active {
  box-shadow: 0 6px 16px rgba(7, 193, 96, 0.28);
}

.wx-link-tip {
  margin: 12px 2px 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  text-align: center;
}

.wx-link-tip a {
  color: var(--secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------------- 方式二：人工卡图片 ---------------- */
.wx-qr-block {
  text-align: center;
}

.agent-card {
  margin: 6px auto 0;
  max-width: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 14px;
}

.agent-card__img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.agent-card__hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #0a7a3d;
  background: rgba(7, 193, 96, 0.1);
}

.wx-scan-tip {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

/* ---------------- 方式三：个人微信二维码 ---------------- */
.agent-card--personal {
  max-width: 264px;
  padding: 12px;
}

.agent-card--personal .agent-card__hint {
  color: #0a7a3d;
}

.wx-scan-tip strong {
  color: var(--secondary);
  font-weight: 600;
}

/* 微信环境下的额外提示条 */
.wx-in-wechat-banner {
  display: none;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.7;
  color: #d9f7e7;
  background: rgba(7, 193, 96, 0.12);
  border: 1px solid rgba(7, 193, 96, 0.3);
}

body.is-wechat .wx-in-wechat-banner {
  display: block;
}

/* ---------------- 底部 ---------------- */
.wx-footer {
  position: relative;
  z-index: 1;
  margin-top: 30px;
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  line-height: 2;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.wx-footer__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
}

.wx-footer__logo {
  width: 20px;
  height: 20px;
  border-radius: 5px;
}

.wx-footer a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------------- 提示浮层（复制成功等） ---------------- */
.wx-toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + var(--safe-bottom));
  transform: translateX(-50%) translateY(16px);
  z-index: 99;
  max-width: 80%;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.78);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.wx-toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------------- 小屏适配 ---------------- */
@media (max-width: 360px) {
  .wx-shell {
    padding-inline: 14px;
  }

  .wx-hero h1 {
    font-size: 22px;
  }

  .wx-card {
    padding: 18px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
