/* =======================================================
   涓夋覆浜屾暟瀛楃偣褰╁嵃璞℃淳 (Cyber-Impressionism) - 鏌斿拰娌绘剤鐗?
   ======================================================= */
@font-face { font-family: 'Karrik'; src: url('./FONTS/Karrik-Italic.woff2') format('woff2'); }
        @font-face { font-family:'Orbitron'; src:url('./FONTS/Orbitron.woff2') format('woff2'); font-weight:400 700; font-display:swap; }
        @font-face { font-family:'Atma'; src:url('./FONTS/BrunoAce.woff2') format('woff2'); font-weight:600; font-style:normal; font-display:swap; }
@font-face { font-family: 'Instrument'; src: url('./FONTS/IS-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; }
@font-face { font-family: 'Instrument'; src: url('./FONTS/IS-Regular-ext.woff2') format('woff2'); font-weight: 400; font-style: normal; unicode-range: U+0100-024F; }

* { margin: 0; padding: 0; box-sizing: border-box; outline: none; }
body { font-family:'Orbitron', sans-serif; background: #191512; color: #E9D2D3; overflow: hidden; user-select: none; }

/* 缁熶竴鐨勬繁绌虹传鐏板熀璋?*/
.bg-gradient { 
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -3; 
    background: radial-gradient(circle at 50% 50%, #3E2A38 0%, #191512 100%); 
    animation: breathBg 10s infinite alternate ease-in-out;
    will-change: transform, filter;
}
@keyframes breathBg { 0% { transform: scale(1); opacity: 0.85; filter: hue-rotate(0deg); } 100% { transform: scale(1.05); opacity: 1; filter: hue-rotate(15deg); } }

#warp-stars, #bg-canvas { 
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; 
}
#warp-stars { z-index: -2; pointer-events: none; opacity: 0.5; }
#bg-canvas { z-index: -1; cursor: grab; }
#bg-canvas:active { cursor: grabbing; }

/* 鍏夋檿闆疯揪绯荤粺 */
.mouse-halo-system { position: fixed; top: 0; left: 0; width: 0; height: 0; z-index: 9999; pointer-events: none; will-change: transform; display: none; }
@media(min-width: 1024px) { .mouse-halo-system { display: block; } } 
.halo-ring { position: absolute; border-radius: 50%; transform: translate(-50%, -50%); }
.ring-inner { width: 40px; height: 40px; background: radial-gradient(circle, rgba(208,130,48,0.08) 0%, transparent 75%); border: 1px solid rgba(233,210,211,0.2); }
.ring-middle { width: 120px; height: 120px; border: 1px dashed rgba(207,171,194,0.3); animation: ringRotation 15s infinite linear; }
.ring-outer { width: 240px; height: 240px; border: 1px solid rgba(138,97,168,0.2); }
@keyframes ringRotation { 100% { transform: translate(-50%, -50%) rotate(360deg); } }

/* ================= 铻烘棆闆曞埢鏂囧瓧涓庨伄缃╁眰 ================= */
#init-overlay, #transition-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 10000;
    background: #191512; 
    display: flex; justify-content: center; align-items: center;
    overflow: hidden;
}
#init-overlay { cursor: pointer; }
#transition-overlay { opacity: 0; pointer-events: none; } /* 杞満閬僵鍒濆闅愯棌 */

.spiral-container {
    position: relative; width: 100vh; height: 100vh; 
    animation: slowSpin 60s linear infinite; transform-origin: center center;
    will-change: transform;
}
@keyframes slowSpin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.spiral-char {
    position: absolute; top: 50%; left: 50%;
    font-family:'Atma', sans-serif; font-size: 22px; font-weight: 400;
    color: #191512; 
    text-shadow: -1px -1px 2px rgba(233, 210, 211, 0.15), 1px 1px 3px rgba(0, 0, 0, 0.9);          
    pointer-events: none; opacity: 0;
    will-change: transform, opacity, filter;
    animation: carveLetter 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
@keyframes carveLetter {
    0% { opacity: 0; filter: blur(4px); transform: translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(1.5); }
    100% { opacity: 1; filter: blur(0px); transform: translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(1); }
}

/* ================= 椤甸潰鍏辩敤 UI ================= */
.app-container { 
    position: relative; width: 100vw; height: 100vh; z-index: 10; 
    pointer-events: none; perspective: 800px; 
    opacity: 0; transform: scale(1.05); /* 鍒濆闅愯棌 */
}

 .top-left-logo { position: absolute; top: 46px; left: 60px; font-family:'Atma', sans-serif; font-size: 21px; font-weight: 400; letter-spacing: 12px; text-indent: 12px; text-transform: uppercase; color: rgba(249, 220, 167, 0.42); text-shadow: 0 0 14px rgba(249,220,167,0.22); }
.page-header { 
    position: absolute; top: 50px; right: 60px; font-family:'Orbitron', sans-serif; font-size: 14px; font-weight: 400; letter-spacing: 4px; 
    color: rgba(209,195,204,0.55); z-index: 10; opacity: 0.7; text-transform: uppercase; transition: opacity 0.5s; pointer-events: auto; text-shadow: 0 0 10px rgba(200,169,171,0.3); 
}
.page-header:hover { opacity: 1 !important; color: #F9DCA7; text-shadow: 0 0 15px rgba(249,220,167,0.6); }

/* index.html 琛ㄥ崟 */
.hologram-ui { position: absolute; top: 50%; left: 50%; width: 1px; height: 1px; pointer-events: auto; transform-style: preserve-3d; will-change: transform; }
.input-wrapper { position: absolute; display: flex; flex-direction: column; gap: 8px; width: 220px; }
.input-wrapper label { font-family:'Orbitron', sans-serif; font-size: 12px; letter-spacing: 6px; font-weight: 400; color: #CFABC2; text-transform: uppercase; text-shadow: 0 0 10px rgba(207,171,194,0.3); opacity: 0.4; transition: opacity 0.4s; }
.input-wrapper:hover label { opacity: 0.8; }
.input-wrapper input:focus + label, .input-wrapper input:not(:placeholder-shown) + label { opacity: 1; color: #F9DCA7; }
.input-wrapper input { width: 100%; border: none; border-bottom: 1px solid rgba(207,171,194,0.3); background: transparent; padding: 6px 0; font-family:'Orbitron', sans-serif; font-size: 14px; letter-spacing: 8px; color: #E9D2D3; transition: all 0.4s; font-weight: 300; text-shadow: 0 0 12px rgba(233,210,211,0.5); }
.input-wrapper input:focus { border-bottom: 1px solid rgba(249,220,167,0.8); outline: none; box-shadow: 0 5px 15px -5px rgba(249,220,167,0.3); }
.input-wrapper::before { content: ''; position: absolute; left: -20px; top: 5px; bottom: 5px; width: 1px; background: rgba(138,97,168,0.5); }
.input-wrapper::after { content: ''; position: absolute; left: -20px; top: 50%; width: 4px; height: 1px; background: rgba(209,195,204,0.8); }
#wrap-id { transform: translate3d(-220px, -60px, 40px); }
#wrap-pass { transform: translate3d(140px, 40px, 10px); }
.btn-art { position: absolute; transform: translate3d(-30px, 130px, 60px); display: flex; align-items: center; gap: 15px; cursor: pointer; opacity: 0.3; transition: all 0.5s; pointer-events: none; }
.btn-art .line { width: 30px; height: 1px; background: #CFABC2; transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1); }
.btn-art .text { font-family:'Orbitron', sans-serif; font-size: 14px; letter-spacing: 10px; font-weight: 500; color: #E9D2D3; text-shadow: 0 0 12px rgba(233,210,211,0.6); opacity: 0; transition: opacity 0.8s; transform: translateX(-10px); }
.btn-art.ready { opacity: 0.9; pointer-events: auto; }
.btn-art.ready .line { width: 50px; background: rgba(249,220,167,0.9); box-shadow: 0 0 12px rgba(249,220,167,0.6); }
.btn-art.ready .text { opacity: 1; transform: translateX(0); color: #F9DCA7; }
.btn-art.ready:hover .line { width: 80px; background: #ffffff; box-shadow: 0 0 20px rgba(255,255,255,0.9); }
/* ===================== 鍏ㄥ眬寮规€ф寜鍘嬪弽棣?===================== */
/* 只给不靠 transform 定位的元素加弹性，避免冲掉入场/位移动画 */
button, .interactive, .fragment-btn, [class*="action-btn"], .nav-arrow {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}
button:hover, .interactive:hover, .fragment-btn:hover { transform: scale(1.05); }
button:active, .interactive:active, .fragment-btn:active,
[class*="action-btn"]:active, .nav-arrow:active {
  transform: scale(0.86);
  transition-duration: 0.08s;
}
/* CONNECT 这类自身带 transform 位移动画的按钮：只用亮度/透明度反馈，不碰 transform */
.btn-art { transition: filter 0.25s ease, opacity 0.25s ease; }
.btn-art:hover { filter: brightness(1.35); }
.btn-art:active { filter: brightness(1.7); }
@keyframes elastic-pop {
  0% { transform: scale(0.86); }
  55% { transform: scale(1.08); }
  75% { transform: scale(0.97); }
  100% { transform: scale(1); }
}
.elastic-pop { animation: elastic-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
