/* VibeOPC 品牌层（10-25 起替换 HitForge 原样式）。
   拿的是 claude-directory（MIT，© 2026 Pulkit）的三个模板，出处和协议见同目录 LICENSES.md：
   - 登录页整屏：hero-sections/noctis-cinematic-hero —— 墨黑 / 骨白 / 香槟金、暗角、胶片颗粒、遮幅黑边、取景框角标、时间码、按钮扫光
   - 字标与底部渐进模糊：hero-sections/kubric-hero-landing —— 圆 + 两道弧的自绘动画、8 层 backdrop-filter 渐进模糊
   - 登录表单：components-ui/aurora-sign-up —— 圆角深灰输入框、大号主按钮
   全站配色变量在 style.css 的 :root（同一套墨黑 / 骨白 / 香槟金）。类名前缀 vo-。 */

@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 500 800; font-display: swap; src: url("fonts/InterTight-var.woff2") format("woff2"); }
@font-face { font-family: "Cormorant"; font-style: italic; font-weight: 500; font-display: swap; src: url("fonts/Cormorant-500i.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/IBMPlexMono-300.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/IBMPlexMono-400.woff2") format("woff2"); }

:root {
  --vo-ink: #07070a;
  --vo-bone: #ece6da;
  --vo-champagne: #cfa968;
  --vo-display: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --vo-serifit: "Cormorant", Georgia, serif;
  --vo-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --vo-logo: "Inter Tight", "Segoe UI", sans-serif;
  --vo-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 字标（kubric 的自绘动画；首页、后台左上角也用，animate 类只在登录页加） ---------- */
.vo-logo { display: inline-flex; align-items: center; color: var(--vo-bone); line-height: 1; }
.vo-logo svg { display: block; height: 26px; width: auto; overflow: visible; }
.vo-logo .vo-logo-text { font-family: var(--vo-logo); font-size: 22px; font-weight: 700; letter-spacing: -0.5px; fill: currentColor; }
.vo-logo .vo-logo-mark { stroke: var(--vo-champagne); }
.vo-logo.sm svg { height: 22px; }
.vo-logo.animate .vo-logo-circle { transform-origin: 14.3px 14.9px; transform: scale(0); opacity: 0; animation: voLogoCircle .4s cubic-bezier(0.34, 1.56, 0.64, 1) .1s forwards; }
.vo-logo.animate .vo-logo-arc1 { stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0; transform: translateX(-14px); animation: voLogoArc .65s cubic-bezier(0.16, 1, 0.3, 1) .55s forwards; }
.vo-logo.animate .vo-logo-arc2 { stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0; transform: translateX(-14px); animation: voLogoArc .5s cubic-bezier(0.16, 1, 0.3, 1) 1.25s forwards; }
.vo-logo.animate .vo-logo-word { opacity: 0; filter: blur(10px); transform: translateX(28px); animation: voLogoWord 1.9s cubic-bezier(0.16, 1, 0.3, 1) 1.25s forwards; }
@keyframes voLogoCircle { to { transform: scale(1); opacity: 1; } }
@keyframes voLogoArc { to { stroke-dashoffset: 0; opacity: 1; transform: translateX(0); } }
@keyframes voLogoWord { to { opacity: 1; filter: blur(0); transform: translateX(0); } }

/* ---------- 登录页（noctis 整屏） ---------- */
.vo-login { position: relative; height: 100vh; height: 100dvh; min-height: 620px; overflow: hidden; background: var(--vo-ink); color: var(--vo-bone); }
.vo-login .vo-layer { position: absolute; inset: 0; }
.vo-aurora {
  background:
    radial-gradient(52% 44% at 32% 30%, rgba(43, 50, 74, 0.55), transparent 70%),
    radial-gradient(40% 36% at 74% 68%, rgba(138, 109, 63, 0.2), transparent 72%),
    radial-gradient(60% 52% at 50% 90%, rgba(20, 22, 32, 0.8), transparent 75%);
  animation: voAurora 19s ease-in-out infinite alternate;
}
@keyframes voAurora { from { transform: translate3d(-3%, -2%, 0) scale(1); } to { transform: translate3d(3%, 2%, 0) scale(1.08); } }
.vo-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.vo-vignette {
  z-index: 10;
  background:
    radial-gradient(118% 118% at 50% 44%, transparent 48%, rgba(4, 4, 7, 0.5) 76%, rgba(4, 4, 7, 0.86) 100%),
    linear-gradient(to top, rgba(5, 5, 9, 0.93) 0%, rgba(5, 5, 9, 0.42) 26%, transparent 52%),
    linear-gradient(to bottom, rgba(5, 5, 9, 0.62) 0%, transparent 22%);
}
.vo-grain-wrap { z-index: 20; pointer-events: none; overflow: hidden; }
.vo-grain {
  position: absolute; inset: -50%; width: 200%; height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 300px 300px; opacity: 0.06; animation: voGrain .85s steps(2) infinite;
}
@keyframes voGrain {
  0%, 100% { transform: translate(0, 0); } 12.5% { transform: translate(-2.5%, -3%); } 25% { transform: translate(1.5%, -2%); }
  37.5% { transform: translate(-3%, 2.5%); } 50% { transform: translate(2.5%, 1.5%); } 62.5% { transform: translate(-1.5%, 3%); }
  75% { transform: translate(3%, -1.5%); } 87.5% { transform: translate(-2%, -2.5%); }
}
/* kubric 的底部渐进模糊：越往下越糊，托住标题和时间码 */
.vo-blur { position: absolute; left: 0; right: 0; bottom: 0; height: 26%; z-index: 15; pointer-events: none; }
.vo-blur > i { position: absolute; inset: 0; }
.vo-blur > i:nth-child(1) { backdrop-filter: blur(0.6px); -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%); mask-image: linear-gradient(to bottom, transparent 0%, #000 12%); }
.vo-blur > i:nth-child(2) { backdrop-filter: blur(1px); -webkit-mask-image: linear-gradient(to bottom, transparent 12%, #000 25%); mask-image: linear-gradient(to bottom, transparent 12%, #000 25%); }
.vo-blur > i:nth-child(3) { backdrop-filter: blur(1.5px); -webkit-mask-image: linear-gradient(to bottom, transparent 25%, #000 37%); mask-image: linear-gradient(to bottom, transparent 25%, #000 37%); }
.vo-blur > i:nth-child(4) { backdrop-filter: blur(2px); -webkit-mask-image: linear-gradient(to bottom, transparent 37%, #000 50%); mask-image: linear-gradient(to bottom, transparent 37%, #000 50%); }
.vo-blur > i:nth-child(5) { backdrop-filter: blur(3px); -webkit-mask-image: linear-gradient(to bottom, transparent 50%, #000 62%); mask-image: linear-gradient(to bottom, transparent 50%, #000 62%); }
.vo-blur > i:nth-child(6) { backdrop-filter: blur(4px); -webkit-mask-image: linear-gradient(to bottom, transparent 62%, #000 75%); mask-image: linear-gradient(to bottom, transparent 62%, #000 75%); }
.vo-blur > i:nth-child(7) { backdrop-filter: blur(6px); -webkit-mask-image: linear-gradient(to bottom, transparent 75%, #000 87%); mask-image: linear-gradient(to bottom, transparent 75%, #000 87%); }
.vo-blur > i:nth-child(8) { backdrop-filter: blur(8px); -webkit-mask-image: linear-gradient(to bottom, transparent 87%, #000 100%); mask-image: linear-gradient(to bottom, transparent 87%, #000 100%); }

.vo-letterbox { position: absolute; left: 0; right: 0; z-index: 40; height: 32px; background: #000; animation: voBarDown .9s var(--vo-ease) both; }
.vo-letterbox.top { top: 0; transform-origin: top; box-shadow: inset 0 -1px 0 rgba(207, 169, 104, .15); }
.vo-letterbox.bottom { bottom: 0; transform-origin: bottom; box-shadow: inset 0 1px 0 rgba(207, 169, 104, .15); }
@keyframes voBarDown { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.vo-ticks { position: absolute; left: 20px; right: 20px; top: 44px; bottom: 44px; z-index: 30; pointer-events: none; }
.vo-ticks > i { position: absolute; width: 20px; height: 20px; border-color: rgba(207, 169, 104, .4); border-style: solid; border-width: 0; }
.vo-ticks > i:nth-child(1) { left: 0; top: 0; border-left-width: 1px; border-top-width: 1px; }
.vo-ticks > i:nth-child(2) { right: 0; top: 0; border-right-width: 1px; border-top-width: 1px; }
.vo-ticks > i:nth-child(3) { left: 0; bottom: 0; border-left-width: 1px; border-bottom-width: 1px; }
.vo-ticks > i:nth-child(4) { right: 0; bottom: 0; border-right-width: 1px; border-bottom-width: 1px; }

.vo-nav { position: absolute; left: 0; right: 0; top: 48px; z-index: 30; display: flex; align-items: center; justify-content: space-between; padding: 0 48px; }
.vo-beta { display: inline-flex; align-items: center; gap: 12px; border: 1px solid rgba(236, 230, 218, .25); padding: 10px 20px; font-family: var(--vo-mono); font-size: 11px; letter-spacing: .3em; color: rgba(236, 230, 218, .8); }
.vo-beta > i { width: 4px; height: 4px; border-radius: 50%; background: var(--vo-champagne); animation: voGlow 2.8s ease-in-out infinite; }
@keyframes voGlow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

.vo-rail { position: absolute; top: 50%; z-index: 30; transform: translateY(-50%); writing-mode: vertical-rl; font-family: var(--vo-mono); font-size: 11px; font-weight: 300; letter-spacing: .42em; color: rgba(236, 230, 218, .45); }
.vo-rail.left { left: 36px; }
.vo-rail.right { right: 36px; }

.vo-title { position: absolute; left: 0; bottom: 0; z-index: 30; width: min(58%, 900px); padding: 0 48px 144px 96px; }   /* 左边让出竖排小字 */
.vo-kicker { font-family: var(--vo-mono); font-size: 11px; font-weight: 300; letter-spacing: .45em; color: var(--vo-champagne); }
.vo-title h1 { margin: 24px 0 0; font-family: var(--vo-display); font-weight: 400; line-height: 1.12; letter-spacing: .02em; font-size: clamp(36px, 5.2vw, 96px); }
.vo-title h1 em { font-style: normal; color: var(--vo-champagne); }
.vo-title h1 .vo-latin { font-family: var(--vo-serifit); font-style: italic; font-weight: 500; }
.vo-title p { margin: 32px 0 0; max-width: 30em; font-size: 16px; line-height: 1.9; color: rgba(236, 230, 218, .72); }
.vo-mask { display: block; overflow: hidden; padding-bottom: .08em; }
.vo-mask > span { display: block; white-space: nowrap; transform: translateY(112%); animation: voLineUp 1.1s var(--vo-ease) forwards; animation-delay: inherit; }
@keyframes voLineUp { from { transform: translateY(112%); } to { transform: translateY(0); } }

.vo-strip { position: absolute; left: 0; right: 0; bottom: 48px; z-index: 30; display: flex; align-items: center; justify-content: space-between; padding: 0 48px; font-family: var(--vo-mono); font-size: 11px; font-weight: 300; letter-spacing: .26em; color: rgba(236, 230, 218, .5); }
.vo-strip b { font-weight: 300; color: rgba(207, 169, 104, .8); margin-right: 12px; }
.vo-strip .dim { color: rgba(236, 230, 218, .3); }
.vo-tc { font-variant-numeric: tabular-nums; }

/* 入场：noctis 的「各就各位、按点出场」，延迟写在元素的 style 上 */
.vo-rise { opacity: 0; animation: voRise 1s var(--vo-ease) forwards; }
.vo-fade { opacity: 0; animation: voFade 1.4s ease forwards; }
.vo-track { opacity: 0; animation: voTrack 1.3s var(--vo-ease) forwards; }
@keyframes voRise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
@keyframes voFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes voTrack { from { opacity: 0; letter-spacing: .95em; } to { opacity: 1; letter-spacing: .45em; } }

/* ---------- 登录 / 注册面板（aurora 的表单，放在 noctis 画面右侧的毛玻璃里） ---------- */
.vo-panel {
  position: absolute; right: 7vw; top: 0; bottom: 0; margin: auto 0; z-index: 35;   /* 用 margin 居中：入场动画占着 transform */
  width: 380px; height: fit-content; max-height: calc(100% - 220px); overflow-y: auto;
  padding: 32px; border-radius: 20px;
  background: rgba(7, 7, 10, .62); border: 1px solid rgba(236, 230, 218, .1);
  backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
}
.vo-panel h2 { margin: 0; font-size: 26px; font-weight: 500; letter-spacing: -.01em; color: var(--vo-bone); }
.vo-panel .vo-sub { margin-top: 6px; font-size: 13px; color: rgba(236, 230, 218, .45); }
.vo-field { margin-top: 18px; }
.vo-field label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 500; color: var(--vo-bone); }
.vo-input {
  width: 100%; height: 44px; padding: 0 16px; border: none; border-radius: 12px; outline: none;
  background: #1a1a1d; color: #fff; font-size: 14px; font-family: inherit; transition: box-shadow .2s;
}
.vo-input::placeholder { color: rgba(255, 255, 255, .22); }
.vo-input:focus { box-shadow: 0 0 0 2px rgba(207, 169, 104, .45); }
.vo-err { margin-top: 10px; min-height: 18px; font-size: 13px; color: #f87171; }
.vo-cta {
  position: relative; overflow: hidden; width: 100%; height: 52px; margin-top: 18px; border: none; border-radius: 12px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--vo-champagne); color: var(--vo-ink); font-size: 15px; font-weight: 600; font-family: inherit;
  transition: background-color .5s, transform .2s;
}
.vo-cta:hover:not(:disabled) { background: var(--vo-bone); }
.vo-cta:active:not(:disabled) { transform: scale(.98); }
.vo-cta:disabled { opacity: .7; cursor: default; }
.vo-cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .36) 50%, transparent 62%); transform: translateX(-120%); transition: transform .7s var(--vo-ease); }
.vo-cta:hover::after { transform: translateX(120%); }
.vo-cta .spinner { border-color: rgba(7, 7, 10, .25); border-top-color: var(--vo-ink); }
.vo-foot { margin-top: 16px; font-size: 13px; color: rgba(236, 230, 218, .45); }
.vo-foot a { color: var(--vo-champagne); }
.vo-foot a:hover { text-decoration: underline; }
.vo-note { margin-top: 10px; font-size: 12px; line-height: 1.7; color: rgba(236, 230, 218, .32); }

/* 窄屏：去掉边栏和角标，标题放上面、表单跟在下面，可以滚动 */
@media (max-width: 1100px) {
  .vo-rail, .vo-ticks { display: none; }
  .vo-title { width: min(52%, 640px); padding-left: 48px; }
  .vo-panel { right: 32px; }
}
@media (max-width: 860px) {
  .vo-login { height: auto; min-height: 100vh; min-height: 100dvh; overflow: visible; display: flex; flex-direction: column; }
  .vo-login .vo-layer, .vo-blur { position: fixed; }
  .vo-letterbox { height: 20px; position: fixed; }
  .vo-nav { position: relative; top: auto; padding: 40px 16px 0; }
  .vo-title { position: relative; width: auto; padding: 48px 16px 0; }
  .vo-title p { font-size: 14px; margin-top: 16px; }
  .vo-panel { position: relative; right: auto; top: auto; bottom: auto; width: auto; height: auto; max-height: none; margin: 32px 16px 24px; padding: 24px; }
  .vo-strip { position: relative; bottom: auto; padding: 0 16px 40px; flex-wrap: wrap; gap: 8px; }
  .vo-strip .vo-hide-sm { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .vo-login *, .vo-login *::before, .vo-login *::after, .vo-logo * {
    animation-duration: .01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important;
  }
}
