/*
 * IMPES 收敛样式 (2026-11-21, 站长「页面过于花哨」→ 选「保留毛玻璃、去动画」).
 * 2026-11-21 later: computers keep the full animated look; everything below applies to phones only.
 * Loaded after every page stylesheet (layouts/IMPES/app.blade.php). It switches off the decoration of the *-fx.css files
 * instead of editing them, so removing this file brings the old look back.
 *   1. no animations (spinners excepted), no scroll reveal, no glow / orbs / grid / scan layers
 *   2. calmer hero on the home page (no gradient text; the globe only on computers)
 *   3. phone: only the essentials; the rest is in 「更多」 (.m-more, toggled by .m-more-btn → body.m-more-open)
 * Glass cards (backdrop-filter) are kept on purpose.
 */

/* 1 ── phones only (站长 2026-11-21「动画恢复吧…仅电脑恢复」: computers keep every animation and effect) */
@media (max-width: 767.98px) {
*:not(.fa-spin):not(.spinner-border):not(.spinner-grow),
*:not(.fa-spin)::before, *:not(.fa-spin)::after {
  animation: none !important;
}
html { scroll-behavior: auto !important; }

/* scroll-reveal blocks start invisible in the fx files: show them */
.fx-rv, .nx-rv, .cx-rv, .dx-rv, .ax-rv, .ac-page .ax-rv, [data-reveal] {
  opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important;
}

/* decorative layers */
.fx-orbs, .fx-grid, .fx-scan, .fx-layer,
.nx-orbs, .nx-grid, .nx-layer,
.dx-orbs, .dx-grid, .dx-scan, .dx-layer, .dx-spark,
.ax-orbs, .ax-grid, .ax-layer,
.fx-glow, .nx-glow, .cx-glow, .dx-glow, .ax-glow {
  display: none !important;
}

/* hover lifts and tilts made cards jump: keep a plain hover */
.fx-tilt, [data-tilt], .ih-card, .hc-card, .dx-card, .nx-card, .cx-card, .ax-card {
  transform: none !important;
}

/* gradient / glowing text → the brand colour */
.impes-gradient-text {
  background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important;
  color: var(--impes-brand, #7B3FE4) !important; -webkit-text-fill-color: currentColor !important;
}
.ih-hero.is-fx .ih-hero-card h1 { text-shadow: none !important; }
.ih-hero.is-fx .ih-hero-card h1 .impes-gradient-text { color: #CDB2FF !important; }

/* glowing buttons: keep the colour, drop the light sweep and the halo */
.impes-cta::after { display: none !important; }
.impes-cta, .ih-hero.is-fx .impes-cta { box-shadow: none !important; }

}

/* 2 ── home hero: the globe stays on computers (站长 2026-11-21「电脑的首页地球还是要有的」); phones drop it (it was an empty block) */
@media (max-width: 767.98px) {
  .ih-hero.is-fx .ih-hero-map, .ih-hero.is-fx .ih-hero-shade { display: none !important; }
  .ih-hero.is-fx { min-height: 0 !important; background: linear-gradient(180deg, #1B0F3D 0%, #0C0820 100%) !important; }
}

/* live ticker: no scrolling — it becomes a row you can swipe */
.ih-ticker, .impes-ticker, .stock-ticker, .impes-stock-ticker {
  overflow-x: auto !important; scrollbar-width: none;
}

/* 3 ── phone: essentials only */
.m-more-btn { display: none; }
@media (max-width: 767.98px) {
  body:not(.m-more-open) .m-more { display: none !important; }
  .m-more-btn {
    display: flex; align-items: center; justify-content: center; gap: .4rem;
    width: calc(100% - 32px); margin: 12px 16px 24px; padding: .7rem 1rem; border-radius: 12px;
    border: 1px solid var(--impes-border, rgba(120, 100, 180, .25)); background: var(--impes-card, rgba(255, 255, 255, .7));
    color: inherit; font-weight: 600;
  }
  body.m-more-open .m-more-btn .m-more-show, body:not(.m-more-open) .m-more-btn .m-more-hide { display: none; }
  /* the three centre cards on the guest home: title, one line and the button only */
  .hg-centre .hg-sub, .hg-centre .hg-list { display: none !important; }
}
