
:root { --g-a1: #66ccff; --g-a2: #2f8fe0; --g-bg: #f4f7fc; --g-card-1: rgba(255, 255, 255, .94); --g-card-2: rgba(255, 255, 255, .80); --g-line: rgba(255, 255, 255, .95); --g-txt: #0e1621; --g-sub: #46566e; --g-mute: #75839a; --g-code: #123044; --g-shadow: 0 30px 70px -34px rgba(20, 52, 88, .45), 0 10px 30px -22px rgba(47, 143, 224, .45); --g-grid: rgba(17, 30, 48, .045); --g-glow-2: rgba(255, 122, 168, .20);
}
html[data-accent="violet"] { --g-a1: #8c57ff; --g-a2: #6a3fd8; }
html[data-accent="sakura"] { --g-a1: #ff7aa8; --g-a2: #e0568a; --g-glow-2: rgba(102, 204, 255, .20); }
html[data-accent="mint"] { --g-a1: #3ddc97; --g-a2: #22a273; }
html[data-accent="sunset"] { --g-a1: #ff9f45; --g-a2: #e2761f; }
html[data-theme="dark"] { --g-bg: #080a10; --g-card-1: rgba(22, 26, 38, .92); --g-card-2: rgba(14, 17, 26, .96); --g-line: rgba(150, 168, 220, .18); --g-txt: #e9eef9; --g-sub: #9aa6bf; --g-mute: #7b87a1; --g-code: #dbe9ff; --g-shadow: 0 30px 80px -30px rgba(0, 0, 0, .75), 0 8px 34px -22px rgba(47, 143, 224, .55); --g-grid: rgba(160, 185, 255, .05); --g-glow-2: rgba(255, 122, 168, .16);
}
html[data-qy-gate] body > *:not(#qyGate) { display: none !important; }
html[data-qy-gate] body { background: var(--g-bg) !important; overflow: hidden;
}
.qy-gate { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 24px; overflow: auto; color: var(--g-txt); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; background: radial-gradient(46% 40% at 16% 6%, color-mix(in srgb, var(--g-a1) 30%, transparent), transparent 72%), radial-gradient(42% 38% at 86% 90%, var(--g-glow-2), transparent 72%), radial-gradient(64% 52% at 50% 122%, color-mix(in srgb, var(--g-a2) 22%, transparent), transparent 74%), var(--g-bg);
}
.qy-gate::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--g-grid) 1px, transparent 1px), linear-gradient(90deg, var(--g-grid) 1px, transparent 1px); background-size: 46px 46px; -webkit-mask-image: radial-gradient(72% 62% at 50% 42%, #000 38%, transparent 100%); mask-image: radial-gradient(72% 62% at 50% 42%, #000 38%, transparent 100%);
}
.qy-gate::after { content: ""; position: absolute; width: 560px; height: 560px; top: -210px; right: -160px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, color-mix(in srgb, var(--g-a1) 46%, transparent), transparent 66%); filter: blur(18px); opacity: .5; animation: gateFloat 15s ease-in-out infinite alternate;
}
@keyframes gateFloat { to { transform: translate3d(-70px, 80px, 0) scale(1.12); }
}
.qy-gate__card { position: relative; width: 100%; max-width: 400px; padding: 34px 30px 28px; border-radius: 26px; text-align: center; background: linear-gradient(180deg, var(--g-card-1), var(--g-card-2)); border: 1px solid var(--g-line); backdrop-filter: blur(20px) saturate(1.25); -webkit-backdrop-filter: blur(20px) saturate(1.25); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), var(--g-shadow); animation: gateIn .48s cubic-bezier(.2, .8, .25, 1);
}
.qy-gate__card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; background: linear-gradient(140deg, color-mix(in srgb, var(--g-a1) 78%, transparent), transparent 46%, var(--g-glow-2)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
}
@keyframes gateIn { from { opacity: 0; transform: translateY(16px) scale(.985); }
}
.qy-gate__mark { width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 25px; font-weight: 700; color: #fff; letter-spacing: 0; background: linear-gradient(145deg, var(--g-a1), var(--g-a2)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 14px 28px -14px color-mix(in srgb, var(--g-a2) 85%, transparent); overflow: hidden; padding: 0;
}
.qy-gate__mark img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: inherit; filter: brightness(.94) contrast(1.05) saturate(1.06);
}
.qy-gate__mark { position: relative; }
.qy-gate__mark::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(178deg, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, 0) 42%, rgba(12, 24, 38, .18) 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55);
}
.qy-gate__brand { font-size: 15px; font-weight: 650; letter-spacing: .01em; color: var(--g-txt);
}
.qy-gate__tag { font-size: 12px; line-height: 1.8; color: var(--g-sub); margin: 7px 0 18px; letter-spacing: .02em;
}
.qy-gate__t { font-size: 21px; font-weight: 680; letter-spacing: -.01em; margin: 16px 0 9px; color: var(--g-txt);
}
.qy-gate__p { font-size: 13px; line-height: 1.85; color: var(--g-sub); margin: 0 0 14px;
}
.qy-gate__hint { font-size: 12px; line-height: 1.9; color: var(--g-mute); margin: 20px 0 0; padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--g-txt) 7%, transparent);
}
.qy-gate__code { margin: 17px 0 15px; padding: 17px 10px 15px; border-radius: 16px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 27px; font-weight: 700; letter-spacing: .2em; text-indent: .2em; color: var(--g-code); background: linear-gradient(180deg, color-mix(in srgb, var(--g-a1) 16%, transparent), color-mix(in srgb, var(--g-a1) 5%, transparent)); border: 1px dashed color-mix(in srgb, var(--g-a2) 42%, transparent); cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; user-select: all;
}
.qy-gate__code:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--g-a2) 70%, transparent); box-shadow: 0 12px 26px -20px var(--g-a2);
}
.qy-gate__code:active { transform: translateY(0) scale(.996); }
.qy-gate__btn { display: block; margin-top: 4px; padding: 14px 18px; border-radius: 14px; font-size: 14.5px; font-weight: 650; text-decoration: none; color: #04222e; background: linear-gradient(180deg, color-mix(in srgb, var(--g-a1) 74%, #ffffff) 0%, var(--g-a1) 44%, var(--g-a2) 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .62), inset 0 -1px 0 rgba(0, 0, 0, .16), 0 16px 32px -18px color-mix(in srgb, var(--g-a2) 92%, transparent); transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}
.qy-gate__btn:hover { transform: translateY(-1px); filter: brightness(1.05) saturate(1.05); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .66), 0 20px 40px -18px color-mix(in srgb, var(--g-a2) 95%, transparent);
}
.qy-gate__btn:active { transform: translateY(0) scale(.995); }
.qy-gate__state { margin: 16px 0 0 !important; font-size: 12px !important; color: var(--g-mute) !important; display: inline-flex; align-items: center; gap: 7px;
}
.qy-gate__state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--g-a1); box-shadow: 0 0 0 0 color-mix(in srgb, var(--g-a1) 55%, transparent); animation: gatePulse 1.8s ease-out infinite;
}
@keyframes gatePulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--g-a1) 55%, transparent); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; }
}
.qy-gate__bar { height: 4px; border-radius: 99px; background: color-mix(in srgb, var(--g-txt) 9%, transparent); overflow: hidden; margin-top: 18px;
}
.qy-gate__bar i { display: block; height: 100%; width: 40%; border-radius: 99px; background: linear-gradient(90deg, var(--g-a1), var(--g-a2)); animation: gateBar 1.15s ease-in-out infinite;
}
@keyframes gateBar { 0% { transform: translateX(-115%); } 100% { transform: translateX(320%); }
}
@media (max-width: 480px) { .qy-gate { padding: 16px; } .qy-gate__card { max-width: 100%; padding: 28px 20px 24px; border-radius: 22px; } .qy-gate__code { font-size: 23px; letter-spacing: .16em; text-indent: .16em; } .qy-gate__t { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { .qy-gate::after, .qy-gate__bar i, .qy-gate__state::before { animation: none; } .qy-gate__card { animation: none; }
}
.qy-gate__scene { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
}
.qy-gate__hero { position: absolute; right: 0; bottom: 0; width: 66%; height: 100%; background: url(../img/gate-hero.jpg) right center / cover no-repeat; -webkit-mask-image: linear-gradient(100deg, transparent 0%, rgba(0, 0, 0, .30) 16%, #000 48%); mask-image: linear-gradient(100deg, transparent 0%, rgba(0, 0, 0, .30) 16%, #000 48%); transform-origin: 70% 80%; animation: heroIn 1.4s cubic-bezier(.2, .8, .25, 1) both, heroBreath 13s ease-in-out infinite alternate; will-change: transform;
}
@keyframes heroIn { from { opacity: 0; transform: scale(1.06) translateX(24px); } to { opacity: 1; transform: scale(1.02) translateX(0); }
}
@keyframes heroBreath { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.055) translate3d(-10px, -12px, 0); }
}
.qy-gate__scene::after { content: ""; position: absolute; inset: 0; background: radial-gradient(38% 60% at 78% 62%, rgba(255, 196, 140, .22), transparent 70%); mix-blend-mode: screen; animation: warmPulse 9s ease-in-out infinite alternate;
}
@keyframes warmPulse { to { opacity: .55; } }
.qy-gate__petal { position: absolute; top: -8vh; width: 11px; height: 11px; border-radius: 12px 2px 12px 2px; background: linear-gradient(135deg, #ffc9d6, #e0568a 70%); opacity: .7; animation-name: petalFall; animation-timing-function: linear; animation-iteration-count: infinite; will-change: transform;
}
.qy-gate__petal:nth-child(3n) { background: linear-gradient(135deg, #ffe0a8, #ff9f45 70%);
}
.qy-gate__petal:nth-child(3n+1) { background: linear-gradient(135deg, #d8f0ff, #66ccff 70%);
}
@keyframes petalFall { 0% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; } 8% { opacity: .75; } 100% { transform: translate3d(var(--dx, 60px), 116vh, 0) rotate(var(--rot, 480deg)); opacity: .1; }
}
@media (min-width: 981px) { .qy-gate { justify-content: flex-start; padding-left: max(4vw, 40px); } .qy-gate__card { margin-left: 4vw; } .qy-gate__hero { width: 64%; }
}
@media (max-width: 980px) { .qy-gate__hero { width: 100%; opacity: .30; filter: saturate(1.05); -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 55%, transparent 96%); mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 55%, transparent 96%); } .qy-gate__petal { opacity: .45; } .qy-gate__card { backdrop-filter: blur(24px) saturate(1.3); -webkit-backdrop-filter: blur(24px) saturate(1.3); }
}
html[data-theme="dark"] .qy-gate__hero { filter: brightness(.82) saturate(.95); }
@media (prefers-reduced-motion: reduce) { .qy-gate__hero, .qy-gate__petal, .qy-gate__scene::after { animation: none !important; }
}
@media (min-width: 981px) { .qy-gate__card { max-width: 420px; } }
.qy-gate__p { font-size: 13.5px; line-height: 1.95; }
@media (max-width: 980px) { .qy-gate__hero { opacity: .22; } .qy-gate__card { background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .90)); } html[data-theme="dark"] .qy-gate__card { background: linear-gradient(180deg, rgba(22, 26, 38, .96), rgba(14, 17, 26, .98)); }
}
