/* ============================================================
   yiqi365 GEO 改造版 · geo-enhance.css
   GEO / 可访问性增强层：跳转链接 / 焦点可见性 / 打印 / 对比度兜底
   ============================================================ */

/* ---------- 首页 Hero：午间冥想 + 呼吸球特效 ---------- */
.yx-hero-noon { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; text-align: left; }
.yx-hero-noon .yx-lead { margin-left: 0; margin-right: 0; }
.yx-hero-orb { justify-self: center; text-align: center; }
.yx-hero-orb .yx-breath-stage { margin: 0; width: min(300px, 64vw); animation: heroOrbFloat 7s ease-in-out infinite; }
.yx-hero-orb .yx-breath-core { animation: heroBreath478 19s cubic-bezier(.45,.05,.55,.95) infinite; transition: none; }
.yx-hero-orb .yx-breath-progress { opacity: .5; animation: heroOrbSpin 19s linear infinite; }
.yx-hero-orb-tip { margin: 18px 0 0; font-size: 14px; letter-spacing: .14em; color: var(--yx-text-dim); }
/* 4-7-8 节律：0-4s 吸气放大 → 4-11s 屏息保持 → 11-19s 呼气回落 */
@keyframes heroBreath478 {
  0% { transform: scale(1); }
  21% { transform: scale(1.28); }
  58% { transform: scale(1.28); }
  100% { transform: scale(1); }
}
@keyframes heroOrbFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@keyframes heroOrbSpin { to { transform: rotate(360deg); } }
@media (max-width: 860px) {
  .yx-hero-noon { grid-template-columns: 1fr; gap: 10px; text-align: center; }
  .yx-hero-noon .yx-lead { margin-left: auto; margin-right: auto; }
  .yx-hero-orb { order: -1; }
  .yx-hero-orb .yx-breath-stage { width: min(200px, 54vw); }
  .yx-hero-orb-tip { margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .yx-hero-orb .yx-breath-stage,
  .yx-hero-orb .yx-breath-core,
  .yx-hero-orb .yx-breath-progress { animation: none; }
}

/* ---------- 首页 GPM10 产品曝光带 ---------- */
.gpm-band { display: grid; grid-template-columns: 340px 1fr; gap: 36px; align-items: center; }
.gpm-band-img { border-radius: 16px; overflow: hidden; border: 1px solid rgba(180,220,255,.18);
  box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.gpm-band-title { font-size: clamp(22px, 3vw, 32px); }
.gpm-band-desc { color: #cfe0f5; margin: 12px 0 16px; line-height: 1.8; }
.gpm-band-chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 22px; }
.gpm-band-chips li { padding: 6px 13px; border: 1px solid rgba(212,181,112,.4); border-radius: 999px;
  font-size: 13px; color: #e8d9ae; background: rgba(212,181,112,.08); }
@media (max-width: 860px) {
  .gpm-band { grid-template-columns: 1fr; gap: 20px; }
  .gpm-band-img { max-width: 420px; margin: 0 auto; }
}

/* ---------- 键盘跳转链接（Tab 首焦点可见） ---------- */
.yx-skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 10px;
  background: #78b4ff;
  color: #06101f;
  font-weight: 600;
  text-decoration: none;
  transition: top .18s;
}

.yx-skip-link:focus { top: 12px; }

/* ---------- 焦点可见性（统一替代默认 outline） ---------- */
.yx-page a:focus-visible,
.yx-page button:focus-visible,
.yx-page input:focus-visible,
.yx-page [tabindex]:focus-visible {
  outline: 2px solid var(--yx-accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 屏幕阅读器专用文本 ---------- */
.yx-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 动效关闭（全局兜底，galaxy-bg.css 已处理背景层） ---------- */
@media (prefers-reduced-motion: reduce) {
  .yx-page *,
  .yx-page *::before,
  .yx-page *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ---------- 打印样式：内容优先，隐藏背景与交互件 ---------- */
@media print {
  .yx-galaxy, .yx-page-overlay, .yx-header, .yx-footer,
  .yx-player, .yx-hero-actions, .yx-cta-band, .yx-nav, .no-print {
    display: none !important;
  }
  body.yx-page { background: #fff; color: #111; }
  main.yx-main { width: 100%; }
  .yx-card, .yx-phase, .yx-track { border-color: #ccc; background: none; }
  a { color: #111; text-decoration: underline; }
}

/* ---------- 高对比度偏好 ---------- */
@media (prefers-contrast: more) {
  :root {
    --yx-text-dim: rgba(232, 237, 246, 0.85);
    --yx-line: rgba(200, 220, 255, 0.5);
  }
}

/* ---------- 面包屑 ---------- */
.yx-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--yx-text-dim);
  margin: 22px 0 4px;
}

.yx-breadcrumb a { color: var(--yx-text-dim); text-decoration: none; }
.yx-breadcrumb a:hover { color: var(--yx-text); }
.yx-breadcrumb .sep { opacity: 0.5; }
