/* Sveev AI · 流体渐变极简风 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --text-main: #1f2340;
  --text-sub: #5c6077;
  --accent: #6d5df6;
  --accent-2: #00b8d4;
  --accent-3: #ff7eb3;
  --wechat: #07c160;
  --card: #ffffff;
}

html,
body {
  height: 100%;
}

body {
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text-main);
  background: #faf9ff;
  overflow-x: hidden;
}

/* 流体背景 */
.fluid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.fluid {
  position: absolute;
}
.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(109, 93, 246, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109, 93, 246, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 30% 50%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 50%, #000 0%, transparent 70%);
}
.orb {
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}
.orb--1 {
  width: 44vw;
  height: 44vw;
  top: -14%;
  left: -10%;
  background: radial-gradient(circle at 50% 50%, #a99bff, transparent 62%);
  animation: flow 20s ease-in-out infinite;
}
.orb--2 {
  width: 38vw;
  height: 38vw;
  top: 8%;
  right: -12%;
  background: radial-gradient(circle at 50% 50%, #7be0ff, transparent 62%);
  animation: flow 26s ease-in-out infinite reverse;
}
.orb--3 {
  width: 40vw;
  height: 40vw;
  bottom: -20%;
  left: 25%;
  background: radial-gradient(circle at 50% 50%, #ffc0e0, transparent 62%);
  animation: flow 24s ease-in-out infinite;
}
@keyframes flow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(5vw, -4vh) scale(1.12); }
}

#app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 顶栏 */
.topbar {
  padding: 20px 32px;
}
.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: conic-gradient(from 40deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent));
  box-shadow: 0 4px 14px rgba(109, 93, 246, 0.35);
}
.brand-name {
  font-size: 21px;
  font-weight: 700;
  color: var(--text-main);
}
.brand-name span {
  margin-left: 5px;
  font-weight: 300;
  color: var(--accent);
}
.topnav {
  display: flex;
  gap: 4px;
}
.topnav-link {
  color: var(--text-sub);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.topnav-link:hover {
  color: var(--accent);
}
.topnav-link.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 18px rgba(109, 93, 246, 0.35);
}

/* 主区 */
.login-page {
  flex: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 30px 32px 20px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
  align-items: center;
}
.grad-panel {
  background: var(--card);
  border: 1px solid rgba(230, 228, 244, 0.9);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(60, 50, 130, 0.1);
  overflow: hidden;
  position: relative;
}

/* 左区 */
.ai-panel {
  height: 640px;
  display: flex;
  align-items: flex-end;
  padding: 48px 48px 46px;
  background:
    radial-gradient(circle at 20% 18%, rgba(109, 93, 246, 0.12), transparent 55%),
    linear-gradient(160deg, #ffffff, #f5f4ff);
}
.particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ai-overlay {
  position: relative;
  z-index: 2;
}
.ai-kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 2.4px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 18px;
}
.ai-title {
  font-size: 42px;
  line-height: 1.14;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.ai-subtitle {
  color: var(--text-sub);
  font-size: 16px;
  line-height: 1.7;
  max-width: 470px;
  margin-bottom: 30px;
}
.ai-progress {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 380px;
  margin-bottom: 38px;
}
.prog {
  height: 8px;
  border-radius: 6px;
  background: rgba(109, 93, 246, 0.12);
  overflow: hidden;
}
.prog span {
  display: block;
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 10px rgba(109, 93, 246, 0.4);
}
.ai-stats {
  display: flex;
  gap: 44px;
}
.ai-stat strong {
  display: block;
  font-size: 28px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ai-stat span {
  font-size: 13px;
  color: var(--text-sub);
}

/* 右区 */
.login-panel {
  padding: 40px;
  display: flex;
  align-items: center;
}
.login-card {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
}
.login-head {
  margin-bottom: 26px;
}
.login-title {
  font-size: 32px;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 6px;
}
.login-sub {
  color: var(--text-sub);
  font-size: 15px;
}
.wechat-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin-bottom: 22px;
}
.wechat-qr-frame {
  position: relative;
  display: inline-block;
  padding: 12px;
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff, #f0efff);
  border: 1px solid rgba(109, 93, 246, 0.25);
  box-shadow: 0 18px 44px rgba(60, 50, 130, 0.14);
}
.wechat-qr-inner {
  width: 200px;
  height: 200px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.wechat-qr-inner canvas,
.wechat-qr-inner img {
  display: block;
  max-width: 100%;
  max-height: 100%;
}
.qr-refresh {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
}
.wechat-hint {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
}
.wechat-hint b {
  color: var(--wechat);
}
.btn-wechat {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, var(--wechat), #05d96e);
  border: none;
  border-radius: 14px;
  padding: 15px 20px;
  cursor: pointer;
  margin: 24px 0 0;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 12px 26px rgba(7, 193, 96, 0.3);
}
.btn-wechat:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(7, 193, 96, 0.4);
}
.login-alt {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 26px 0 18px;
}
.alt-line {
  flex: 1;
  height: 1px;
  background: #eceafe;
}
.alt-text {
  font-size: 12px;
  color: #a7a3c8;
}
.alt-methods {
  display: flex;
  justify-content: center;
  gap: 18px;
}
.alt-method {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: var(--text-sub);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.25s;
}
.alt-method:hover {
  color: var(--accent);
}
.alt-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.login-foot {
  margin-top: 20px;
  font-size: 12px;
  color: #a7a3c8;
}
.login-foot a {
  color: var(--accent);
  text-decoration: none;
}

/* 底部 */
.footer {
  padding: 20px 32px 28px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #a7a3c8;
  border-top: 1px solid #eceafe;
  padding-top: 20px;
}
.footer-brand {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}
.footer-brand span {
  color: var(--accent);
  font-weight: 300;
}
.footer-links {
  display: flex;
  gap: 22px;
}
.footer-links a {
  color: #a7a3c8;
  text-decoration: none;
  transition: color 0.25s;
}
.footer-links a:hover {
  color: var(--accent);
}
.footer-copy {
  color: #b9b5d4;
}

/* ===== 底部：多列丰富版 ===== */
.footer {
  padding: 56px 32px 28px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: block;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 40px;
  padding-top: 8px;
}
.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
}
.footer-brand-row .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #b388ff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 6px 14px rgba(109, 93, 246, 0.25);
}
.footer-brand-row .brand-mark img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}
.footer-brand-row span {
  color: var(--accent);
  font-weight: 300;
}
.footer-tagline {
  color: #7a7a9a;
  font-size: 13px;
  line-height: 1.75;
  margin: 0 0 18px;
  max-width: 320px;
}
.footer-subscribe {
  display: flex;
  align-items: center;
  margin: 0 0 20px;
  border: 1px solid #eceafe;
  border-radius: 999px;
  background: #fff;
  padding: 4px 4px 4px 18px;
  max-width: 320px;
  transition: border-color .2s, box-shadow .2s;
}
.footer-subscribe:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(109, 93, 246, 0.12);
}
.footer-subscribe input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  color: var(--text-main);
}
.footer-subscribe input::placeholder { color: #b6b3d4; }
.footer-subscribe button {
  border: 0;
  background: linear-gradient(135deg, var(--accent), #b388ff);
  color: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.4px;
  transition: transform .2s, box-shadow .2s;
}
.footer-subscribe button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(109, 93, 246, 0.32);
}
.footer-socials {
  display: flex;
  gap: 10px;
}
.footer-socials a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f4f3ff;
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  transition: background .2s, color .2s, transform .2s;
}
.footer-socials a svg { width: 16px; height: 16px; }
.footer-socials a:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}
.footer-col-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.6px;
  margin: 0 0 18px;
  position: relative;
  padding-left: 0;
}
.footer-col-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: -10px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), #b388ff);
}
.footer-col-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-col-list a {
  color: #7a7a9a;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0;
  transition: color .2s;
}
.footer-col-list a::before {
  content: '';
  width: 0;
  height: 1px;
  background: var(--accent);
  display: inline-block;
  transition: width .25s, margin-right .25s;
}
.footer-col-list a:hover { color: var(--accent); }
.footer-col-list a:hover::before {
  width: 10px;
  margin-right: 4px;
}
.footer-col-list .footer-new {
  display: inline-block;
  font-size: 10px;
  background: linear-gradient(135deg, #ff6e8a, #b388ff);
  color: #fff;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
  font-weight: 600;
  letter-spacing: 0.4px;
}
.footer-divider {
  border: 0;
  border-top: 1px solid #eceafe;
  margin: 36px 0 0;
}

/* ===== 生态合作伙伴列 ===== */
.footer-col--partners .footer-partners-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 2px;
}
.footer-col--partners .footer-partner {
  font-size: 13px;
  color: #7a7a9a;
  padding: 7px 14px;
  border-radius: 8px;
  background: #faf9ff;
  border: 1px solid #eceafe;
  transition: color .2s, border-color .2s, transform .2s, background .2s, box-shadow .2s;
  cursor: default;
}
.footer-col--partners .footer-partner:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(109, 93, 246, 0.12);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 22px;
  font-size: 12px;
  color: #9b97c0;
}
.footer-copy strong { color: var(--text-main); font-weight: 600; }
.footer-copy .sep {
  margin: 0 10px;
  color: #d4d8ff;
}
.footer-legal {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-legal a {
  color: #9b97c0;
  text-decoration: none;
  transition: color .2s;
}
.footer-legal a:hover { color: var(--accent); }
.footer-badges {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid #eceafe;
  border-radius: 999px;
  background: #fff;
  color: #9b97c0;
  font-size: 12px;
  text-decoration: none;
  transition: border-color .2s, color .2s;
}
.footer-badges:hover { color: var(--accent); border-color: var(--accent); }
.footer-badges .b-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4ad6c2, #6d5df6);
  display: inline-block;
}

/* ===================== 响应式断点 ===================== */

/* Pad / 小屏 PC：≤1100px → 2 列布局，品牌列横跨整行，内部两栏 */
@media (max-width: 1100px) {
  .footer { padding: 48px 28px 26px; }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px 28px;
    padding-top: 8px;
  }

  /* 品牌列横跨整行，内部改为 2 栏（logo 介绍 / 订阅+社交），更紧凑 */
  .footer-brand-block {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    column-gap: 32px;
    row-gap: 16px;
    align-items: start;
  }
  .footer-brand-block .footer-brand-row { grid-column: 1; }
  .footer-brand-block .footer-tagline {
    grid-column: 2;
    margin: 0;
    max-width: none;
    padding-top: 6px;
  }
  .footer-brand-block .footer-subscribe {
    grid-column: 1 / -1;
    max-width: 420px;
  }
  .footer-brand-block .footer-socials {
    grid-column: 1 / -1;
    margin-bottom: 4px;
  }

  /* 产品/公司 2 列，合作伙伴单独跨满一行 */
  .footer-col { min-width: 0; }
  .footer-col-title { font-size: 13px; margin-bottom: 16px; }
  .footer-col--partners { grid-column: 1 / -1; }
  .footer-col--partners .footer-partners-list { gap: 12px; }

  /* 底部条允许换行但保持横向 */
  .footer-bottom {
    flex-wrap: wrap;
    gap: 12px 18px;
    justify-content: flex-start;
  }
  .footer-copy { font-size: 12px; }
  .footer-legal { gap: 14px; font-size: 12px; }
}

/* 手机端：≤640px → 单列竖排 */
@media (max-width: 640px) {
  .footer { padding: 36px 20px 22px; }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 4px;
  }

  /* 合作伙伴列单列竖排 */
  .footer-col--partners .footer-partners-list { gap: 8px 10px; }
  .footer-col--partners .footer-partner { padding: 6px 12px; font-size: 12px; }

  /* 品牌列回退为普通块级流 */
  .footer-brand-block {
    display: block;
    grid-column: 1;
  }
  .footer-brand-block .footer-tagline {
    max-width: none;
    padding-top: 0;
    margin-bottom: 18px;
  }
  .footer-brand-block .footer-subscribe {
    max-width: none;
  }
  .footer-brand-block .footer-socials {
    margin-bottom: 4px;
  }

  .footer-col { grid-column: 1; }
  .footer-col-list { gap: 12px; }
  .footer-col-title { font-size: 13px; }

  /* 底部条改为竖直堆叠居中 */
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    align-items: stretch;
    gap: 14px;
    font-size: 12px;
  }
  .footer-copy {
    font-size: 12px;
    line-height: 1.7;
  }
  .footer-copy .sep { display: block; visibility: hidden; height: 0; margin: 0; }
  .footer-legal {
    justify-content: center;
    gap: 16px;
    font-size: 12px;
  }
  .footer-badges {
    align-self: center;
    font-size: 12px;
  }
}

/* 超窄屏微调：≤380px */
@media (max-width: 380px) {
  .footer { padding: 32px 16px 20px; }
  .footer-socials { gap: 8px; }
  .footer-socials a { width: 34px; height: 34px; }
  .footer-legal { gap: 12px; }
  .footer-subscribe { padding: 4px 4px 4px 14px; }
  .footer-subscribe button { padding: 8px 14px; }
}

@media (max-width: 900px) {
  .login-page {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .ai-panel {
    height: 420px;
    padding: 34px;
  }
  .ai-title {
    font-size: 30px;
  }
  .login-panel {
    padding: 30px 22px;
  }
  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
/* 顶部导航布局：DOM 已对齐标准结构（.top-user 位于 .topbar-inner 内），
   直接复用 components.css 的导航与移动端规则，不再需要专用 flex 补丁。 */

/* ================= 流体渐变：顶栏用户按钮常显白底外框 ================= */
/* 默认（未悬停）状态即显示白色背景 + 可见外边框，悬停/展开时仅加深强调 */
.user-nav__btn {
  background: #fff;
  border: 1px solid var(--nx-border, rgba(0, 0, 0, 0.12));
  box-shadow: 0 4px 14px rgba(60, 50, 130, 0.08);
}
.user-nav__btn:hover {
  background: #fff;
  border-color: var(--nx-accent, #6d5df6);
  box-shadow: 0 6px 18px rgba(109, 93, 246, 0.18);
}
.user-nav.is-open .user-nav__btn {
  background: #fff;
  border-color: var(--nx-accent, #6d5df6);
  box-shadow: 0 6px 18px rgba(109, 93, 246, 0.18);
}
/* 按钮内头像圆点基础样式 */
.user-nav__btn .avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6d5df6, #07c160);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.user-nav__btn .caret { color: var(--text-sub, #5c6077); }

/* ================= 流体渐变：登录方式 Tab（.login-method） ================= */
.login-methods .login-method {
  border: 0;
  outline: 0;
  background: transparent;
  padding: 9px 4px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.2;
  color: var(--text-sub);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.login-methods .login-method.is-active,
.login-methods .login-method.active {
  background: #ffffff;
  color: var(--accent);
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(60, 50, 130, 0.14);
}

/* ================= 流体渐变：手机号 / 账号登录表单 ================= */
.login-form {
  text-align: left;
}
.field {
  display: block;
  margin-bottom: 16px;
}
.field-label {
  display: block;
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 7px;
  font-weight: 500;
}
.input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(109, 93, 246, 0.24);
  font-size: 14px;
  color: var(--text-main);
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(109, 93, 246, 0.14);
}
.input::placeholder {
  color: #b3aecf;
}
.code-row {
  display: flex;
  gap: 10px;
}
.code-row .input {
  flex: 1;
}
.btn-code {
  flex-shrink: 0;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-code:hover {
  background: var(--accent);
  color: #fff;
}
.form-row {
  display: flex;
  justify-content: flex-end;
  margin: 8px 0 18px;
}
.form-row.is-split {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.forgot {
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
}
.forgot:hover {
  text-decoration: underline;
}
.btn-primary-grad {
  width: 100%;
  padding: 13px;
  border-radius: 12px;
  border: 0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(109, 93, 246, 0.32);
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-primary-grad:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(109, 93, 246, 0.42);
}

/* ================= 流体渐变：模板中心直达链接 ================= */
.tpl-hub {
  max-width: 1280px;
  margin: 0 auto;
  padding: 30px 32px 46px;
}
.tpl-hub-head {
  text-align: center;
  margin-bottom: 22px;
}
.tpl-hub-head--sub {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px dashed rgba(109, 93, 246, 0.2);
}
.tpl-hub-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.01em;
}
.tpl-hub-title span {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tpl-hub-desc {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-sub);
}
.tpl-hub-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.tpl-hub-link {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 16px;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid rgba(109, 93, 246, 0.16);
  box-shadow: 0 6px 18px rgba(60, 50, 130, 0.05);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s, border-color 0.25s;
}
.tpl-hub-link::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity 0.25s;
}
.tpl-hub-link:hover {
  transform: translateY(-3px);
  border-color: rgba(109, 93, 246, 0.42);
  box-shadow: 0 14px 30px rgba(109, 93, 246, 0.18);
}
.tpl-hub-link:hover::before {
  opacity: 1;
}
.tpl-hub-ico {
  font-size: 18px;
  line-height: 1;
  color: var(--accent);
}
.tpl-hub-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-main);
}
.tpl-hub-path {
  font-size: 12px;
  color: #a7a3c8;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
@media (max-width: 900px) {
  .tpl-hub {
    padding: 24px 18px 36px;
  }
  .tpl-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .tpl-hub-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================================================================
   右下角浮动操作：加入社群（绿色圆形）+ 剪映小助手下载（蓝紫胶囊）
   ===================================================================== */
.fab-dock {
  position: fixed;
  right: 30px;
  bottom: 34px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  pointer-events: none;
}
.fab-dock > * {
  pointer-events: auto;
}

/* 加入社群：绿色圆形按钮 */
.fab-social {
  position: relative;
  width: 84px;
  height: 84px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #fff;
  cursor: pointer;
  background: radial-gradient(circle at 50% 26%, #3ee07f 0%, #17c95f 52%, #06a94e 100%);
  box-shadow: 0 14px 30px rgba(6, 169, 78, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.34);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
  animation: fab-pop 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.fab-social::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1.5px solid rgba(23, 201, 95, 0.45);
  pointer-events: none;
  animation: fab-ring 2.6s ease-out infinite;
}
.fab-social:hover {
  transform: translateY(-3px) scale(1.045);
  box-shadow: 0 18px 36px rgba(6, 169, 78, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.fab-social__icon {
  display: block;
  width: 27px;
  height: 27px;
}
.fab-social__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}
.fab-social__text {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.4px;
}

/* 剪映小助手下载：蓝紫渐变胶囊按钮 */
.fab-download {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 50px;
  padding: 0 22px 0 19px;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
  background: linear-gradient(135deg, #7d6cf7 0%, #5f6cf6 46%, #4c6fff 100%);
  box-shadow: 0 12px 28px rgba(94, 104, 246, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, filter 0.28s ease;
  animation: fab-pop 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}
.fab-download::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 45%;
  pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: skewX(-18deg);
  animation: fab-sheen 3.6s ease-in-out infinite;
}
.fab-download:hover {
  transform: translateY(-3px);
  filter: brightness(1.05);
  box-shadow: 0 16px 34px rgba(94, 104, 246, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.34);
}
.fab-social:active,
.fab-download:active {
  transform: translateY(-1px) scale(0.985);
}
.fab-download__icon {
  display: block;
  width: 21px;
  height: 21px;
}
.fab-download__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

@keyframes fab-pop {
  from {
    opacity: 0;
    translate: 0 14px;
    scale: 0.9;
  }
  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}
@keyframes fab-ring {
  0% {
    opacity: 0.9;
    transform: scale(0.92);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.14);
  }
}
@keyframes fab-sheen {
  0%,
  62% {
    left: -60%;
  }
  86%,
  100% {
    left: 130%;
  }
}

@media (max-width: 900px) {
  .fab-dock {
    right: 20px;
    bottom: 22px;
    gap: 13px;
  }
  .fab-social {
    width: 74px;
    height: 74px;
  }
  .fab-social__icon {
    width: 24px;
    height: 24px;
  }
  .fab-social__text {
    font-size: 11.5px;
  }
  .fab-download {
    height: 46px;
    padding: 0 18px 0 15px;
    font-size: 14px;
  }
  .fab-download__icon {
    width: 19px;
    height: 19px;
  }
}

@media (max-width: 520px) {
  .fab-dock {
    right: 14px;
    bottom: 16px;
    gap: 11px;
  }
  .fab-social {
    width: 64px;
    height: 64px;
  }
  .fab-social::after {
    inset: -5px;
  }
  .fab-social__icon {
    width: 21px;
    height: 21px;
  }
  .fab-social__text {
    font-size: 10.5px;
  }
  .fab-download {
    height: 42px;
    gap: 7px;
    padding: 0 15px 0 13px;
    font-size: 13px;
  }
  .fab-download__icon {
    width: 17px;
    height: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fab-social,
  .fab-download,
  .fab-social::after,
  .fab-download::before {
    animation: none;
  }
}

/* =====================================================================
   社群二维码弹窗（点击右下角「加入社群」打开）
   ===================================================================== */
.join-modal {
  position: fixed;
  inset: 0;
  z-index: 1700;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s;
}
.join-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.join-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 56, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.join-modal__card {
  position: relative;
  width: min(360px, calc(100vw - 32px));
  padding: 32px 28px 24px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 30px 70px rgba(20, 18, 56, 0.28);
  text-align: center;
  transform: translateY(14px) scale(0.97);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.join-modal.is-open .join-modal__card {
  transform: translateY(0) scale(1);
}
.join-modal__close {
  position: absolute;
  top: 8px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: #9492b3;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.join-modal__close:hover {
  background: #f3f1fa;
  color: #4c6fff;
}
.join-modal__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.join-modal__sub {
  font-size: 13px;
  color: #6c6c8a;
  margin-bottom: 18px;
  letter-spacing: 0.4px;
}
.join-modal__qr {
  margin: 0 auto 16px;
  width: 208px;
  height: 208px;
  padding: 12px;
  border: 1px solid #ecebff;
  border-radius: 14px;
  background: #faf9ff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.join-modal__qr-frame {
  display: flex;
  align-items: center;
  justify-content: center;
}
.join-modal__qr-frame img,
.join-modal__qr-frame canvas {
  display: block;
  width: 176px;
  height: 176px;
}
.join-modal__qr-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 176px;
  height: 176px;
  border: 1px dashed #d8d5ee;
  border-radius: 8px;
  color: #b8b5d5;
  font-size: 12px;
  background: #fff;
}
.join-modal__tip {
  font-size: 12.5px;
  color: #6c6c8a;
  line-height: 1.6;
}
.join-modal__tip b {
  color: var(--text-main);
  font-weight: 700;
}

@media (max-width: 520px) {
  .join-modal__card {
    padding: 28px 22px 22px;
    border-radius: 16px;
  }
  .join-modal__title {
    font-size: 17px;
  }
  .join-modal__qr {
    width: 184px;
    height: 184px;
    padding: 10px;
  }
  .join-modal__qr-frame img,
  .join-modal__qr-frame canvas,
  .join-modal__qr-fallback {
    width: 164px;
    height: 164px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .join-modal,
  .join-modal__card {
    transition: none;
  }
}
