/* =========================================
 * 看球季密令词推广组件 - CSS
 * v1.0  2026-06-11
 * 包含：导航项动效 + 气泡弹层 + 复制Toast
 * ========================================= */

/* ====== 导航项【看球季】 - PC端 ====== */
.nav-kqj {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #ff3b3b 0%, #d4a853 50%, #ff6b00 100%);
  background-size: 200% 200%;
  color: #fff !important;
  font-weight: 700 !important;
  padding: 6px 14px !important;
  border-radius: 18px;
  margin: 0 6px;
  text-decoration: none !important;
  white-space: nowrap;
  overflow: visible;
  animation: kqjPulse 2.4s ease-in-out infinite, kqjGradient 4s ease infinite;
  transition: transform .2s ease, box-shadow .2s ease;
}
.nav-kqj:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 107, 0, 0.5) !important;
}
@keyframes kqjPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.65); }
  50%      { box-shadow: 0 0 0 10px rgba(255, 107, 0, 0); }
}
@keyframes kqjGradient {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.kqj-icon {
  display: inline-block;
  animation: kqjBounce 1.6s ease-in-out infinite;
  transform-origin: center bottom;
}
@keyframes kqjBounce {
  0%, 100% { transform: translateY(0) rotate(0); }
  25%      { transform: translateY(-4px) rotate(-15deg); }
  75%      { transform: translateY(-4px) rotate(15deg); }
}
.kqj-hot {
  background: #fff;
  color: #ff3b3b;
  font-size: 0.62em;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 8px;
  margin-left: 3px;
  vertical-align: super;
  line-height: 1.2;
  letter-spacing: .5px;
}

/* ====== 导航项【看球季】 - 移动端 ====== */
.nav-kqj-m {
  background: linear-gradient(135deg, #ff3b3b 0%, #d4a853 100%) !important;
  background-size: 200% 200% !important;
  color: #fff !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  margin: 4px 0 !important;
  animation: kqjGradient 4s ease infinite;
}
.nav-kqj-m .kqj-hot {
  background: #fff;
  color: #ff3b3b;
  font-size: 0.65em;
  padding: 1px 6px;
  border-radius: 8px;
  margin-left: 6px;
  font-weight: 800;
  vertical-align: middle;
}

/* ====== 气泡弹层 ====== */
.kqj-bubble {
  position: fixed;
  top: -2000px;            /* 默认隐藏在视口外，JS 动态定位 */
  left: 50%;
  width: min(820px, 62vw);
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 0) scale(0.92);
  transition: opacity .3s ease, transform .35s cubic-bezier(.34, 1.56, .64, 1);
  pointer-events: none;
}
.kqj-bubble.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
  pointer-events: auto;
}
.kqj-bubble.mobile-pos {
  top: 50% !important;
  transform: translate(-50%, -50%) scale(0.92);
}
.kqj-bubble.mobile-pos.show {
  transform: translate(-50%, -50%) scale(1);
}
/* ====== 覆盖轮播图模式：absolute + 从上往下卷帘展开 ====== */
.kqj-bubble.cover-mode {
  position: absolute !important;
  transform: translateY(-10px);
  clip-path: inset(0 0 100% 0);     /* 初始：完全裁掉（不可见） */
  transform-origin: top center;
  transition: opacity .35s ease,
              transform .55s cubic-bezier(.22, .61, .36, 1),
              clip-path .6s cubic-bezier(.22, .61, .36, 1);
  /* top / left / width 由 JS 动态设置 */
}
.kqj-bubble.cover-mode.show {
  transform: translateY(0);
  clip-path: inset(0 0 0 0);        /* 展开：完整显示 */
}
.kqj-bubble.cover-mode .kqj-arrow { display: none !important; }
.kqj-bubble.cover-mode .kqj-bubble-inner {
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .65),
              0 0 0 2px rgba(212, 168, 83, .55),
              0 0 32px rgba(212, 168, 83, .25);
}
.kqj-bubble-inner {
  position: relative;
  background: linear-gradient(180deg, #1a1f3a 0%, #0f1530 100%);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(212, 168, 83, .35);
}
.kqj-link { display: block; line-height: 0; }
.kqj-img {
  width: 100%;
  height: auto;
  display: block;
}
.kqj-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  border: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background .2s, transform .2s;
}
.kqj-close:hover {
  background: rgba(255, 59, 59, .9);
  transform: rotate(90deg);
}
.kqj-cta-row {
  display: flex;
  gap: 10px;
  padding: 14px;
}
.kqj-cta-btn, .kqj-copy-btn {
  flex: 1;
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease;
  font-family: inherit;
}
.kqj-cta-btn {
  background: linear-gradient(135deg, #ff3b3b, #ff6b00);
  color: #fff !important;
}
.kqj-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 107, 0, .45);
}
.kqj-copy-btn {
  background: linear-gradient(135deg, #d4a853, #c08e3f);
  color: #fff !important;
}
.kqj-copy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(212, 168, 83, .45);
}
.kqj-tip {
  text-align: center;
  color: rgba(255, 255, 255, .7);
  font-size: 13.5px;
  padding: 0 14px 14px;
  letter-spacing: .3px;
}
.kqj-tip .kqj-tip-strong {
  color: #d4a853;
  font-weight: 600;
}
/* PC 端箭头指向导航 */
.kqj-arrow {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #1a1f3a;
  filter: drop-shadow(0 -1px 0 rgba(212, 168, 83, .35));
}

/* 移动端隐藏箭头，按钮改竖排 */
@media (max-width: 768px) {
  .kqj-bubble { width: 92vw; }
  .kqj-bubble .kqj-arrow { display: none; }
  .kqj-cta-row { flex-direction: column; gap: 8px; }
  .kqj-close { width: 34px; height: 34px; font-size: 22px; }
}

/* ====== Toast 提示 ====== */
.kqj-toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(.9);
  background: rgba(0, 0, 0, .88);
  color: #fff;
  padding: 14px 22px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.6;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, transform .25s, visibility .25s;
  pointer-events: none;
  max-width: 80vw;
  text-align: center;
  white-space: pre-line;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.kqj-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

/* ====== 三大入口 Hero Bar v1.0  2026-06-12 ====== */
.kqj-hero-bar {
  max-width: 1600px; margin: -14px auto 0; padding: 0 16px;
}
.kqj-hero-inner {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px;
}
.kqj-hero-inner > * { min-width: 0; }
.kqj-hero-card {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 18px 22px; border-radius: 18px; text-decoration: none !important;
  color: #fff !important; overflow: hidden;
  box-shadow: 0 6px 22px rgba(0,0,0,.18), 0 0 0 1px rgba(255,255,255,.06) inset;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.kqj-hero-card::after{ content:''; position:absolute; inset:0; background:linear-gradient(120deg,rgba(255,255,255,.18) 0%,transparent 40%); pointer-events:none; }
.kqj-hero-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.32), 0 0 0 1px rgba(255,255,255,.12) inset; filter: brightness(1.06); }
.kqj-hero-card.is-kqj { background: linear-gradient(135deg, #ff3b3b 0%, #d4a853 50%, #ff6b00 100%); background-size: 200% 200%; animation: kqj-flow 6s ease infinite; }
.kqj-hero-card.is-cbf { background: linear-gradient(135deg, #ff7a18 0%, #d4a853 45%, #b8860b 100%); background-size: 200% 200%; animation: kqj-flow 7s ease infinite reverse; }
.kqj-hero-card.is-cal { background: linear-gradient(135deg, #1a5fb4 0%, #2d8cff 50%, #00c6ff 100%); background-size: 200% 200%; animation: kqj-flow 9s ease infinite; }
.kqj-hero-card.is-cal.is-active { box-shadow: 0 0 0 2px #d4a853 inset, 0 12px 30px rgba(0,198,255,.45); }
@keyframes kqj-flow { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.khc-icon { font-size: 2.2rem; flex-shrink: 0; line-height: 1; filter: drop-shadow(0 2px 4px rgba(0,0,0,.3)); }
.khc-text { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; overflow: hidden; }
.khc-title { font-size: 1.12rem; font-weight: 800; letter-spacing: .5px; display: flex; align-items: center; gap: 8px; }
.khc-sub   { font-size: .8rem; opacity: .92; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.khc-hot   { display: inline-block; padding: 1px 6px; border-radius: 8px; background: rgba(255,255,255,.22); font-size: .68rem; font-weight: 700; letter-spacing: .5px; }
.khc-hot-new { background: rgba(255,255,255,.28); color: #fff; }
.khc-arrow { font-size: 1.4rem; opacity: .8; flex-shrink: 0; transition: transform .25s; }
.kqj-hero-card:hover .khc-arrow { transform: translateX(4px); opacity: 1; }

/* 移动端 Hero Bar  横向滑动 chip */
.kqj-hero-m { display:none !important; padding:10px 14px 6px; gap:8px; overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:none; }
.kqj-hero-m::-webkit-scrollbar{ display:none; }
.kqj-hero-m-card { flex-shrink:0; display:inline-flex; align-items:center; gap:6px; padding:8px 14px; border-radius:20px; color:#fff!important; text-decoration:none!important; font-size:.86rem; font-weight:700; box-shadow:0 4px 10px rgba(0,0,0,.18); }
.kqj-hero-m-card.is-kqj { background:linear-gradient(135deg,#ff3b3b,#d4a853,#ff6b00); }
.kqj-hero-m-card.is-cbf { background:linear-gradient(135deg,#ff7a18,#d4a853,#b8860b); }
.kqj-hero-m-card.is-cal { background:linear-gradient(135deg,#1a5fb4,#2d8cff,#00c6ff); }
.kqj-hero-m-card.is-active { box-shadow:0 0 0 2px #d4a853 inset, 0 4px 10px rgba(0,0,0,.2); }
.kqj-hero-m-card .khc-hot { font-size:.6rem; padding:1px 5px; }

/* 响应式 */
@media (max-width: 900px) {
  .kqj-hero-inner { grid-template-columns: 1fr; gap: 10px; }
  .kqj-hero-card { padding: 14px 18px; gap: 12px; }
  .khc-icon { font-size: 1.8rem; }
  .khc-title { font-size: 1rem; }
  .khc-sub { font-size: .76rem; }
}
@media (max-width: 768px) {
  .kqj-hero-bar { display: none !important; }
  .kqj-hero-m   { display: flex !important; }
}


/* ====== 今日比赛 Spotlight 大卡片 v1.0  2026-06-12 ====== */
.cal-spotlight-list { display: flex; flex-direction: column; gap: 18px; }
.cal-spotlight {
  position: relative; display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 0;
  background: linear-gradient(135deg, #1a1f3a 0%, #232a4d 60%, #2a3358 100%);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 10px 32px rgba(0,0,0,.32), 0 0 0 1px rgba(212,168,83,.22) inset;
  min-height: 280px;
}
.cal-spotlight.is-featured { box-shadow: 0 12px 38px rgba(212,168,83,.18), 0 0 0 2px rgba(212,168,83,.45) inset; }
.cal-sl-left { padding: 24px 24px 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cal-sl-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cal-sl-date { display: inline-flex; align-items: baseline; gap: 8px; color: #f1f1f5; font-weight: 700; }
.cal-sl-date .d { font-size: 1.05rem; }
.cal-sl-date .t { font-size: 1.35rem; color: #f6c969; font-weight: 800; letter-spacing: .5px; }
.cal-sl-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cal-sl-tag { padding: 3px 10px; border-radius: 12px; font-size: .72rem; font-weight: 700; background: rgba(212,168,83,.18); color: #f6c969; }
.cal-sl-tag.is-hot { background: linear-gradient(135deg,#ff3b3b,#ff7a18); color:#fff; }
.cal-sl-tag.is-stage { background: rgba(45,140,255,.22); color: #8ec5ff; }
.cal-sl-tag.is-weekend { background: rgba(0,200,150,.2); color: #6ce8b8; }

.cal-sl-match {
  display: flex; align-items: center; justify-content: flex-start; gap: 14px;
  margin: 2px 0 0; flex-wrap: wrap;
}
.cal-sl-team {
  font-size: 1.6rem; font-weight: 800; color: #fff;
  letter-spacing: .5px; line-height: 1.15;
  text-shadow: 0 2px 6px rgba(0,0,0,.35);
}
.cal-sl-vs {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, #f6c969, #b8860b); color: #2a1a00;
  font-weight: 800; font-size: .95rem; box-shadow: 0 4px 10px rgba(184,134,11,.45);
  flex-shrink: 0;
}
.cal-sl-highlight {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 10px 14px; border-radius: 12px;
  background: rgba(255,255,255,.04); border-left: 3px solid #f6c969;
  color: #f3e7c4; font-size: .92rem; line-height: 1.5;
}
.cal-sl-scene { font-size: .88rem; color: #b8c5e0; }
.cal-sl-gear { display: flex; flex-wrap: wrap; gap: 6px; }
.cal-sl-chip {
  padding: 4px 10px; border-radius: 12px; font-size: .8rem; font-weight: 600;
  background: rgba(255,255,255,.07); color: #d9e0f2;
  border: 1px solid rgba(255,255,255,.08);
}
.cal-sl-codes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 6px; }
.cal-sl-copy {
  padding: 10px 16px; border-radius: 12px; font-weight: 800; font-size: .95rem;
  color: #2a1a00; cursor: pointer; border: 0;
  background: linear-gradient(135deg, #f6c969 0%, #d4a853 50%, #b8860b 100%);
  box-shadow: 0 6px 14px rgba(184,134,11,.32);
  transition: transform .2s, box-shadow .2s;
}
.cal-sl-copy:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(184,134,11,.45); }
.cal-sl-go {
  padding: 10px 16px; border-radius: 12px; font-weight: 800; font-size: .95rem;
  color: #fff; text-decoration: none !important;
  background: linear-gradient(135deg,#ff7a18,#e07b1f,#b8590b);
  box-shadow: 0 6px 14px rgba(176,89,11,.32);
  transition: transform .2s, box-shadow .2s;
}
.cal-sl-go:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(176,89,11,.45); }

/* 右侧赛场图 / 球队装饰 */
.cal-sl-right {
  position: relative; min-height: 280px;
  background:
    radial-gradient(circle at 70% 30%, rgba(212,168,83,.18) 0%, transparent 55%),
    radial-gradient(circle at 30% 70%, rgba(45,140,255,.16) 0%, transparent 55%),
    linear-gradient(135deg, #16622e 0%, #0f4a23 45%, #0a371a 100%);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 22px 22px 24px; gap: 10px; overflow: hidden;
}
/* 球场线条装饰 */
.cal-sl-right::before {
  content: ''; position: absolute; inset: 14px;
  border: 2px solid rgba(255,255,255,.16); border-radius: 8px;
  pointer-events: none;
}
.cal-sl-right::after {
  content: ''; position: absolute; left: 50%; top: 14px; bottom: 14px;
  width: 2px; background: rgba(255,255,255,.16); pointer-events: none;
  transform: translateX(-1px);
}
.cal-sl-pitch-circle {
  position: absolute; left: 50%; top: 50%;
  width: 120px; height: 120px;
  border: 2px solid rgba(255,255,255,.18); border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.cal-sl-ball {
  position: relative; z-index: 2;
  font-size: 3.8rem; line-height: 1;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,.45));
  animation: cal-ball-float 3.5s ease-in-out infinite;
}
@keyframes cal-ball-float {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50%      { transform: translateY(-10px) rotate(8deg); }
}
.cal-sl-teams-img {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 14px; margin-top: 8px;
  flex-wrap: wrap; justify-content: center;
}
.cal-sl-flag {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 56px; height: 52px; padding: 0 14px;
  border-radius: 14px; background: rgba(0,0,0,.32);
  color: #fff; font-weight: 800; font-size: 1rem; letter-spacing: .5px;
  border: 2px solid rgba(255,255,255,.18);
  backdrop-filter: blur(4px);
}
.cal-sl-flag .em { font-size: 1.5rem; margin-right: 6px; }
.cal-sl-vs-small {
  font-size: .9rem; color: #f6c969; font-weight: 800; letter-spacing: 1px;
}
.cal-sl-stadium {
  position: relative; z-index: 2;
  margin-top: 4px; padding: 4px 12px; border-radius: 10px;
  background: rgba(0,0,0,.35); color: #d9e0f2; font-size: .78rem; font-weight: 600;
  border: 1px solid rgba(255,255,255,.08);
}

/* 响应式：窄屏改单列 */
@media (max-width: 859px) {
  .cal-spotlight { grid-template-columns: 1fr; min-height: 0; }
  .cal-sl-right { min-height: 220px; order: -1; }
  .cal-sl-left { padding: 20px 18px; }
  .cal-sl-team { font-size: 1.35rem; }
}
@media (max-width: 559px) {
  .cal-sl-right { min-height: 180px; padding: 18px 16px; }
  .cal-sl-ball { font-size: 3rem; }
  .cal-sl-flag { min-width: 48px; height: 48px; padding: 0 10px; font-size: .9rem; }
  .cal-sl-team { font-size: 1.2rem; }
  .cal-sl-codes { gap: 8px; }
  .cal-sl-copy, .cal-sl-go { padding: 8px 12px; font-size: .85rem; }
}
