/* =========================================================
   0. Custom Fonts
   ========================================================= */
@font-face {
  font-family: 'PingFang SC';
  src: local('PingFang SC Ultralight'), local('PingFangSC-Ultralight'), url('./fonts/PingFang/PingFangSC-Ultralight.woff2') format('woff2');
  font-weight: 100; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'PingFang SC';
  src: local('PingFang SC Thin'), local('PingFangSC-Thin'), url('./fonts/PingFang/PingFangSC-Thin.woff2') format('woff2');
  font-weight: 200; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'PingFang SC';
  src: local('PingFang SC Light'), local('PingFangSC-Light'), url('./fonts/PingFang/PingFangSC-Light.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'PingFang SC';
  src: local('PingFang SC Regular'), local('PingFangSC-Regular'), url('./fonts/PingFang/PingFangSC-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'PingFang SC';
  src: local('PingFang SC Medium'), local('PingFangSC-Medium'), url('./fonts/PingFang/PingFangSC-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'PingFang SC';
  src: local('PingFang SC Semibold'), local('PingFangSC-Semibold'), url('./fonts/PingFang/PingFangSC-Semibold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

/* =========================================================
   1. Reset & Base
   ========================================================= */
html, body { 
    margin: 0; padding: 0; width: 100%; height: 100%;
    min-height: 100vh; min-height: 100dvh; 
    font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif; 
    overflow: hidden; 
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #edf5ff;
}

/* =========================================================
   2. Layout & Typography
   ========================================================= */
#nvpress-tips {
    position: fixed; inset: 0; 
    background: linear-gradient(180deg, #e0f0ff 0%, #edf5ff 30%, #f4f8ff 60%, #ffffff 100%);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    gap: clamp(1.2em, 3vw, 2em); text-align: center;
    padding: max(1em, env(safe-area-inset-top)) max(1.5em, env(safe-area-inset-right)) max(3em, calc(1em + env(safe-area-inset-bottom))) max(1.5em, env(safe-area-inset-left));
    box-sizing: border-box;
    /* [重要优化] 移除了结构层级的 transition: all，让设备旋转实现原生极速自适应 */
}

.text-group { display: flex; flex-direction: column; align-items: center; gap: 0.6em; z-index: 10; }

#nvpress-tips h1 { 
    margin: 0; font-size: clamp(28px, 5.5vw, 46px); 
    color: #5c738b; font-family: 'PingFang SC', sans-serif; font-weight: 800; 
    line-height: 1.1; letter-spacing: -0.03em;
}

.nv-blue { 
    display: inline-block;
    background: linear-gradient(135deg, #0070f5 0%, #479cf5 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.desc-text { 
    margin: 0; color: #8a9fb1; font-size: clamp(14px, 3.5vw, 16px); 
    font-weight: 400; line-height: 1.5; letter-spacing: 0.05em;
}

.wave-emoji { display: inline-block; transform-origin: 70% 70%; animation: wave-animation 2.8s ease-in-out infinite; }

/* =========================================================
   3. Glassmorphism UI
   ========================================================= */
.spotlight-glass {
    position: relative; overflow: hidden; z-index: 10;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.05) 100%); 
    backdrop-filter: blur(24px) saturate(130%); -webkit-backdrop-filter: blur(24px) saturate(130%);
    border: 1px solid rgba(92, 115, 139, 0.08); 
    box-shadow: inset 0 1.5px 2px rgba(255, 255, 255, 1), inset 0 0 4px rgba(255, 255, 255, 0.5), inset 0 -1px 2px rgba(255, 255, 255, 0.2), 0 8px 24px rgba(92, 115, 139, 0.06);
    /* 仅保留外观视觉的平滑过渡，不阻碍布局流 */
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.spotlight-glass::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; opacity: 0; 
    background: radial-gradient(circle 100px at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    transition: opacity 0.3s ease; pointer-events: none; z-index: -1; 
}

@media (hover: hover) { 
    .spotlight-glass:hover { border-color: rgba(92, 115, 139, 0.15); }
    .spotlight-glass:hover::before { opacity: 1; } 
}

/* =========================================================
   4. Components
   ========================================================= */
.logo-container { position: relative; z-index: 10; display: inline-flex; justify-content: center; align-items: center; }
.logo-container img { height: clamp(48px, 6vw, 88px); width: auto; opacity: 0.95; filter: drop-shadow(0 4px 12px rgba(0, 112, 245, 0.08)); transition: all 0.5s ease; }
@media (hover: hover) { .logo-container:hover img { opacity: 1; transform: translateY(-2px); filter: drop-shadow(0 8px 20px rgba(0, 112, 245, 0.15)); } }

.cd-pill-wrapper {
    display: inline-flex; align-items: center; justify-content: center;
    gap: clamp(12px, 3vw, 24px); margin: clamp(4px, 1vw, 8px) 0;
    padding: clamp(10px, 2.5vw, 14px) clamp(24px, 5vw, 40px);
    border-radius: 60px; -webkit-user-select: none; user-select: none;
}
.cd-item { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: clamp(32px, 7vw, 48px); }
.cd-val-wrap { position: relative; width: 100%; height: clamp(26px, 6vw, 36px); overflow: hidden; display: flex; justify-content: center; perspective: 200px; }
.cd-val { 
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; 
    font-family: 'PingFang SC', sans-serif; font-size: clamp(22px, 5.5vw, 32px); font-weight: 800; font-variant-numeric: tabular-nums; 
    letter-spacing: -0.5px; background: linear-gradient(135deg, #0070f5 0%, #1a85f5 50%, #66b3ff 100%); 
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 2px 4px rgba(0, 112, 245, 0.15));
}
.cd-label { font-size: clamp(10px, 2vw, 12px); color: #8296a8; font-weight: 600; margin-top: 4px; letter-spacing: 1.5px; text-transform: uppercase; }
.cd-colon { font-size: clamp(14px, 3.5vw, 20px); color: #a4b4c4; font-weight: 300; transform: translateY(calc(-1 * clamp(5px, 1.5vw, 10px))); animation: breathe-fade 2s ease-in-out infinite; }

.cd-val.slide-in { animation: scroll-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.cd-val.slide-out { animation: scroll-out 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

.btn-early-access {
    display: inline-flex; justify-content: center; align-items: center; text-decoration: none;
    color: #5c738b; font-size: clamp(14px, 3.5vw, 16px); font-weight: 600; 
    padding: clamp(10px, 2.5vw, 12px) clamp(30px, 6vw, 40px); border-radius: 50px; letter-spacing: 0.5px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(20px) saturate(130%); -webkit-backdrop-filter: blur(20px) saturate(130%);
    border: 1px solid rgba(92, 115, 139, 0.08);
    box-shadow: 0 8px 24px rgba(92, 115, 139, 0.08), inset 0 2px 3px rgba(255, 255, 255, 1), inset 0 0 5px rgba(255, 255, 255, 0.6), inset 0 -1px 2px rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); position: relative; overflow: hidden; z-index: 10;
}
.btn-early-access::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; opacity: 0;
    background: radial-gradient(circle 90px at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.15) 60%, transparent 100%);
    transition: opacity 0.3s ease; pointer-events: none; z-index: -1; 
}
@media (hover: hover) {
    .btn-early-access:hover { 
        color: #5c738b; border-color: rgba(92, 115, 139, 0.18); transform: translateY(-2px);
        box-shadow: 0 12px 32px rgba(92, 115, 139, 0.12), inset 0 2px 4px rgba(255, 255, 255, 1), inset 0 0 6px rgba(255, 255, 255, 0.7), inset 0 -1px 3px rgba(255, 255, 255, 0.4);
    }
    .btn-early-access:hover::before { opacity: 1; }
}
.btn-early-access:active { transform: translateY(1px); box-shadow: 0 4px 12px rgba(92, 115, 139, 0.1), inset 0 1px 2px rgba(255, 255, 255, 0.8); }

.bottom-footer { 
    position: fixed; bottom: 0; left: 0; right: 0; 
    padding: 1em 1em max(1.5em, calc(0.5em + env(safe-area-inset-bottom))) 1em; 
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; z-index: 10; 
}
.copyright { color: #94a3b8; font-size: clamp(10px, 2vw, 11px); letter-spacing: 1px; font-weight: 400; text-transform: uppercase; user-select: none; pointer-events: none; }

a.beian-link.spotlight-glass { 
    pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; 
    color: #5c738b; text-decoration: none; font-size: 12px; 
    padding: 6px 16px; border-radius: 50px; 
}

.icp-icon { width: 20px; height: 20px; object-fit: contain; }

a.beian-link.spotlight-glass:hover { 
    color: #0070f5; transform: translateY(-2px) scale(1.01); 
    box-shadow: inset 0 2px 3px rgba(255, 255, 255, 1), inset 0 0 4px rgba(255, 255, 255, 0.6), inset 0 -1px 2px rgba(255, 255, 255, 0.3), 0 8px 20px rgba(0, 112, 245, 0.08); 
}
a.beian-link.spotlight-glass:active { 
    transform: translateY(1px) scale(0.98); background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.02) 100%); 
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.6), 0 2px 4px rgba(92, 115, 139, 0.05); 
}

/* =========================================================
   5. Background & 3D Sphere System
   ========================================================= */
.bg-animation { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.gradient-blob { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.3; animation: blob-float 20s ease-in-out infinite alternate; will-change: transform; }
.gradient-blob:nth-child(1) { width: 50vw; height: 50vw; max-width: 500px; max-height: 500px; background: #cce3ff; bottom: -10%; left: 20%; animation-delay: -5s; animation-duration: 25s; }
.gradient-blob:nth-child(2) { width: 40vw; height: 40vw; max-width: 400px; max-height: 400px; background: #e0f0ff; top: 20%; right: 10%; animation-delay: -10s; animation-duration: 22s; }

.glass-sphere-container { 
    position: absolute; top: 50%; left: 50%; 
    width: clamp(280px, 85vw, 600px); height: clamp(280px, 85vw, 600px); 
    z-index: 1; transform: translate(-50%, -50%); 
    will-change: transform;
}

.glow-waves { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.glow-waves .wave { 
    position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(0, 112, 245, 0.25); 
    box-shadow: 0 0 40px 10px rgba(0, 112, 245, 0.08), inset 0 0 20px rgba(255, 255, 255, 0.8); 
    opacity: 0; animation: glow-wave-expand 6s cubic-bezier(0.16, 1, 0.3, 1) infinite; 
}
.glow-waves .wave:nth-child(2) { animation-delay: 2s; } .glow-waves .wave:nth-child(3) { animation-delay: 4s; }

.orbit-ring-1 { position: absolute; inset: -4%; border-radius: 50%; animation: orbit-rotate 24s linear infinite; }
.orbit-ring-1::before { 
    content: ''; position: absolute; top: 50%; left: -2%; transform: translateY(-50%); 
    width: clamp(12px, 2vw, 18px); height: clamp(12px, 2vw, 18px); border-radius: 50%; 
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 1) 0%, rgba(128, 196, 255, 0.4) 30%, rgba(0, 112, 245, 0.1) 70%, rgba(255, 255, 255, 0.9) 100%); 
    box-shadow: inset 2px 2px 5px rgba(255, 255, 255, 1), inset -2px -2px 6px rgba(0, 112, 245, 0.25), inset 0 0 10px rgba(255, 255, 255, 0.6), 0 0 15px rgba(0, 112, 245, 0.3); 
    border: 1px solid rgba(255, 255, 255, 0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}

.orbit-ring-2 { position: absolute; inset: -9%; border-radius: 50%; animation: orbit-rotate 30s linear infinite reverse; }
.orbit-ring-2::after { 
    content: ''; position: absolute; left: 50%; bottom: -1.5%; transform: translateX(-50%); 
    width: clamp(8px, 1.5vw, 12px); height: clamp(8px, 1.5vw, 12px); border-radius: 50%; 
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 1) 0%, rgba(153, 214, 255, 0.5) 25%, rgba(0, 112, 245, 0.1) 60%, rgba(255, 255, 255, 0.95) 100%); 
    box-shadow: inset 1px 1px 4px rgba(255, 255, 255, 1), inset -2px -2px 5px rgba(0, 112, 245, 0.3), 0 0 12px rgba(0, 112, 245, 0.2); 
    border: 1px solid rgba(255, 255, 255, 0.7); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}

.glass-sphere { 
    position: absolute; inset: 0; border-radius: 50%; 
    background: radial-gradient(110% 110% at 30% 10%, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.02) 40%, rgba(0, 112, 245, 0.02) 80%, rgba(0, 112, 245, 0.08) 100%);
    box-shadow: inset 0 12px 32px rgba(255, 255, 255, 1), inset 0 2px 6px rgba(255, 255, 255, 0.9), inset 0 -10px 24px rgba(0, 112, 245, 0.15), 0 20px 50px rgba(0, 112, 245, 0.08);          
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.7);       
}

/* =========================================================
   6. Keyframes Animations
   ========================================================= */
@keyframes wave-animation { 0%, 75%, 100% { transform: rotate(0deg); } 15% { transform: rotate(20deg); } 25% { transform: rotate(-10deg); } 35% { transform: rotate(14deg); } 45% { transform: rotate(-6deg); } 55% { transform: rotate(4deg); } 65% { transform: rotate(-2deg); } }
@keyframes scroll-in { 0% { transform: translateY(70%) scale(0.9); opacity: 0; } 100% { transform: translateY(0) scale(1); opacity: 1; } }
@keyframes scroll-out { 0% { transform: translateY(0) scale(1); opacity: 1; } 100% { transform: translateY(-70%) scale(0.9); opacity: 0; } }
@keyframes breathe-fade { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
@keyframes glow-wave-expand { 0% { transform: scale(0.85); opacity: 0.8; border-width: 1.5px; } 100% { transform: scale(1.6); opacity: 0; border-width: 0px; filter: blur(4px); } }
@keyframes orbit-rotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes blob-float { 0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 0.3; } 33% { transform: translate(3vw, -4vw) scale(1.05) rotate(2deg); opacity: 0.4; } 66% { transform: translate(-2vw, 3vw) scale(0.95) rotate(-2deg); opacity: 0.25; } }

/* =========================================================
   7. Landscape Dashboard Layout
   ========================================================= */
@media (max-height: 600px) and (orientation: landscape) {
    #nvpress-tips { 
        display: grid; 
        grid-template-columns: 1fr 1fr; 
        grid-template-rows: 1fr auto auto auto 1fr; 
        gap: 1vh 0; align-content: stretch; align-items: center; justify-items: center; 
        padding: env(safe-area-inset-top) max(4vw, env(safe-area-inset-right)) max(40px, env(safe-area-inset-bottom)) max(4vw, env(safe-area-inset-left));
        box-sizing: border-box;
    }
    
    .logo-container { grid-column: 1; grid-row: 2; margin-bottom: 0.5vh; z-index: 10; }
    .logo-container img { height: clamp(28px, 10vh, 48px); }
    
    .text-group { grid-column: 1; grid-row: 3; align-items: center; text-align: center; gap: 0.5vh; z-index: 10; }
    #nvpress-tips h1 { font-size: clamp(20px, 7vh, 32px); }
    .desc-text { font-size: clamp(12px, 4vh, 15px); }
    
    .btn-early-access { grid-column: 1; grid-row: 4; padding: 1vh 3vw; font-size: 13px; margin-top: 1.5vh; z-index: 10; }
    
    .glass-sphere-container { 
        left: 25%; top: 50%; 
        width: clamp(240px, 80vh, 400px); height: clamp(240px, 80vh, 400px); z-index: 1; 
    }
    
    .cd-pill-wrapper { 
        grid-column: 2; grid-row: 2 / 5; padding: 14px 28px; gap: 14px; margin: 0; z-index: 20; 
        backdrop-filter: blur(28px) saturate(160%); box-shadow: 0 16px 40px rgba(0, 112, 245, 0.12), inset 0 2px 4px rgba(255, 255, 255, 1); 
    }
    .cd-val-wrap { height: 32px; }
    .cd-val { font-size: 26px; }
    .cd-label { font-size: 10px; margin-top: 4px; }
    .cd-item { min-width: 32px; }
    .cd-colon { font-size: 16px; transform: translateY(-4px); }
    
    .bottom-footer { 
        display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; width: 100%;
        padding: 8px max(24px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
        box-sizing: border-box; background: linear-gradient(0deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0) 100%);
    }
    .copyright { grid-column: 2; text-align: center; font-size: clamp(8px, 2vh, 10px); }
    a.beian-link.spotlight-glass { grid-column: 3; justify-self: end; padding: 4px 12px; font-size: 10px; }
    .icp-icon { width: 14px; height: 14px; }
}