:root {
  --bg: #090d18;
  --panel: rgba(19, 27, 49, .72);
  --panel-solid: #131b31;
  --line: rgba(185, 204, 255, .13);
  --muted: #8995b3;
  --text: #eff3ff;
  --accent: #9c7cff;
  --accent-2: #5ee7d4;
  --danger: #ff8b9d;
  --shadow: 0 24px 70px rgba(0, 0, 0, .3);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .24;
  background-image: linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}
.ambient { position: fixed; border-radius: 999px; filter: blur(70px); pointer-events: none; opacity: .2; }
.ambient-one { width: 320px; height: 320px; top: 6%; left: -80px; background: #7657ff; }
.ambient-two { width: 280px; height: 280px; right: -100px; top: 35%; background: #16b7a4; }
.shell { width: min(1120px, calc(100% - 44px)); margin: 0 auto; position: relative; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 9px 13px; border-radius: 9px; color: #11152a; background: #b09aff; transform: translateY(-160%); transition: transform .2s ease; }
.skip-link:focus-visible { transform: translateY(0); outline: 2px solid #fff; outline-offset: 2px; }
.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; }
.topbar { min-height: 62px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; color: #fff; font-weight: 850; font-size: 19px; background: linear-gradient(135deg, #a987ff, #51d9cf); box-shadow: 0 8px 24px rgba(117, 117, 255, .3); }
.brand strong, .brand small { display: block; line-height: 1.1; }
.brand strong { font-size: 15px; letter-spacing: .2px; }
.brand small { margin-top: 5px; color: var(--muted); font-size: 11px; }
.status-pill { display: flex; align-items: center; gap: 8px; color: #b2f5e8; font-size: 12px; padding: 8px 12px; border: 1px solid rgba(94, 231, 212, .2); border-radius: 999px; background: rgba(38, 109, 107, .15); }
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 13px var(--accent-2); }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.skill-download-top { color: #b6a5ff; font-size: 12px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.skill-download-top:hover { color: #d5ccff; text-decoration: underline; text-underline-offset: 3px; }
a, button, input { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.hero { text-align: center; padding: 18px 0 14px; }
.eyebrow, .section-kicker { color: #ad9aff; font-size: 11px; font-weight: 750; letter-spacing: .18em; }
.hero-copy { max-width: 760px; margin: 0 auto 16px; color: var(--muted); font-size: 14px; }
.guide-trigger { position: relative; display: inline-block; margin-left: 8px; }
.guide-trigger > a { color: #b6a5ff; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.guide-popover { position: absolute; z-index: 20; top: calc(100% + 12px); left: 50%; display: none; width: 460px; max-width: calc(100vw - 28px); transform: translateX(-50%); padding: 12px; border: 1px solid rgba(195, 204, 255, .2); border-radius: 14px; background: rgba(15, 22, 42, .98); box-shadow: 0 18px 50px rgba(0,0,0,.45); }
.guide-trigger:hover .guide-popover, .guide-trigger:focus-within .guide-popover { display: block; }
.guide-caption { display: block; margin-bottom: 9px; color: #d8def1; font-size: 12px; text-align: left; }
.guide-images { display: flex; gap: 10px; }
.guide-images img { display: block; width: 212px; height: 125px; border-radius: 9px; object-fit: cover; object-position: center; }
.resolver-form { display: flex; gap: 10px; max-width: 780px; margin: 0 auto; padding: 7px; border: 1px solid rgba(195, 204, 255, .2); border-radius: 18px; background: rgba(16, 23, 43, .86); box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.05); }
.input-wrap { display: flex; align-items: center; flex: 1; min-width: 0; }
.link-icon { width: 40px; color: #a391ff; font-size: 24px; transform: rotate(-45deg); }
.input-wrap input { width: 100%; min-width: 0; padding: 14px 8px; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 15px; }
.input-wrap input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.input-wrap input::placeholder { color: #66728e; }
.clear-btn { margin-right: 7px; width: 28px; height: 28px; border: 0; border-radius: 50%; color: #aab4ca; background: rgba(255,255,255,.08); font-size: 20px; cursor: pointer; }
.primary-btn { display: flex; align-items: center; gap: 22px; padding: 0 19px 0 22px; border: 0; border-radius: 13px; color: #101127; background: linear-gradient(120deg, #b09aff, #73e4d4); font-weight: 800; cursor: pointer; transition: transform .2s, filter .2s; }
.primary-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.primary-btn:disabled { cursor: wait; opacity: .7; }
.primary-btn b { font-size: 22px; font-weight: 500; }
.primary-btn.loading b { animation: pulse .9s infinite; }
.hint-row { display: flex; justify-content: space-between; max-width: 760px; margin: 12px auto 0; padding: 0 8px; color: #68758f; font-size: 12px; }
.text-btn { padding: 0; border: 0; color: #a99cff; background: transparent; cursor: pointer; font-size: 12px; }
.status-message { min-height: 25px; margin-top: 18px; color: var(--muted); font-size: 13px; }
.status-message.success { color: #8ff1df; }
.status-message.error { color: var(--danger); }
.status-message.loading { color: #c4b8ff; }
.result-section { padding: 8px 0 14px; animation: rise .45s ease both; }
.result-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 10px; }
.result-heading h2 { margin: 5px 0 0; font-size: 28px; letter-spacing: -.04em; }
.muted-label { color: var(--muted); font-size: 12px; }
.result-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); max-width: 1080px; margin: 0 auto; justify-content: center; align-items: stretch; gap: clamp(24px, 3vw, 36px); }
.panel { border: 1px solid var(--line); border-radius: 22px; background: var(--panel); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.video-panel { display: flex; flex-direction: column; overflow: visible; border: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
.video-frame { position: relative; width: 100%; max-width: 560px; margin: 0 auto; aspect-ratio: var(--media-ratio, 16 / 9); overflow: hidden; border: 1px solid rgba(185,204,255,.16); border-radius: 18px; background: #000; box-shadow: 0 20px 58px rgba(0,0,0,.34); }
.video-frame[data-orientation="portrait"] { max-width: 360px; }
.video-frame[data-orientation="square"] { max-width: 520px; }
.video-frame video { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; background: #000; border-radius: 17px; }
.video-empty { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: #a1abc2; border-radius: 17px; background: radial-gradient(circle at 50% 20%, rgba(156,124,255,.18), transparent 50%), #0b1020; }
.video-empty span { margin: 0 auto 10px; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #a987ff, #55d9ca); font-size: 21px; }
.video-empty p { margin: 0; font-weight: 650; }
.video-empty small { color: var(--muted); font-weight: 400; }
.video-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: min(100%, 560px); max-width: none; margin: 0 auto; padding: 14px 0 0; }
.download-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; padding: 12px 13px; border-radius: 11px; color: #14152b; background: #a895ff; font-size: 13px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.download-btn small { font-size: 10px; font-weight: 600; opacity: .68; }
.download-btn.secondary { color: #baf6ee; background: rgba(94, 231, 212, .12); border: 1px solid rgba(94,231,212,.22); }
.download-btn[hidden] { display: none; }
.expiry-note { padding: 0 18px 17px; color: #68758f; font-size: 11px; }
.info-panel { display: flex; flex-direction: column; width: 100%; max-width: 480px; min-width: 0; height: auto; max-height: none; padding: 0; overflow: hidden; justify-self: end; }
.info-header { flex: 0 0 auto; padding: 23px 23px 0; }
.author-row { display: flex; align-items: center; gap: 12px; }
.author-icon, .avatar-fallback { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.avatar-fallback { display: grid; place-items: center; color: #201833; background: linear-gradient(135deg, #c3b2ff, #65e2d3); font-weight: 850; font-size: 18px; }
.author-name { font-weight: 750; }
.author-sub { margin-top: 3px; color: var(--muted); font-size: 12px; }
.divider { height: 1px; margin: 21px 0; background: var(--line); }
.info-content { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0 23px 22px; scrollbar-color: rgba(169,156,255,.5) transparent; scrollbar-width: thin; }
.description { min-height: 0; white-space: pre-wrap; color: #c0c8da; font-size: 14px; line-height: 1.75; }
.info-footer { flex: 0 0 auto; padding: 0 23px 22px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.stats-grid div { text-align: center; }
.stats-grid strong, .stats-grid span { display: block; }
.stats-grid strong { color: #f2f4ff; font-size: 16px; }
.stats-grid span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 4px 0 72px; }
.trust-row > div { display: flex; align-items: center; gap: 11px; color: #c4cbe0; }
.trust-row strong, .trust-row small { display: block; }
.trust-row strong { font-size: 12px; }
.trust-row small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.trust-icon { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 10px; color: #a995ff; background: rgba(156,124,255,.09); }
.knowledge-section, .faq-section { padding: 36px 0 0; }
.knowledge-intro { max-width: 780px; }
.knowledge-intro h2 { margin: 7px 0 10px; font-size: clamp(24px, 4vw, 34px); letter-spacing: -.035em; }
.knowledge-intro p:not(.section-kicker) { margin: 0; color: #b6c0d5; font-size: 14px; line-height: 1.8; }
.knowledge-intro code, .knowledge-card code, .faq-list code { padding: 2px 5px; border: 1px solid rgba(185,204,255,.14); border-radius: 5px; color: #d8d0ff; background: rgba(156,124,255,.1); font-size: .92em; }
.knowledge-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.knowledge-card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: rgba(19,27,49,.48); }
.knowledge-card h3 { margin: 0 0 9px; color: #edf0ff; font-size: 15px; }
.knowledge-card p, .knowledge-card ol { margin: 0; color: #aeb8ce; font-size: 13px; line-height: 1.8; }
.knowledge-card ol { padding-left: 19px; }
.knowledge-card li + li { margin-top: 5px; }
.faq-section { padding-bottom: 42px; }
.faq-list { max-width: 780px; margin-top: 18px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { padding: 16px 4px; color: #e9edff; cursor: pointer; font-size: 14px; font-weight: 700; }
.faq-list summary::marker { color: var(--accent-2); }
.faq-list p { max-width: 740px; margin: -3px 4px 17px; color: #aeb8ce; font-size: 13px; line-height: 1.8; }
@media (max-width: 760px) {
  .knowledge-grid { grid-template-columns: 1fr; }
  .knowledge-section, .faq-section { padding-top: 28px; }
}
.site-footer { margin-top: 12px; padding: 18px 0 28px; border-top: 1px solid var(--line); color: #626e87; font-size: 11px; line-height: 1.8; text-align: center; }
.site-footer p { max-width: 980px; margin: 0 auto; }
[hidden] { display: none !important; }
@keyframes rise { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 50% { transform: translateX(4px); } }
@media (max-width: 760px) {
  html { overflow-x: hidden; }
  .shell { width: min(100% - 28px, 620px); }
  .topbar { min-height: 72px; }
  .hero { padding: 58px 0 42px; }
  .hero h1 { font-size: clamp(38px, 12vw, 58px); }
  .guide-trigger { position: static; }
  .guide-popover { position: fixed; top: 50%; left: 50%; width: calc(100vw - 24px); max-width: calc(100vw - 24px); max-height: calc(100vh - 24px); transform: translate(-50%, -50%); overflow-x: hidden; overflow-y: auto; }
  .guide-images { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .guide-images img { width: 100%; max-width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }
  .resolver-form { display: block; padding: 7px; }
  .primary-btn { width: 100%; justify-content: space-between; min-height: 48px; }
  .hint-row { padding: 0 3px; }
  .result-grid { grid-template-columns: 1fr; max-width: none; }
  .video-frame, .video-frame[data-orientation="portrait"], .video-frame[data-orientation="square"] { max-width: 100%; }
  .video-actions { grid-template-columns: 1fr; }
  .info-panel { max-width: none; justify-self: stretch; max-height: none; overflow: visible; }
  .info-content { overflow: visible; }
  .trust-row { grid-template-columns: 1fr; gap: 12px; padding-bottom: 45px; }
  .site-footer { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


.ad-section { min-width: 0; height: 0; overflow: hidden; }
.ad-label { display: none; margin: 0 0 12px; color: var(--muted); font-size: 11px; text-align: center; }
.ad-section .adsbygoogle { width: 100%; }
.ad-section:has(.adsbygoogle[data-ad-status="filled"]) { height: auto; overflow: visible; margin: 24px 0 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.ad-section:has(.adsbygoogle[data-ad-status="filled"]) .ad-label { display: block; }
.ad-section:has(.adsbygoogle[data-ad-status="unfilled"]) { display: none; }
@media print { .ad-section { display: none; } }
