/* 2026 双12 & 双旦跨年感恩盛典 · 主页预热弹窗与左下角悬浮入口
   零内联样式（严格遵循全站 CSP）；纯外链 CSS 控制显隐与过渡动画。
   图层规划：悬浮入口 z-index: 56（位于左下角，避开右下角 .to-top）；
   弹窗遮罩 z-index: 950（高于顶栏 60 与 toast 70，低于账号切换器 1000）。 */

body.fp-modal-open {
  overflow: hidden;
}

/* ==================== 遮罩与弹层容器 ==================== */
.fp-overlay {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(18, 6, 40, .72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .24s ease, visibility .24s ease;
  -webkit-tap-highlight-color: transparent;
}
.fp-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.fp-card {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100dvh - 28px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 28px;
  background: #fffaff;
  border: 3px solid rgba(255, 224, 130, .88);
  box-shadow:
    0 0 0 3px rgba(255, 62, 165, .42),
    0 24px 64px -16px rgba(10, 0, 32, .82);
  color: #2a1640;
  font-family: var(--font-body);
  transform: translateY(18px) scale(.95);
  transition: transform .32s var(--ease-jelly);
}
.fp-overlay.is-open .fp-card {
  transform: translateY(0) scale(1);
}
.fp-card:focus {
  outline: none;
}

/* ==================== 顶部盛典舞台区 ==================== */
.fp-hero {
  position: relative;
  flex: none;
  padding: 20px 24px 16px;
  color: #fff;
  background-color: #240950;
  background-image:
    radial-gradient(rgba(255, 255, 255, .52) 1px, transparent 1.6px),
    radial-gradient(rgba(255, 210, 63, .45) 1.2px, transparent 2px),
    radial-gradient(120% 140% at 10% 0%, rgba(122, 43, 216, .92), rgba(59, 17, 112, .78) 54%, rgba(235, 52, 145, .68));
  background-size: 96px 96px, 160px 160px, 100% 100%;
  background-position: 0 0, 48px 64px, 0 0;
  border-bottom: 2px solid rgba(255, 210, 63, .48);
}

.fp-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, .52);
  border-radius: 50%;
  background: rgba(24, 6, 52, .65);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  transition: background .18s ease, transform .18s var(--ease-jelly);
}
.fp-close:active {
  transform: scale(.92);
}

.fp-hero-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding-right: 42px;
}

.fp-hero-copy {
  min-width: 0;
  flex: 1 1 320px;
}

.fp-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 210, 63, .22), rgba(255, 62, 165, .28));
  border: 1px solid rgba(255, 210, 63, .68);
  color: #ffe891;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .5px;
}
.fp-ribbon.is-live {
  background: linear-gradient(90deg, rgba(38, 217, 169, .24), rgba(255, 210, 63, .24));
  border-color: rgba(93, 230, 192, .75);
  color: #9effe3;
}
.fp-ribbon.is-claim {
  background: linear-gradient(90deg, rgba(255, 138, 31, .28), rgba(255, 210, 63, .24));
  border-color: rgba(255, 184, 92, .78);
  color: #ffe0a8;
}

.fp-title {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  line-height: 1.08;
}
.fp-title-num {
  font: 38px/1 var(--font-title);
  letter-spacing: 1px;
  color: #fff6c7;
  text-shadow: 0 0 10px rgba(255, 210, 63, .75), 0 3px 0 #b02375;
}
.fp-title-word {
  font: 28px/1.1 var(--font-title);
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 62, 165, .8), 0 3px 0 #5a1586;
}

.fp-sub {
  margin: 7px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: #ffe3f5;
}

/* 倒计时面板 */
.fp-cd {
  flex: none;
  display: grid;
  gap: 5px;
  padding: 9px 12px;
  border-radius: 18px;
  background: rgba(18, 5, 42, .56);
  border: 1px solid rgba(255, 210, 63, .45);
}
.fp-cd-label {
  margin: 0;
  font-size: 11.5px;
  font-weight: 800;
  color: #ffd95e;
  text-align: center;
  letter-spacing: .5px;
}
.fp-cd-cells {
  display: flex;
  align-items: center;
  gap: 6px;
}
.fp-cd-cell {
  display: grid;
  justify-items: center;
  min-width: 44px;
  padding: 5px 4px 4px;
  border-radius: 11px;
  background: linear-gradient(180deg, #fff, #ffe9f6);
  box-shadow: 0 3px 0 #c81f7c;
}
.fp-cd-cell b {
  font: 22px/1 var(--font-title);
  color: #c81f7c;
  font-variant-numeric: tabular-nums;
}
.fp-cd-cell small {
  font-size: 10px;
  font-weight: 700;
  color: #7c6890;
}

/* 四大核心神宠动态展示带 */
.fp-pets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.fp-pet {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 6px 9px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .24);
  text-align: center;
}
.fp-pet-stage {
  display: grid;
  place-items: center;
  width: 100%;
  height: 76px;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 60%, rgba(255, 255, 255, .94), rgba(247, 232, 255, .86));
  overflow: hidden;
}
.fp-pet-stage.is-dark {
  background-color: #160a33;
  background-image:
    radial-gradient(rgba(255, 255, 255, .75) 1px, transparent 1.6px),
    radial-gradient(rgba(128, 224, 255, .55) 1.2px, transparent 2px),
    radial-gradient(circle at 50% 58%, rgba(84, 152, 255, .36), rgba(18, 9, 44, .96) 72%);
  background-size: 46px 46px, 72px 72px, 100% 100%;
  border: 1px solid rgba(154, 214, 255, .42);
}
.fp-pet-stage img {
  max-width: 92%;
  max-height: 70px;
  width: auto;
  height: auto;
  object-fit: contain;
  image-rendering: pixelated;
}
.fp-pet strong {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}
.fp-pet span {
  font-size: 11px;
  color: #ffe39e;
  line-height: 1.25;
}

/* ==================== 中部盛典亮点区（窄屏可纵向滚动） ==================== */
.fp-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px 22px 14px;
  background: linear-gradient(180deg, #fffaff, #fff5fb);
}

.fp-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fp-hi {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 16px;
  background: #fff;
  border: 2px solid #f2daf1;
  box-shadow: 0 3px 0 rgba(122, 43, 216, .08);
}
.fp-hi-badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 11px;
  font: 16px/1 var(--font-title);
  color: #fff;
}
.fp-hi-badge.is-gold {
  background: linear-gradient(180deg, #ffd23f, #ff991f);
  color: #6b3500;
  box-shadow: 0 3px 0 #d97a06;
}
.fp-hi-badge.is-pink {
  background: linear-gradient(180deg, #ff6dbb, #ff3ea5);
  box-shadow: 0 3px 0 #c81f7c;
}
.fp-hi-badge.is-violet {
  background: linear-gradient(180deg, #9854ff, #6b24d6);
  box-shadow: 0 3px 0 #48129c;
}
.fp-hi-badge.is-mint {
  background: linear-gradient(180deg, #4ce6bc, #18b88d);
  box-shadow: 0 3px 0 #0f8264;
}
.fp-hi-text {
  min-width: 0;
}
.fp-hi-text b {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  color: #3b1170;
  line-height: 1.3;
}
.fp-hi-text p {
  margin: 3px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #6b587d;
}

.fp-date-strip {
  margin: 12px 0 0;
  padding: 8px 12px;
  border-radius: 12px;
  background: #f9efff;
  border: 1px dashed #d7b2f0;
  font-size: 12px;
  line-height: 1.5;
  color: #5b2d8a;
  text-align: center;
}
.fp-date-strip b {
  color: #c81f7c;
}

/* ==================== 底部行动栏 ==================== */
.fp-foot {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  padding: 12px 22px 16px;
  background: #fff;
  border-top: 1px solid #f0d6ef;
}

.fp-mute {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: #7c6890;
  cursor: pointer;
  user-select: none;
}
.fp-mute input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #c81f7c;
  cursor: pointer;
}

.fp-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.fp-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 2px solid #e4cff6;
  border-radius: 999px;
  background: #f8f0ff;
  color: #4a1c84;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform .16s var(--ease-jelly), background .16s ease;
}
.fp-btn-ghost:active {
  transform: translateY(2px);
}

.fp-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 24px;
  border: 2px solid #fff3b8;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff70bc, #eb258d);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .5px;
  text-decoration: none;
  box-shadow: 0 4px 0 #a81563, 0 10px 22px -6px rgba(235, 37, 141, .68);
  touch-action: manipulation;
  transition: transform .16s var(--ease-jelly), box-shadow .16s ease;
}
.fp-btn-primary:active {
  transform: translateY(2px);
}

/* ==================== 左下角悬浮重开胶囊 ==================== */
.fp-fab {
  position: fixed;
  left: 18px;
  bottom: 22px;
  z-index: 56;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 7px;
  border: 2.5px solid #ffe48a;
  border-radius: 999px;
  background: linear-gradient(135deg, #2e0d63, #8f1d8c 65%, #e6348c);
  color: #fff;
  box-shadow:
    0 4px 0 #4d0f6e,
    0 12px 26px -8px rgba(48, 8, 92, .72);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform .22s var(--ease-jelly), opacity .22s ease;
}
.fp-fab.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(.9);
}
.fp-fab-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 55%, rgba(92, 160, 255, .45), #180b36 74%);
  border: 1.5px solid rgba(255, 224, 130, .75);
  overflow: hidden;
}
.fp-fab-ico img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  image-rendering: pixelated;
}
.fp-fab-text {
  display: grid;
  text-align: left;
  line-height: 1.2;
}
.fp-fab-text strong {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
}
.fp-fab-text small {
  font-size: 11px;
  font-weight: 700;
  color: #ffe38e;
  white-space: nowrap;
}

/* ==================== 桌面悬停与动效控制 ==================== */
@media (hover: hover) and (pointer: fine) {
  .fp-close:hover {
    background: rgba(255, 62, 165, .78);
    transform: rotate(90deg);
  }
  .fp-btn-ghost:hover {
    background: #efe0ff;
    transform: translateY(-1px);
  }
  .fp-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #a81563, 0 14px 26px -6px rgba(235, 37, 141, .78);
  }
  .fp-fab:hover {
    transform: translateY(-3px) scale(1.03);
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .fp-fab:not(.is-hidden) {
    animation: fp-fab-bob 3.6s ease-in-out infinite;
  }
}
@keyframes fp-fab-bob {
  50% {
    transform: translateY(-4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fp-overlay,
  .fp-card,
  .fp-fab {
    transition: none;
    animation: none;
  }
}

/* ==================== 响应式：平板与手机端 ==================== */
@media (max-width: 720px) {
  .fp-overlay {
    padding: 10px;
  }
  .fp-card {
    border-radius: 22px;
    max-height: calc(100dvh - 18px);
  }
  .fp-hero {
    padding: 16px 14px 12px;
  }
  .fp-close {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
  .fp-hero-top {
    padding-right: 34px;
    gap: 8px;
  }
  .fp-title-num {
    font-size: 30px;
  }
  .fp-title-word {
    font-size: 21px;
    letter-spacing: 1px;
  }
  .fp-sub {
    font-size: 12px;
  }
  .fp-cd {
    width: 100%;
    padding: 7px 10px;
  }
  .fp-cd-cells {
    justify-content: center;
  }
  .fp-cd-cell {
    min-width: 52px;
  }
  .fp-pets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
  }
  .fp-pet {
    padding: 6px 6px 7px;
  }
  .fp-pet-stage {
    height: 58px;
  }
  .fp-pet-stage img {
    max-height: 54px;
  }
  .fp-body {
    padding: 12px 14px 10px;
  }
  .fp-highlights {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .fp-hi {
    padding: 9px 10px;
  }
  .fp-foot {
    padding: 10px 14px 12px;
    flex-direction: column;
    align-items: stretch;
  }
  .fp-mute {
    justify-content: center;
  }
  .fp-actions {
    margin-left: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
  }
  .fp-btn-ghost {
    padding: 0 14px;
    font-size: 13px;
  }
  .fp-btn-primary {
    padding: 0 14px;
    font-size: 14px;
  }
  .fp-fab {
    left: 12px;
    bottom: 16px;
    padding: 5px 11px 5px 6px;
    gap: 7px;
  }
  .fp-fab-ico {
    width: 30px;
    height: 30px;
  }
  .fp-fab-ico img {
    width: 26px;
    height: 26px;
  }
  .fp-fab-text strong {
    font-size: 12px;
  }
  .fp-fab-text small {
    font-size: 10px;
  }
}

/* 同期联动：远古狂轰团炮战盛典横幅条 */
.fp-fortress-bar {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 16px;
  background: linear-gradient(125deg, #2b0c59, #7d197b 62%, #d93f32);
  border: 2px solid rgba(255, 214, 102, .75);
  color: #fff;
  box-shadow: 0 8px 20px -12px rgba(42, 8, 72, .7);
}
.fp-ft-thumb {
  flex: none;
  width: 78px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
  border: 1.5px solid rgba(255, 228, 136, .75);
}
.fp-ft-copy {
  min-width: 0;
  flex: 1;
}
.fp-ft-copy b {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #ffe68a;
  line-height: 1.3;
}
.fp-ft-copy span {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  line-height: 1.45;
  color: #fff0f8;
}
.fp-ft-go {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff1a6, #ffd03b);
  color: #6b2e00;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 3px 0 #c98600;
  transition: transform .16s var(--ease-jelly);
}
@media (hover: hover) and (pointer: fine) {
  .fp-ft-go:hover {
    transform: translateY(-1px);
  }
}
@media (max-width: 720px) {
  .fp-fortress-bar {
    flex-wrap: wrap;
    padding: 9px 10px;
  }
  .fp-ft-thumb {
    width: 64px;
    height: 38px;
  }
  .fp-ft-go {
    width: 100%;
    padding: 7px 12px;
  }
}
