/* 游光星球 · 前端艺术重构 · 分页二维码性能优化版 */
:root {
  --yg-ink: #081433;
  --yg-ink-2: #182a55;
  --yg-soft: #63708e;
  --yg-muted: #8b97b7;
  --yg-panel: rgba(255,255,255,.66);
  --yg-panel-strong: rgba(255,255,255,.82);
  --yg-stroke: rgba(116,136,196,.26);
  --yg-stroke-strong: rgba(92,112,185,.38);
  --yg-blue: #3d67ff;
  --yg-violet: #8055ff;
  --yg-cyan: #22d8ff;
  --yg-pink: #ff83c8;
  --yg-orange: #ff7d66;
  --yg-gold: #ffbd4f;
  --yg-green: #35d399;
  --yg-radius-xl: 34px;
  --yg-radius-lg: 26px;
  --yg-radius: 18px;
  --yg-radius-sm: 12px;
  --yg-shadow: 0 24px 70px rgba(72,92,156,.18), 0 8px 24px rgba(70,86,147,.10);
  --yg-shadow-hover: 0 28px 82px rgba(74,88,177,.25), 0 14px 36px rgba(88,82,210,.14);
  --yg-blur: blur(22px) saturate(170%);
  --yg-max: 1480px;
  --yg-nav-h: 74px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--yg-ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  background:
    radial-gradient(circle at 8% 8%, rgba(40,216,255,.34), transparent 28%),
    radial-gradient(circle at 76% 3%, rgba(137,91,255,.30), transparent 34%),
    radial-gradient(circle at 96% 36%, rgba(255,133,197,.22), transparent 28%),
    linear-gradient(124deg, #f3fbff 0%, #eef4ff 45%, #fbf0ff 100%);
  overflow-x: hidden;
}
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -5;
  pointer-events: none;
}
body::before {
  background:
    radial-gradient(circle at 14% 70%, rgba(255,255,255,.95) 0 1px, transparent 2px),
    radial-gradient(circle at 30% 20%, rgba(124,77,255,.55) 0 2px, transparent 3px),
    radial-gradient(circle at 44% 11%, rgba(255,140,177,.55) 0 1px, transparent 2px),
    radial-gradient(circle at 64% 18%, rgba(32,214,255,.52) 0 1px, transparent 2px),
    radial-gradient(circle at 89% 64%, rgba(124,77,255,.48) 0 1px, transparent 2px),
    linear-gradient(110deg, transparent 0 42%, rgba(255,255,255,.58) 46%, transparent 52% 100%);
  opacity: .86;
}
body::after {
  background:
    radial-gradient(ellipse at 52% 24%, transparent 0 42%, rgba(255,255,255,.70) 43%, transparent 45%),
    radial-gradient(ellipse at 54% 30%, transparent 0 51%, rgba(126,121,255,.17) 52%, transparent 54%),
    radial-gradient(ellipse at 43% 39%, transparent 0 59%, rgba(34,216,255,.14) 60%, transparent 62%);
  transform: rotate(-8deg) scale(1.1);
  opacity: .8;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid rgba(61,103,255,.35); outline-offset: 3px; }
::selection { background: rgba(124,77,255,.18); }

.yg-page { min-height: 100vh; isolation: isolate; position: relative; }
.yg-main { padding: 18px 0 72px; }
.yg-shell { width: min(var(--yg-max), calc(100vw - 56px)); margin: 0 auto; min-width: 0; }
.yg-section { margin-top: 26px; }

.yg-aurora {
  position: fixed;
  inset: -18vh -10vw auto;
  height: 56vh;
  background:
    radial-gradient(circle at 20% 36%, rgba(33,217,255,.28), transparent 30%),
    radial-gradient(circle at 56% 18%, rgba(125,85,255,.25), transparent 32%),
    radial-gradient(circle at 90% 32%, rgba(255,137,192,.25), transparent 28%);
  filter: blur(32px);
  z-index: -4;
  pointer-events: none;
}
.yg-starbits {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(126,91,255,.55) 0 2px, transparent 2.5px), radial-gradient(circle, rgba(35,211,255,.45) 0 1.5px, transparent 2px), radial-gradient(circle, rgba(255,134,172,.4) 0 1.5px, transparent 2px);
  background-size: 190px 190px, 260px 260px, 230px 230px;
  background-position: 30px 18px, 90px 110px, 160px 42px;
  opacity: .68;
}
.yg-orb { position: fixed; z-index: -2; pointer-events: none; border-radius: 50%; filter: drop-shadow(0 14px 22px rgba(95,80,200,.28)); }
.yg-orb::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(135deg, rgba(44,225,255,.85), rgba(137,86,255,.86), rgba(255,137,192,.75)); }
.yg-orb::after { content: ""; position: absolute; inset: 38% -34%; border: 3px solid rgba(255,255,255,.78); border-left-color: transparent; border-right-color: transparent; border-radius: 50%; transform: rotate(-24deg); }
.yg-orb.one { width: 78px; height: 78px; left: 30px; top: 70px; }
.yg-orb.two { width: 24px; height: 24px; right: 31%; top: 110px; opacity: .72; }
.yg-orb.three { width: 44px; height: 44px; right: 58px; bottom: 76px; opacity: .8; }

/* Header */
.yg-nav-wrap {
  position: sticky;
  top: 14px;
  z-index: 50;
  margin-bottom: 18px;
}
.yg-nav {
  min-height: var(--yg-nav-h);
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(340px, 1fr);
  align-items: center;
  gap: 22px;
  padding: 10px 18px 10px 20px;
  border: 1px solid rgba(255,255,255,.72);
  background: rgba(255,255,255,.58);
  box-shadow: 0 18px 46px rgba(77,95,155,.14), inset 0 1px 0 rgba(255,255,255,.76);
  backdrop-filter: var(--yg-blur);
  border-radius: 999px;
  min-width: 0;
}
.logo { display: inline-flex; align-items: center; gap: 12px; min-width: 0; width: max-content; max-width: 100%; }
.logo-mark { width: 56px; height: 56px; flex: 0 0 56px; display: grid; place-items: center; }
.logo-mark img { width: 56px; height: 56px; }
.logo-text { display: grid; gap: 2px; min-width: 0; }
.logo-title { font-size: 22px; line-height: 1.05; font-weight: 1000; letter-spacing: -.04em; white-space: nowrap; }
.logo-sub { font-size: 12px; line-height: 1.25; font-weight: 800; color: var(--yg-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 270px; }
.nav-links { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; }
.nav-link { position: relative; display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 18px; border-radius: 999px; color: #0e1b3a; font-weight: 900; white-space: nowrap; transition: .24s ease; }
.nav-link:hover { background: rgba(255,255,255,.58); transform: translateY(-1px); }
.nav-link.active { color: var(--yg-blue); background: rgba(255,255,255,.64); box-shadow: inset 0 -2px 0 rgba(61,103,255,.78); }
.nav-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; min-width: 0; }
.yg-search, .big-search {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  border: 1px solid rgba(255,255,255,.78);
  background: rgba(255,255,255,.68);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.86), 0 10px 30px rgba(77,90,150,.08);
  padding: 0 10px 0 18px;
  backdrop-filter: blur(16px);
}
.yg-search { width: min(360px, 100%); flex: 1 1 260px; }
.yg-search input, .big-search input { min-width: 0; flex: 1 1 auto; border: 0; outline: 0; background: transparent; font-weight: 800; color: var(--yg-ink); }
.yg-search input::placeholder, .big-search input::placeholder { color: #8994b4; }
.yg-search button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; display: grid; place-items: center; flex: 0 0 auto; }
.search-icon { width: 21px; height: 21px; display: inline-block; background: url('/assets/yg-icons/search.svg') center/contain no-repeat; flex: 0 0 21px; }
.yg-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.8);
  background: rgba(255,255,255,.62);
  color: var(--yg-ink);
  font-weight: 950;
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(77,90,150,.10), inset 0 1px 0 rgba(255,255,255,.76);
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}
.yg-btn:hover { transform: translateY(-2px); box-shadow: var(--yg-shadow-hover); }
.yg-btn--primary { color: #fff; background: linear-gradient(135deg, var(--yg-blue), var(--yg-violet) 58%, #bd5fff); border-color: rgba(255,255,255,.78); }
.yg-btn--warm { color: #fff; background: linear-gradient(135deg, #ff5f73, #ff8665); border-color: rgba(255,255,255,.86); box-shadow: 0 14px 32px rgba(255,111,102,.28), inset 0 1px 0 rgba(255,255,255,.56); }
.yg-btn[disabled] { opacity: .58; cursor: not-allowed; transform: none; }
.nav-toggle { display: none; width: 46px; padding: 0; }
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { content: ""; display: block; width: 19px; height: 2px; background: var(--yg-ink); border-radius: 99px; }
.nav-toggle { flex-direction: column; gap: 4px; }

/* Shared panels and typography */
.glass-card {
  border: 1px solid rgba(255,255,255,.72);
  background: var(--yg-panel);
  border-radius: var(--yg-radius-xl);
  box-shadow: var(--yg-shadow), inset 0 1px 0 rgba(255,255,255,.72);
  backdrop-filter: var(--yg-blur);
  overflow: hidden;
  min-width: 0;
}
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; min-width: 0; }
.section-head > div { min-width: 0; }
.section-head a { color: var(--yg-ink-2); font-weight: 900; white-space: nowrap; text-decoration: underline; text-decoration-color: rgba(61,103,255,.22); text-underline-offset: 4px; }
.section-kicker { display: block; margin-bottom: 6px; color: #6878b5; font-size: 12px; line-height: 1; font-weight: 1000; letter-spacing: .08em; text-transform: uppercase; }
.section-title { margin: 0; font-size: clamp(24px, 2.2vw, 34px); line-height: 1.05; letter-spacing: -.05em; }
.section-desc, .result-meta { margin: 10px 0 0; color: var(--yg-soft); font-weight: 750; line-height: 1.75; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.74); background: rgba(255,255,255,.66); color: #485b91; font-weight: 950; font-size: 14px; white-space: nowrap; box-shadow: inset 0 1px 0 rgba(255,255,255,.8); }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yg-cyan); box-shadow: 0 0 0 6px rgba(34,216,255,.12); flex: 0 0 auto; }
.loading-state, .empty-state { width: 100%; min-height: 120px; display: grid; place-items: center; text-align: center; color: var(--yg-soft); font-weight: 850; border-radius: 22px; background: rgba(255,255,255,.42); border: 1px dashed rgba(109,127,193,.28); padding: 22px; }
.icon-inline { width: 18px; height: 18px; display: inline-block; vertical-align: -3px; background: center/contain no-repeat; flex: 0 0 18px; }
.icon-fire { background-image: url('/assets/yg-icons/fire.svg'); }
.icon-heart { background-image: url('/assets/yg-icons/heart.svg'); }

/* Home hero */
.hero {
  display: grid;
  grid-template-columns: minmax(420px, .82fr) minmax(0, 1.18fr);
  gap: 36px;
  align-items: center;
  min-height: 560px;
  padding: 26px 18px 18px;
  position: relative;
}
.hero-copy { min-width: 0; max-width: 620px; }
.hero h1,
.library-hero h1,
.sub-hero h1,
.seo-category-title,
.detail-title {
  margin: 20px 0 16px;
  font-size: clamp(52px, 7vw, 96px);
  line-height: .95;
  letter-spacing: -.08em;
  color: #081433;
}
.hero h1 .gradient,
.gradient { background: linear-gradient(98deg, #1f51ff 10%, #7d55ff 52%, #c35dff 92%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy p, .library-hero p, .sub-hero p, .seo-category-desc { margin: 0; color: #536381; font-size: 18px; line-height: 1.85; font-weight: 760; max-width: 680px; }
.hero-actions { margin-top: 26px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-metrics { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 126px)); gap: 14px; max-width: 440px; }
.metric-pill { min-width: 0; min-height: 76px; padding: 14px 16px; display: grid; align-content: center; gap: 6px; border-radius: 20px; border: 1px solid rgba(255,255,255,.8); background: rgba(255,255,255,.62); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 12px 28px rgba(77,90,150,.08); }
.metric-pill strong { font-size: 24px; line-height: 1; font-weight: 1000; }
.metric-pill span { color: #6e7a9c; font-size: 12px; font-weight: 850; white-space: nowrap; }
.hero-art { min-width: 0; width: 100%; height: 540px; position: relative; overflow: hidden; }
.orbit-stage { position: absolute; inset: 0; overflow: hidden; border-radius: 38px; transform: translateZ(0); }
.orbit-ring { position: absolute; left: 12%; top: 20%; width: 76%; height: 48%; border: 2px solid rgba(255,255,255,.86); border-radius: 50%; transform: rotate(-16deg); box-shadow: inset 0 0 48px rgba(255,255,255,.28); }
.orbit-ring.two { left: 4%; top: 31%; width: 84%; height: 38%; transform: rotate(-12deg); border-color: rgba(126,129,255,.20); }
.space-console {
  position: absolute; left: 23%; top: 25%; width: 230px; height: 280px;
  border-radius: 38px;
  background: linear-gradient(145deg, rgba(255,255,255,.48), rgba(255,255,255,.12));
  border: 1px solid rgba(255,255,255,.68);
  box-shadow: 0 30px 80px rgba(100,95,180,.26), inset 0 1px 0 rgba(255,255,255,.68);
  transform: rotate(-20deg);
}
.space-console::before { content: "GAME PLANET\A 游光星球"; white-space: pre; position: absolute; left: 46px; top: 52px; width: 140px; height: 72px; border-radius: 20px; display: grid; place-items: center; text-align: center; background: rgba(255,255,255,.45); color: #6d7394; font-weight: 1000; line-height: 1.35; }
.space-console::after { content: ""; position: absolute; left: 84px; bottom: 56px; width: 18px; height: 18px; border-radius: 50%; background: #3350b8; box-shadow: 52px 0 0 #ff7f9d, 28px 12px 0 24px rgba(14,31,92,.15); }
.space-pad {
  position: absolute; right: 8%; top: 23%; width: 270px; height: 148px;
  border-radius: 44px;
  background: linear-gradient(145deg, rgba(255,255,255,.54), rgba(111,99,255,.18));
  border: 1px solid rgba(255,255,255,.72);
  filter: drop-shadow(0 22px 44px rgba(93,90,170,.22));
  transform: rotate(6deg);
}
.space-pad::before { content: ""; position: absolute; left: 48px; top: 57px; width: 34px; height: 34px; background: #4257bf; clip-path: polygon(40% 0,60% 0,60% 40%,100% 40%,100% 60%,60% 60%,60% 100%,40% 100%,40% 60%,0 60%,0 40%,40% 40%); }
.space-pad::after { content: ""; position: absolute; right: 60px; top: 54px; width: 20px; height: 20px; border-radius: 50%; background: #ff7b98; box-shadow: 34px 14px 0 #33d6ff; }
.hero-card { position: absolute; width: 150px; height: 230px; padding: 20px 18px; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; color: #fff; border-radius: 24px; box-shadow: 0 24px 52px rgba(38,48,126,.26); border: 1px solid rgba(255,255,255,.32); transform-origin: center; overflow: hidden; --hero-cover: none; }
.hero-card::before { content: ""; position: absolute; z-index: 2; inset: 18px 18px auto auto; width: 54px; height: 54px; border-radius: 50%; background: radial-gradient(circle at 35% 34%, rgba(255,255,255,.96), rgba(255,255,255,.06) 60%); filter: blur(.2px); opacity: .6; }
.hero-card::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(6,15,45,.06), rgba(6,15,45,.58)), var(--hero-cover) center/cover no-repeat; opacity: 0; transition: opacity .28s ease; }
.hero-card.has-cover::after { opacity: .68; }
.hero-card.has-cover { background-blend-mode: overlay; }
.hero-card .score { position: absolute; z-index: 3; right: 14px; top: 16px; display: inline-flex; align-items: center; height: 25px; padding: 0 9px; border-radius: 999px; background: rgba(7,19,50,.30); font-weight: 1000; font-size: 12px; backdrop-filter: blur(8px); }
.hero-card .name { position: relative; z-index: 3; font-size: 22px; font-weight: 1000; line-height: 1.08; letter-spacing: -.03em; text-shadow: 0 2px 10px rgba(0,0,0,.22); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.hero-card .tags { position: relative; z-index: 3; display: flex; gap: 6px; flex-wrap: wrap; }
.hero-card .tags span { height: 24px; padding: 0 9px; display: inline-flex; align-items: center; border-radius: 999px; background: rgba(255,255,255,.22); font-size: 11px; font-weight: 900; backdrop-filter: blur(8px); }
.hero-card.a { right: 33%; top: 20%; transform: rotate(4deg); background: linear-gradient(145deg, #12277d, #325eb3); }
.hero-card.b { right: 15%; top: 18%; transform: rotate(6deg); background: linear-gradient(145deg, #2688d5, #6a86be); height: 250px; }
.hero-card.c { right: 1%; top: 42%; transform: rotate(12deg); background: linear-gradient(145deg, #282367, #7d4d6b); }
.pixel-cube { position: absolute; width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, rgba(117,104,255,.78), rgba(255,255,255,.60)); box-shadow: 0 16px 24px rgba(91,82,190,.2); animation: floaty 5s ease-in-out infinite; }
.pixel-cube.p1 { left: 39%; top: 18%; }
.pixel-cube.p2 { right: 10%; top: 14%; animation-delay: -.6s; }
.pixel-cube.p3 { left: 44%; bottom: 22%; animation-delay: -1.4s; }
.pixel-cube.p4 { right: 35%; bottom: 18%; animation-delay: -2s; }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(8deg); } }

/* Home quick features */
.feature-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-top: 10px; }
.feature-tile { min-width: 0; min-height: 90px; padding: 16px; display: flex; align-items: center; gap: 14px; border-radius: 22px; border: 1px solid rgba(255,255,255,.74); background: rgba(255,255,255,.58); box-shadow: 0 14px 34px rgba(77,90,150,.10), inset 0 1px 0 rgba(255,255,255,.78); backdrop-filter: blur(18px); transition: transform .22s ease, box-shadow .22s ease; overflow: hidden; }
.feature-tile:hover { transform: translateY(-4px); box-shadow: var(--yg-shadow-hover); }
.feature-icon { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,255,255,.50); box-shadow: inset 0 1px 0 rgba(255,255,255,.7); }
.feature-icon img { width: 42px; height: 42px; }
.feature-tile > span:last-child { min-width: 0; display: grid; gap: 5px; }
.feature-tile strong { display: block; font-size: 17px; line-height: 1.1; font-weight: 1000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feature-tile span span { display: block; color: #667391; font-size: 13px; line-height: 1.2; font-weight: 850; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.home-board { display: grid; grid-template-columns: minmax(0, 1fr) 410px; gap: 18px; align-items: start; margin-top: 18px; }
.editor-card { padding: 26px; }
.home-side { display: grid; gap: 18px; min-width: 0; }
.side-card { padding: 22px; }

/* Cards */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(166px, 1fr)); gap: 16px; min-width: 0; }
.editor-card .game-grid, .editor-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.game-card { min-width: 0; display: grid; grid-template-rows: auto 1fr; border-radius: 22px; overflow: hidden; background: rgba(255,255,255,.58); border: 1px solid rgba(255,255,255,.72); box-shadow: 0 12px 32px rgba(75,88,150,.11); transition: box-shadow .22s ease, transform .22s ease; }
.game-card:hover { box-shadow: var(--yg-shadow-hover); }
.image-container { width: 100%; aspect-ratio: 3 / 4.18; overflow: hidden; background: linear-gradient(135deg, rgba(124,77,255,.25), rgba(34,216,255,.25)); }
.image-container img { width: 100%; height: 100%; object-fit: cover; transition: transform .32s ease; }
.game-card:hover .image-container img { transform: scale(1.045); }
.card-content { min-width: 0; padding: 13px 14px 14px; display: grid; gap: 10px; }
.card-content h3 { margin: 0; min-height: 38px; font-size: 16px; line-height: 1.22; font-weight: 1000; color: var(--yg-ink); letter-spacing: -.02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.card-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-height: 24px; overflow: hidden; }
.free-tag, .game-tag, .detail-tag, .detail-category-badge, .status-badge { display: inline-flex; align-items: center; justify-content: center; min-height: 24px; padding: 0 9px; border-radius: 999px; font-size: 11px; font-weight: 950; white-space: nowrap; }
.free-tag { color: #fff; background: linear-gradient(135deg, #22d8ff, #7c4dff); }
.game-tag, .detail-tag, .detail-category-badge { color: #536186; background: rgba(255,255,255,.62); border: 1px solid rgba(101,123,196,.18); }
.card-meta { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #6b7797; font-size: 12px; font-weight: 850; }
.card-meta > span { min-width: 0; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }

.ranking-list { display: grid; gap: 10px; }
.rank-item { min-width: 0; display: grid; grid-template-columns: 36px 48px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 18px; background: rgba(255,255,255,.50); transition: transform .2s ease, background .2s ease; }
.rank-item:hover { transform: translateX(4px); background: rgba(255,255,255,.72); }
.rank-no { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 1000; background: linear-gradient(135deg, #ffbd4f, #ff7d66); }
.rank-thumb { width: 48px; height: 48px; border-radius: 14px; object-fit: cover; background: linear-gradient(135deg, rgba(32,216,255,.3), rgba(124,77,255,.24)); }
.rank-title { display: block; min-width: 0; font-size: 14px; line-height: 1.2; font-weight: 1000; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-sub { display: block; margin-top: 4px; color: #74809c; font-size: 12px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-hot { display: inline-flex; align-items: center; gap: 3px; color: #ff6d67; font-size: 12px; font-weight: 1000; white-space: nowrap; }

.wish-mini-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wish-mini, .wish-card { min-width: 0; border-radius: 18px; background: rgba(255,255,255,.50); border: 1px solid rgba(255,255,255,.56); box-shadow: inset 0 1px 0 rgba(255,255,255,.48); }
.wish-mini { padding: 14px; display: grid; gap: 10px; }
.wish-mini-title, .wish-game { min-width: 0; font-size: 16px; line-height: 1.22; font-weight: 1000; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wish-mini-content, .wish-content { color: #5f6b89; font-size: 13px; line-height: 1.65; font-weight: 750; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.wish-mini-content { min-height: 42px; -webkit-line-clamp: 2; }
.wish-content { -webkit-line-clamp: 4; }
.wish-mini-foot, .wish-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #75809d; font-size: 12px; font-weight: 850; min-width: 0; }
.wish-mini-foot span:last-child { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.status-badge.pending { color: #ff765f; background: rgba(255,125,102,.12); border: 1px solid rgba(255,125,102,.20); }
.status-badge.completed, .status-badge.done { color: #19a56d; background: rgba(53,211,153,.13); border: 1px solid rgba(53,211,153,.22); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat-tile { min-height: 86px; padding: 16px; border-radius: 18px; display: grid; align-content: center; gap: 6px; background: rgba(255,255,255,.50); border: 1px solid rgba(255,255,255,.58); min-width: 0; }
.stat-tile strong { font-size: 26px; line-height: 1; font-weight: 1000; }
.stat-tile span { color: #697695; font-size: 13px; font-weight: 850; white-space: nowrap; }

/* Library */
.library-hero, .sub-hero { margin-top: 34px; padding: 42px 26px 22px; }
.library-hero h1, .sub-hero h1 { font-size: clamp(48px, 6vw, 84px); }
.library-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; margin-top: 10px; }
.big-search { height: 58px; padding-left: 22px; }
.big-search .yg-btn { min-height: 42px; }
.sort-tabs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sort-tab { min-height: 42px; padding: 0 16px; border: 1px solid rgba(255,255,255,.70); border-radius: 999px; background: rgba(255,255,255,.54); color: #465575; font-weight: 950; white-space: nowrap; transition: .2s ease; }
.sort-tab:hover, .sort-tab.active { color: #fff; background: linear-gradient(135deg, var(--yg-blue), var(--yg-violet)); box-shadow: 0 12px 28px rgba(91,85,210,.18); }
.library-layout { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 18px; }
.filter-panel { padding: 20px; position: sticky; top: 108px; }
.filter-panel h3 { margin: 0 0 16px; font-size: 22px; line-height: 1.1; letter-spacing: -.04em; }
.category-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.category-pill { min-height: 38px; padding: 0 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,.72); background: rgba(255,255,255,.54); color: #4f5d7c; font-size: 13px; font-weight: 950; white-space: nowrap; }
.category-pill.active { color: #fff; background: linear-gradient(135deg, #25cfff, #7c4dff); }
.library-results { padding: 24px; }
.library-results .game-grid { grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); }
.load-more-wrap { display: flex; justify-content: center; margin-top: 24px; }
.load-more-btn { min-width: 220px; }
.library-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.page-btn, .page-ellipsis { min-width: 42px; height: 42px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid rgba(255,255,255,.72); background: rgba(255,255,255,.56); color: #465575; font-weight: 1000; box-shadow: inset 0 1px 0 rgba(255,255,255,.66); }
.page-btn:hover:not([disabled]), .page-btn.active { color: #fff; background: linear-gradient(135deg, var(--yg-blue), var(--yg-violet)); box-shadow: 0 12px 28px rgba(91,85,210,.18); transform: translateY(-1px); }
.page-btn[disabled] { opacity: .45; cursor: not-allowed; }
.page-nav { min-width: 86px; }
.page-ellipsis { border: 0; background: transparent; box-shadow: none; color: #7884a3; min-width: 24px; padding: 0 4px; }

/* Wish */
.wish-layout { display: grid; grid-template-columns: 390px minmax(0, 1fr); gap: 18px; align-items: start; }
.wish-form-card, .wish-list-card { padding: 24px; }
.wish-form-card { position: sticky; top: 108px; }
.form-grid { display: grid; gap: 16px; }
.form-field { display: grid; gap: 8px; min-width: 0; }
.form-field label { color: #435273; font-size: 13px; font-weight: 1000; }
.form-field input, .form-field textarea { width: 100%; min-width: 0; border: 1px solid rgba(112,131,196,.24); border-radius: 18px; background: rgba(255,255,255,.66); outline: 0; padding: 14px 16px; font-weight: 800; box-shadow: inset 0 1px 0 rgba(255,255,255,.72); }
.form-field textarea { min-height: 150px; resize: vertical; line-height: 1.7; }
.wish-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(220px, 300px); gap: 14px; align-items: center; margin-bottom: 20px; }
.wish-controls .big-search { min-width: 0 !important; }
.wish-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.wish-card { padding: 16px; display: grid; gap: 14px; }
.wish-card-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 12px; }
.like-btn { min-width: 58px; height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border-radius: 999px; border: 1px solid rgba(255,255,255,.72); background: rgba(255,255,255,.62); font-weight: 1000; color: #ff6d7e; }
.like-btn.liked { background: rgba(255,109,126,.14); box-shadow: 0 0 0 5px rgba(255,109,126,.08); }
.like-heart { width: 18px; height: 18px; display: inline-block; background: url('/assets/yg-icons/heart.svg') center/contain no-repeat; font-size: 0; }
.like-count { font-size: 12px; line-height: 1; }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px; align-items: start; }
.faq-sidebar, .faq-nav { position: sticky; top: 108px; padding: 18px; display: grid; gap: 10px; }
.faq-sidebar a, .faq-nav a { min-height: 42px; padding: 0 14px; border-radius: 999px; display: flex; align-items: center; font-weight: 950; color: #435273; background: rgba(255,255,255,.44); }
.faq-card { padding: 24px; margin-bottom: 18px; }
.faq-card h2 { margin: 0 0 14px; font-size: 26px; letter-spacing: -.04em; }
.faq-item { border-radius: 18px; background: rgba(255,255,255,.48); margin-top: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.54); }
.faq-question { width: 100%; min-height: 58px; border: 0; background: transparent; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; text-align: left; font-weight: 1000; }
.faq-question::after { content: "+"; font-size: 24px; color: #6573a0; }
.faq-item.open .faq-question::after { content: "−"; }
.faq-answer { display: none; padding: 0 18px 18px; color: #5f6b89; line-height: 1.8; font-weight: 760; }
.faq-item.open .faq-answer { display: block; }
.faq-answer p { margin: 0; }
.faq-answer a { color: var(--yg-blue); text-decoration: underline; text-underline-offset: 3px; word-break: break-all; }

/* Detail */
.detail-hero { margin-top: 28px; }
.detail-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; align-items: start; }
.detail-cover-card { padding: 18px; position: sticky; top: 108px; }
.detail-cover-frame { aspect-ratio: 3 / 4.18; border-radius: 26px; overflow: hidden; background: linear-gradient(135deg, rgba(124,77,255,.25), rgba(32,216,255,.22)); box-shadow: inset 0 1px 0 rgba(255,255,255,.6); }
.detail-cover-frame img { width: 100%; height: 100%; object-fit: cover; }
.detail-info-card { padding: 28px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; color: #6c7897; font-weight: 900; flex-wrap: wrap; }
.detail-title { font-size: clamp(38px, 5vw, 68px); margin: 18px 0 12px; word-break: break-word; }
.detail-meta, .detail-tags, #detail-category-list { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: #65708f; font-weight: 850; }
.resource-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.summary-item { min-height: 72px; padding: 14px; border-radius: 18px; background: rgba(255,255,255,.48); color: #6a7694; font-size: 12px; font-weight: 900; display: grid; gap: 6px; }
.summary-item strong { color: var(--yg-ink); font-size: 16px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.download-panel { margin-top: 24px; padding: 22px; border-radius: 24px; background: rgba(255,255,255,.48); border: 1px solid rgba(255,255,255,.58); }
.download-panel h2 { margin: 0; font-size: 26px; letter-spacing: -.04em; }
.download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.download-card { min-width: 0; min-height: 150px; padding: 18px; display: grid; align-content: start; gap: 10px; border-radius: 20px; background: rgba(255,255,255,.56); border: 1px solid rgba(255,255,255,.62); }
.download-card strong { font-size: 18px; line-height: 1.2; }
.download-card small { color: #687494; line-height: 1.5; font-weight: 800; }
.game-description { color: #35425f; font-size: 16px; line-height: 1.95; font-weight: 720; white-space: normal; word-break: break-word; }
.game-description p { margin: 0 0 1em; }
.images-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.grid-image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; cursor: zoom-in; box-shadow: 0 12px 28px rgba(77,90,150,.10); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.related-card { display: grid; border-radius: 18px; overflow: hidden; background: rgba(255,255,255,.52); border: 1px solid rgba(255,255,255,.60); }
.related-thumb { aspect-ratio: 3 / 4; overflow: hidden; }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-body { padding: 12px; }
.related-title { font-weight: 1000; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* SEO category */
.seo-category-page .yg-shell { display: grid; gap: 18px; }
.seo-category-hero { padding: 32px; }
.seo-category-eyebrow { color: #6878b5; font-size: 13px; font-weight: 1000; letter-spacing: .08em; text-transform: uppercase; }
.seo-category-title { font-size: clamp(38px, 5vw, 72px); }
.seo-category-meta, .seo-category-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.seo-category-pill, .seo-category-nav a, .seo-page-link, .seo-more-actions a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 13px; border-radius: 999px; background: rgba(255,255,255,.58); border: 1px solid rgba(255,255,255,.68); color: #465575; font-weight: 950; }
.seo-category-nav a.active, .seo-page-link.active { color: #fff; background: linear-gradient(135deg, var(--yg-blue), var(--yg-violet)); }
.seo-section-title { margin: 8px 0 0; font-size: 30px; letter-spacing: -.04em; }
.seo-game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 16px; }
.seo-game-card { min-width: 0; border-radius: 22px; overflow: hidden; background: rgba(255,255,255,.58); border: 1px solid rgba(255,255,255,.70); box-shadow: 0 12px 32px rgba(75,88,150,.10); }
.seo-game-cover { width: 100%; aspect-ratio: 3 / 4.18; object-fit: cover; background: linear-gradient(135deg, rgba(32,216,255,.25), rgba(124,77,255,.22)); }
.seo-game-body { padding: 13px; }
.seo-game-title { font-weight: 1000; line-height: 1.3; min-height: 42px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.seo-game-time { margin-top: 8px; color: #72809d; font-size: 12px; font-weight: 850; }
.seo-pagination, .seo-more-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.seo-related-text { padding: 22px; border-radius: 22px; background: rgba(255,255,255,.50); border: 1px solid rgba(255,255,255,.58); color: #53617e; line-height: 1.9; font-weight: 760; }

/* Modal/lightbox/footer */
.report-modal, .image-lightbox, .download-qr-modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(8,20,51,.35); backdrop-filter: blur(12px); }
.report-modal.open, .image-lightbox.open, .download-qr-modal.open { display: flex; }
.modal-card { width: min(520px, 100%); padding: 24px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.modal-head h2 { margin: 0; font-size: 26px; }
.close-btn { width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255,255,255,.64); font-size: 22px; }
.lightbox-img { max-width: min(1100px, 94vw); max-height: 88vh; object-fit: contain; border-radius: 22px; box-shadow: 0 32px 92px rgba(0,0,0,.24); }
.download-qr-card { width: min(720px, 100%); padding: 26px; }
.download-qr-card .modal-head h2 { margin: 0; font-size: 28px; letter-spacing: -.04em; }
.qr-main { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 22px; align-items: center; }
.qr-image { width: 240px; height: 240px; aspect-ratio: 1 / 1; display: block; box-sizing: border-box; object-fit: contain; padding: 14px; border-radius: 26px; background: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 18px 46px rgba(72,92,156,.18); }
.qr-info { min-width: 0; display: grid; gap: 12px; }
.qr-title { font-size: 22px; line-height: 1.2; font-weight: 1000; }
.qr-desc { margin: 0; color: #5d6b8b; line-height: 1.75; font-weight: 800; }
.qr-code-line { min-height: 42px; padding: 10px 13px; display: inline-flex; align-items: center; width: fit-content; max-width: 100%; border-radius: 14px; background: rgba(255,255,255,.58); color: #4b597a; font-weight: 900; }
.qr-code-line b { color: var(--yg-blue); letter-spacing: .06em; }
.qr-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.toast { position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 20px); z-index: 200; opacity: 0; pointer-events: none; min-height: 46px; padding: 0 20px; display: flex; align-items: center; border-radius: 999px; color: #fff; font-weight: 950; background: rgba(8,20,51,.88); box-shadow: 0 18px 40px rgba(8,20,51,.24); transition: .22s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.yg-footer { padding: 24px 0 38px; }
.footer-inner { min-height: 74px; padding: 0 24px; border-radius: 999px; border: 1px solid rgba(255,255,255,.72); background: rgba(255,255,255,.48); backdrop-filter: blur(18px); display: flex; align-items: center; justify-content: space-between; gap: 18px; color: #687494; font-size: 13px; font-weight: 850; box-shadow: inset 0 1px 0 rgba(255,255,255,.68); }
.footer-links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-links a { white-space: nowrap; }


/* Performance containment: keep the glass/cover heavy visuals but reduce off-screen layout and paint cost. */
.hero-art, .orbit-stage, .game-card, .wish-card, .wish-mini, .rank-item, .related-card, .download-card, .feature-tile, .seo-game-card { contain: layout paint style; }
@supports (content-visibility: auto) {
  .library-results .game-card, .wish-list .wish-card, .related-card, .seo-game-card { content-visibility: auto; contain-intrinsic-size: 360px 460px; }
}

/* Motion */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .56s ease, transform .56s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.is-loading { pointer-events: none; opacity: .7; }

@media (max-width: 1280px) {
  :root { --yg-max: 1180px; }
  .yg-nav { grid-template-columns: minmax(210px, 1fr) auto auto; gap: 12px; }
  .nav-link { padding: 0 12px; }
  .yg-search { width: 280px; flex-basis: 230px; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { max-width: 760px; }
  .hero-art { height: 440px; }
  .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-board { grid-template-columns: 1fr; }
  .home-side { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wish-mini-list { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .wish-controls { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .yg-shell { width: min(var(--yg-max), calc(100vw - 32px)); }
  .yg-main { padding-top: 10px; }
  .yg-nav-wrap { top: 8px; }
  .yg-nav { grid-template-columns: 1fr auto; border-radius: 28px; align-items: center; }
  .nav-toggle { display: inline-flex; }
  .nav-links, .nav-actions .yg-search, .nav-actions .yg-btn--warm { display: none; }
  .yg-nav.menu-open .nav-links { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; padding-top: 8px; }
  .nav-actions { justify-content: flex-end; }
  .hero { padding: 16px 0; gap: 10px; }
  .hero h1, .library-hero h1, .sub-hero h1 { font-size: clamp(42px, 13vw, 68px); }
  .hero-copy p, .library-hero p, .sub-hero p { font-size: 16px; }
  .hero-art { height: 360px; }
  .space-console { left: 12%; width: 190px; height: 230px; }
  .space-pad { right: 2%; width: 230px; }
  .hero-card { width: 126px; height: 190px; }
  .hero-card.b { height: 205px; }
  .hero-card.c { right: 3%; top: 48%; }
  .feature-grid, .home-side, .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .library-toolbar, .library-layout, .wish-layout, .faq-layout, .detail-layout { grid-template-columns: 1fr; }
  .filter-panel, .wish-form-card, .faq-sidebar, .faq-nav, .detail-cover-card { position: static; }
  .category-pills { max-height: none; }
  .resource-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .download-grid { grid-template-columns: 1fr; }
  .editor-card .game-grid, .editor-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .qr-main { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .qr-actions { justify-content: center; }
}

@media (max-width: 640px) {
  .yg-shell { width: min(var(--yg-max), calc(100vw - 22px)); }
  .yg-nav { padding: 8px 10px 8px 12px; }
  .logo-mark, .logo-mark img { width: 46px; height: 46px; flex-basis: 46px; }
  .logo-title { font-size: 18px; }
  .logo-sub { max-width: 150px; font-size: 11px; }
  .eyebrow { height: auto; min-height: 34px; padding: 8px 12px; white-space: normal; line-height: 1.35; }
  .hero-metrics { grid-template-columns: 1fr; max-width: none; }
  .hero-art { height: 300px; }
  .space-console { left: 5%; top: 32%; width: 150px; height: 190px; border-radius: 26px; }
  .space-console::before { left: 24px; top: 38px; width: 104px; height: 58px; font-size: 12px; }
  .space-console::after { left: 55px; bottom: 38px; }
  .space-pad { width: 170px; height: 102px; right: 2%; top: 20%; border-radius: 30px; }
  .hero-card { width: 104px; height: 154px; padding: 14px 12px; border-radius: 18px; }
  .hero-card .name { font-size: 15px; }
  .hero-card .tags span { display: none; }
  .hero-card.a { right: 42%; top: 10%; }
  .hero-card.b { right: 14%; top: 10%; height: 166px; }
  .hero-card.c { right: 3%; top: 42%; }
  .feature-grid, .home-side, .stats-grid, .wish-mini-list, .resource-summary { grid-template-columns: 1fr; }
  .feature-tile { min-height: 76px; }
  .editor-card, .side-card, .library-results, .filter-panel, .wish-form-card, .wish-list-card, .detail-info-card, .faq-card, .seo-category-hero { padding: 18px; border-radius: 24px; }
  .game-grid, .library-results .game-grid, .seo-game-grid, .editor-card .game-grid, .editor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .wish-list { grid-template-columns: 1fr; }
  .big-search { height: auto; min-height: 54px; padding: 8px 10px 8px 14px; }
  .big-search .yg-btn { padding: 0 14px; }
  .footer-inner { border-radius: 26px; padding: 18px; align-items: flex-start; flex-direction: column; }
}

@media (max-width: 420px) {
  .game-grid, .library-results .game-grid, .seo-game-grid, .editor-card .game-grid, .editor-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}


/* PC 下载二维码弹窗优化 */
.qr-image-wrap{display:grid;place-items:center;width:272px;max-width:100%;aspect-ratio:1 / 1;padding:16px;border-radius:24px;background:rgba(255,255,255,.56);border:1px solid rgba(255,255,255,.68);box-sizing:border-box}
.qr-image-wrap span{font-size:12px;font-weight:900;color:#69728f;letter-spacing:.08em;text-transform:uppercase}
.qr-info{min-width:0;display:grid;align-content:start;gap:12px}
.qr-desc{margin:0;color:#64708e;line-height:1.7;font-weight:800}
.qr-intro{max-height:210px;overflow:auto;padding:12px 14px;border-radius:18px;background:rgba(255,255,255,.46);border:1px solid rgba(255,255,255,.58);color:#5f6986;font-size:14px;line-height:1.7;font-weight:750}
.qr-intro p{margin:.35em 0}
.qr-code-line{padding:12px 14px;border-radius:16px;background:rgba(98,109,255,.10);border:1px solid rgba(98,109,255,.18);font-weight:900;color:#243054}
.qr-code-line b{letter-spacing:.14em}
.download-card .yg-btn.is-loading,.yg-btn.is-loading{opacity:.72;pointer-events:none}

.fallback-cover{width:100%;height:100%;display:grid;place-items:center;text-align:center;padding:16px;background:linear-gradient(135deg,rgba(124,77,255,.42),rgba(32,214,255,.34));color:#fff;font-weight:1000;letter-spacing:.03em}
.wish-foot--inline{justify-content:flex-start;margin-top:8px}
body.modal-locked{overflow:hidden}
.download-qr-card .qr-desc{margin:6px 0 0;color:rgba(238,242,255,.68);line-height:1.6}
.qr-intro p{margin:.35em 0}
.qr-code-line b{letter-spacing:.12em}

.download-report-row{margin-top:14px}


/* 20260610 修复：二维码必须保持正方形；弹窗关闭后不拦截页面点击 */
.download-qr-modal:not(.open){pointer-events:none!important;visibility:hidden!important;opacity:0!important;}
.download-qr-modal.open{pointer-events:auto!important;visibility:visible!important;opacity:1!important;}
.download-qr-card .qr-image-wrap{width:220px!important;height:220px!important;aspect-ratio:1/1!important;display:grid!important;place-items:center!important;overflow:hidden!important;}
.download-qr-card .qr-image{width:200px!important;height:200px!important;aspect-ratio:1/1!important;object-fit:contain!important;display:block!important;background:#fff!important;border-radius:18px!important;}
