/* ============================================================
   yg-theme.css — 品牌视觉适配层（按 hall 主视觉配色定制）
   ============================================================ */
:root {
  --primary: #0B7A3F !important;
  --grad: linear-gradient(135deg, #7BE0A8 0%, #0E8A48 52%, #07572C 100%) !important;
  --grad-deep: linear-gradient(135deg, #096B36 0%, #03401F 100%) !important;
  --on-cta: #012E1E !important;
  --glow: rgba(11,122,63,.32) !important;
  --glow-soft: rgba(11,122,63,.12) !important;
  --gold: #F5A623 !important;
  --gold-grad: linear-gradient(135deg, #E08A12 0%, #FFC24A 50%, #B86E08 100%) !important;
  --gold-bright: linear-gradient(135deg, #FFE08A 0%, #F7B733 55%, #CC7A08 100%) !important;
  --gold-soft: rgba(212,175,55,.16) !important;
  --ink: #14181f !important;
}
h1, h2, h3, .hero h1, .sec-title h2, .sec-head h2, .cta-band h2, .page-hero h1,
.ticker-head h2, .bonus-body h2 {
  font-family: "Montserrat","Segoe UI",system-ui,-apple-system,Tahoma,Arial,sans-serif !important;
  letter-spacing: -.015em;
  background: var(--gold-grad) !important;
  -webkit-background-clip: text !important; background-clip: text !important; color: transparent !important;
}
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0 !important; }
body { color: var(--ink) !important; }
p, li, dd, dt, .lead, .hero p, .page-hero p, .sec-title p, .bonus-body p, .text, blockquote { color: #1b2027 !important; }
.kicker, .badge, .tag, .eyebrow, .sec-title .label, .label-gold { color: #F5A623 !important; font-weight: 800 !important; }
.hero h1 .grad, .page-hero h1 .grad {
  background: var(--gold-bright) !important; -webkit-background-clip: text !important;
  background-clip: text !important; color: transparent !important;
}
.btn-primary, .home-redesign .btn-primary {
  background: var(--grad) !important; color: #012E1E !important;
  text-shadow: none !important; box-shadow: 0 10px 26px rgba(11,122,63,.32) !important;
}
.btn-primary:hover, .home-redesign .btn-primary:hover {
  background: var(--grad) !important; filter: brightness(1.06); box-shadow: 0 16px 34px rgba(11,122,63,.32) !important;
}
.btn-ghost:hover { border-color: var(--primary); color: #0B7A3F; }
.play-btn { color: #012E1E !important; }
.home-redesign .play-btn, .home-redesign .game-card:hover .play-btn {
  background: #E4F6EC !important; color: #07572C !important;
}
.game-launch-dialog .gm-brand { color: #07572C !important; }
.game-launch-dialog .gm-icon { background: linear-gradient(135deg, #E4F6EC, #fff) !important; }
.yg-gold-frame, .game-card, .cta-band, .activity-item, .contact-stack .cc-card, .tg-reco, .home-redesign .qr-card { position: relative; }
.yg-gold-frame::after, .game-card::after, .cta-band::after, .activity-item::after,
.contact-stack .cc-card::after, .tg-reco::after, .home-redesign .qr-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: var(--gold-grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.sec-title h2::after, .page-hero h1::after {
  content: ""; display: block; width: 64px; height: 3px; margin: 12px 0 0;
  background: var(--gold-grad); border-radius: 3px;
}
.tg-reco {
  background: linear-gradient(135deg, #FFF4E4, #FDE7CC) !important;
  border: 1px solid #F5A62366 !important; color: #7A4A00 !important;
  box-shadow: 0 10px 26px rgba(212,175,55,.22) !important;
}
.activity-gallery { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; margin-top: 8px; }
.activity-item { margin: 0; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 8px 24px rgba(15,27,45,.10); transition: transform .25s ease, box-shadow .25s ease; }
.activity-item img { width: 100%; height: auto; display: block; }
@media (prefers-reduced-motion: no-preference) {
  .activity-item:hover { transform: translateY(-4px) scale(1.015); box-shadow: 0 14px 34px rgba(15,27,45,.16); }
}
@media (max-width: 760px) { .activity-gallery { grid-template-columns: 1fr; gap: 14px; } }
@media (prefers-reduced-motion: no-preference) {
  body { animation: yg-body-in .5s ease both; }
  @keyframes yg-body-in { from { opacity: 0 } to { opacity: 1 } }
  .btn-primary { position: relative; overflow: hidden; transition: transform .18s ease, box-shadow .25s ease, filter .25s ease; }
  .btn-primary::after { content: ""; position: absolute; top: 0; left: 0; height: 100%; width: 45%;
    background: linear-gradient(90deg,transparent,rgba(255,255,255,.6),transparent);
    transform: translateX(-130%) skewX(-18deg); animation: yg-shimmer 3.4s ease-in-out infinite;
    pointer-events: none; mix-blend-mode: overlay; }
  .btn-primary:hover::after { animation-duration: 1.7s; }
  @keyframes yg-shimmer { 0% { transform: translateX(-130%) skewX(-18deg); } 60%,100% { transform: translateX(230%) skewX(-18deg); } }
  .hero h1 .grad, .page-hero h1 .grad { background-size: 200% auto !important; animation: yg-gold-sheen 4.6s ease-in-out infinite; }
  @keyframes yg-gold-sheen { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
  .btn-primary:hover { transform: translateY(-2px) scale(1.04); }
  .btn-ghost { transition: transform .18s ease, border-color .2s ease, color .2s ease, background .2s ease; }
  .btn-ghost:hover { transform: translateY(-2px) scale(1.03); }
  .game-card { transition: transform .25s ease, box-shadow .25s ease; }
  .game-card:hover { transform: translateY(-5px) scale(1.03); }
  .hero h1, .hero p, .home-phone-stage, .page-hero h1, .page-hero p { animation: yg-fade-up .7s cubic-bezier(.22,.61,.36,1) both; }
  .hero h1 { animation-delay: .04s; } .hero p { animation-delay: .14s; }
  .home-phone-stage { animation-delay: .22s; }
  .page-hero h1 { animation-delay: .05s; } .page-hero p { animation-delay: .13s; }
  @keyframes yg-fade-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
  /* 入场动画纯 CSS 实现，不依赖 JS 注入 class（避免 hydration mismatch） */
  .yg-motion .page-hero, .yg-motion .sec-head, .yg-motion .sec-title,
  .yg-motion .game-card, .yg-motion .bonus-card, .yg-motion .cta-band,
  .yg-motion .tg-reco, .yg-motion .ticker-row, .yg-motion .faq-item, .yg-motion .stat-card {
    animation: yg-reveal-in .6s cubic-bezier(.22,.61,.36,1) both;
  }
  @keyframes yg-reveal-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
  .tg-reco { animation: yg-pulse 2.8s ease-in-out infinite; }
  @keyframes yg-pulse { 0%,100% { box-shadow: 0 8px 22px rgba(212,175,55,.20); } 50% { box-shadow: 0 10px 30px rgba(212,175,55,.38); } }
}
#yg-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 9999; pointer-events: none;
  background: linear-gradient(90deg, #7BE0A8, #0E8A48, #07572C);
  box-shadow: 0 0 10px rgba(11,122,63,.32); opacity: 0; transition: opacity .25s ease, width .3s ease; }
#yg-progress.active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  body { animation: none !important; } .btn-primary::after { display: none !important; }
  .hero h1, .hero p, .home-phone-stage, .page-hero h1, .page-hero p { animation: none !important; }
  .hero h1 .grad, .page-hero h1 .grad { animation: none !important; background-size: 100% 100% !important; }
  .tg-reco { animation: none !important; } .yg-motion .page-hero, .yg-motion .sec-head, .yg-motion .game-card, .yg-motion .ticker-row { animation: none !important; }
  #yg-progress { display: none !important; }
}
