/* ════════════════════════════════════════════════════════════════
   SKMVP FX Layer — static/css/skmvp-fx.css  (2026-06)
   高科技黑金質感強化：hover 發光 / 金光 / 脈動 / 字體層次
   原則：純疊加、不改版面流（只用 transform / box-shadow / opacity /
   pseudo-element）；連續動畫全包在 reduced-motion: no-preference。
   依賴 skmvp.css 的 :root 變數（--gold 等），本檔須在其後載入。
   ════════════════════════════════════════════════════════════════ */

/* ── 全站微質感：字體平滑、選取色、捲軸 ───────────────────────── */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
::selection { background: rgba(201,168,76,.30); color: #fff; }
* { scrollbar-width: thin; scrollbar-color: var(--gold-dk) transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--gold-dk), var(--gold));
  border-radius: 6px; border: 2px solid var(--bg);
}
*::-webkit-scrollbar-thumb:hover { background: var(--gold-lt); }

/* ── 標題層次微調 ─────────────────────────────────────────────── */
h1, h2, h3 { letter-spacing: .01em; }

/* ── 互動元素統一過渡 ─────────────────────────────────────────── */
.card, .gen-card, .stats-section, .gen-panel,
.btn-home, .btn-login, .btn-back, .sport-tab,
button, a.card, [role="button"] {
  transition: transform .22s cubic-bezier(.16,1,.3,1),
              box-shadow .22s ease, border-color .22s ease, filter .22s ease;
}

/* ── 卡片 hover：浮起 + 金色邊 + 柔光 ─────────────────────────── */
@media (hover: hover) {
  .card:hover, .gen-card:hover, a.card:hover {
    transform: translateY(-3px);
    border-color: rgba(201,168,76,.45);
    box-shadow: 0 10px 30px rgba(0,0,0,.45), 0 0 0 1px rgba(201,168,76,.18),
                0 8px 26px rgba(201,168,76,.10);
  }
  .stats-section:hover, .gen-panel:hover {
    border-color: rgba(201,168,76,.30);
    box-shadow: 0 6px 22px rgba(0,0,0,.35);
  }
  /* 按鈕 hover：上浮 + 金光暈 + 微提亮 */
  .btn-home:hover, .btn-login:hover, .btn-back:hover,
  button:hover, .sport-tab:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(201,168,76,.22);
    filter: brightness(1.06);
  }
  .btn-home:active, .btn-login:active, button:active { transform: translateY(0) scale(.98); }
}

/* ── 焦點可及性：金色 focus ring ──────────────────────────────── */
a:focus-visible, button:focus-visible, .sport-tab:focus-visible,
input:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px;
}

@media (prefers-reduced-motion: no-preference) {

  /* ── 主推/金色徽章：緩慢脈動光暈（耐看版，6s）──────────────── */
  .badge-gold {
    animation: fxGoldPulse 6s ease-in-out infinite;
  }
  @keyframes fxGoldPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,.0); }
    50%      { box-shadow: 0 0 14px 0 rgba(201,168,76,.35); }
  }

  /* ── 金條流光：既有 .gold-bar 加流動漸層 ──────────────────── */
  .gold-bar {
    background: linear-gradient(90deg, var(--gold-dk), var(--gold-lt), var(--gold-dk));
    background-size: 200% 100%;
    animation: fxGoldFlow 3.2s linear infinite;
  }
  @keyframes fxGoldFlow {
    0%   { background-position: 0% 0; }
    100% { background-position: 200% 0; }
  }

  /* ── section-label 前置科技點：呼吸光點 ───────────────────── */
  .section-label::before {
    content: ""; display: inline-block;
    width: 6px; height: 6px; margin-right: 8px; vertical-align: middle;
    border-radius: 50%; background: var(--gold);
    box-shadow: 0 0 8px var(--gold);
    animation: fxDot 2.4s ease-in-out infinite;
  }
  @keyframes fxDot {
    0%, 100% { opacity: .35; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.25); }
  }
}
/* ── end skmvp-fx.css ── */
