/* 首页「科技论文选题/润色/算法复现」底部 banner 广告（仅中国大陆 IP 渲染）——固定贴底，不随滚动 */

.ft-cnjp {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 12px 56px 12px 24px;
  color: #fff;
  background: linear-gradient(120deg, #0f172a 0%, #123a4a 55%, #0f172a 100%);
  border-top: 1px solid rgba(66, 200, 240, 0.35);
  box-shadow: 0 -8px 24px rgba(8, 15, 26, 0.45);
  overflow: hidden;
  animation: ft-cnjp-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes ft-cnjp-in {
  from { transform: translateY(100%); opacity: 0.6; }
  to   { transform: translateY(0); opacity: 1; }
}

.ft-cnjp.is-hiding {
  transition: opacity 0.35s ease, transform 0.35s ease;
  opacity: 0;
  transform: translateY(100%);
}

.ft-cnjp[hidden] { display: none; }

/* ── 期刊主题图标 ── */
.ft-cnjp__art {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #42c8f0;
  background: rgba(66, 200, 240, 0.10);
  border: 1px solid rgba(66, 200, 240, 0.45);
  border-radius: 12px;
  box-shadow: 0 0 18px rgba(66, 200, 240, 0.18), inset 0 0 14px rgba(66, 200, 240, 0.08);
}

.ft-cnjp__art svg {
  width: 24px;
  height: 24px;
}

/* ── 文案 ── */
.ft-cnjp__copy {
  position: relative;
  overflow: hidden;
}

.ft-cnjp__slogan {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
  background: linear-gradient(100deg, #fff 30%, #7ee7ff 50%, #fff 70%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: ft-cnjp-slogan-flow 4.5s ease-in-out infinite;
}

@keyframes ft-cnjp-slogan-flow {
  0%   { background-position: 120% 0; }
  55%  { background-position: -40% 0; }
  100% { background-position: -40% 0; }
}

/* ── 「广告」角标 ── */
.ft-cnjp__badge {
  position: absolute;
  left: 10px;
  top: 6px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #94b8c9;
  border: 1px solid rgba(148, 184, 201, 0.4);
  border-radius: 3px;
  padding: 1px 5px;
}

/* ── 联系方式按钮：微信（脉冲光圈）与发邮件（mailto）── */
.ft-cnjp__wechat,
.ft-cnjp__mail {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(120deg, #0ea5a3, #14b8a6 55%, #0d9488);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.55);
  animation: ft-cnjp-pulse 2.2s ease-out infinite;
  transition: filter 0.2s, transform 0.2s;
}

.ft-cnjp__wechat:hover,
.ft-cnjp__mail:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

@keyframes ft-cnjp-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.55); }
  70%  { box-shadow: 0 0 0 14px rgba(20, 184, 166, 0); }
  100% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0); }
}

.ft-cnjp__wechat.is-done {
  background: linear-gradient(120deg, #10b981, #059669);
  animation: none;
}

.ft-cnjp__wechat svg,
.ft-cnjp__mail svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

/* ── 背景光斑漂移 ── */
.ft-cnjp__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(34px);
}

.ft-cnjp__glow--1 {
  width: 260px;
  height: 140px;
  left: 12%;
  top: -30px;
  background: radial-gradient(circle, rgba(66, 200, 240, 0.55), transparent 70%);
  animation: ft-cnjp-drift-a 9s ease-in-out infinite alternate;
}

.ft-cnjp__glow--2 {
  width: 300px;
  height: 150px;
  right: 10%;
  bottom: -46px;
  background: radial-gradient(circle, rgba(14, 165, 163, 0.5), transparent 70%);
  animation: ft-cnjp-drift-b 11s ease-in-out infinite alternate;
}

@keyframes ft-cnjp-drift-a {
  from { transform: translateX(-40px) translateY(10px) scale(1); opacity: 0.75; }
  to   { transform: translateX(60px) translateY(-12px) scale(1.15); opacity: 1; }
}

@keyframes ft-cnjp-drift-b {
  from { transform: translateX(50px) translateY(-6px) scale(1.1); opacity: 0.8; }
  to   { transform: translateX(-70px) translateY(10px) scale(0.95); opacity: 1; }
}

/* ── 顶部光泽扫过 ── */
.ft-cnjp__shine {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(126, 231, 255, 0.9), transparent);
  animation: ft-cnjp-shine 5s ease-in-out infinite;
}

@keyframes ft-cnjp-shine {
  0%   { transform: translateX(-100%); opacity: 0; }
  18%  { opacity: 1; }
  36%  { transform: translateX(100%); opacity: 0; }
  100% { transform: translateX(100%); opacity: 0; }
}

/* ── 关闭按钮 ── */
.ft-cnjp__close {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.45);
  color: #fff;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.ft-cnjp__close:hover {
  color: #fff;
  background: rgba(15, 23, 42, 0.7);
}

.ft-cnjp__close svg {
  width: 15px;
  height: 15px;
}

@media (max-width: 640px) {
  .ft-cnjp {
    flex-direction: column;
    gap: 10px;
    padding: 14px 46px 14px 16px;
    text-align: center;
  }

  .ft-cnjp__art { display: none; }

  .ft-cnjp__slogan { font-size: 15px; }

  .ft-cnjp__close {
    top: 10px;
    right: 8px;
    transform: none;
  }

  .ft-cnjp__badge { display: none; }
}
