/* ============================================================
   首屏「幻光灯」横幅
   仅作用于首页 .home-token-hero，不影响站点其它区块
   ============================================================ */

@property --lantern-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* 顶部内边距改为固定导航实际高度，让横幅与导航紧贴；左右与底部单独覆盖 */
#token-platform.home-token-hero.home-conversation-hero {
  padding-top: 86px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 24px !important;
  min-height: 0 !important;
  height: auto !important;
}

/* 通栏：只让横幅突破容器，不影响下方「三大首创」的容器对齐 */
.lantern-wrap {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
/* 横幅底部与「三大首创」分割线贴齐 */
#token-platform .home-conversation-promises {
  margin-top: 0 !important;
}

.hero-lantern {
  position: relative;
  border-radius: 0;
  isolation: isolate;
}

/* 幻彩描边与外溢柔光已按需求移除：横幅四周不再出现彩色边框 */

/* 图片上的流光扫过 */
.lantern-frame::after {
  content: '';
  position: absolute;
  inset: -20%;
  background: linear-gradient(
    105deg,
    transparent 34%,
    rgba(255, 255, 255, 0.07) 44%,
    rgba(186, 230, 253, 0.14) 50%,
    rgba(255, 255, 255, 0.06) 56%,
    transparent 66%
  );
  mix-blend-mode: screen;
  transform: translateX(-34%);
  animation: lantern-sweep 9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes lantern-sweep {
  0%, 100% { transform: translateX(-34%); }
  50% { transform: translateX(34%); }
}

.lantern-frame {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  height: clamp(380px, 42vw, 560px);
  background: #0b0b0d var(--lantern-lqip, none) center / cover no-repeat;
}

.lantern-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 42%;
  transform: scale(1.01);
  transition: transform 0.6s ease;
  /* 禁止右键另存与长按保存 */
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.hero-lantern:hover .lantern-frame img {
  transform: scale(1.035);
}

/* 文案遮罩：左侧压暗，保证可读 */
.lantern-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(9, 9, 11, 0.88) 0%, rgba(9, 9, 11, 0.55) 42%, rgba(9, 9, 11, 0.08) 72%, rgba(9, 9, 11, 0.22) 100%),
    linear-gradient(0deg, rgba(9, 9, 11, 0.45) 0%, transparent 46%);
  pointer-events: none;
}

.lantern-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: clamp(24px, 4vw, 56px);
  padding-left: max(24px, calc((100vw - 1200px) / 2 + 32px));
  max-width: min(760px, 84%);
  color: #faf9f5;
}

.lantern-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  height: 32px;
  padding: 0 14px;
  border: 1px solid rgba(250, 249, 245, 0.24);
  border-radius: 999px;
  background: rgba(250, 249, 245, 0.08);
  backdrop-filter: blur(6px);
  font-size: 12.5px;
  letter-spacing: -0.01em;
  color: rgba(250, 249, 245, 0.92);
}
.lantern-eyebrow svg { width: 14px; height: 14px; }

.lantern-title {
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.045em;
  color: #faf9f5;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.lantern-sub {
  font-size: clamp(13px, 1.3vw, 15px);
  line-height: 1.75;
  color: rgba(250, 249, 245, 0.76);
  max-width: 460px;
}

.lantern-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.lantern-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 20px;
  border-radius: var(--site-control-radius, 4px 4px 10px 4px);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}
.lantern-btn:active { transform: translateY(1px); }
.lantern-btn svg { width: 14px; height: 14px; }
.lantern-btn-primary { background: #faf9f5; color: #141413; }
.lantern-btn-primary:hover { background: #fff; }
.lantern-btn-ghost { border: 1px solid rgba(250, 249, 245, 0.32); color: #faf9f5; background: rgba(250, 249, 245, 0.04); }
.lantern-btn-ghost:hover { border-color: rgba(250, 249, 245, 0.6); background: rgba(250, 249, 245, 0.1); }

/* 原站首屏内有 a 颜色规则，这里显式覆盖 */
.hero-lantern a.lantern-btn-primary,
.hero-lantern a.lantern-btn-primary:visited { color: #141413 !important; }
.hero-lantern a.lantern-btn-ghost,
.hero-lantern a.lantern-btn-ghost:visited { color: #faf9f5 !important; }

/* 右下角序号 */
.lantern-index {
  position: absolute;
  right: clamp(18px, 3vw, 28px);
  bottom: clamp(16px, 2.4vw, 24px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(250, 249, 245, 0.7);
}
.lantern-index .dot {
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: rgba(250, 249, 245, 0.9);
}

@media (max-width: 900px) {
  .lantern-content { max-width: 100%; gap: 14px; }
  .lantern-sub { display: none; }
}

@media (max-width: 720px) {
  .lantern-frame { height: 280px; }
  .lantern-content { padding: 20px; }
  .lantern-title { font-size: 30px; }
  .lantern-btn { height: 36px; padding: 0 14px; font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .lantern-frame::after { animation: none; }
  .lantern-frame img, .hero-lantern:hover .lantern-frame img { transition: none; transform: none; }
}
