/* ============================================================
   轩澜·昂游万界之旅 — 公共样式
   供 index / updates / contact / 404 页面共用
   ============================================================ */

:root {
    --primary-glow: rgba(0, 180, 255, 0.4);
    --secondary-glow: rgba(140, 0, 255, 0.3);
    --text-main: #f0f5ff;
    --text-sub: #a2b4dc;
    --glass-bg: rgba(6, 11, 25, 0.35);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

html, body {
    min-height: 100vh;
}

body {
    background: #02040a;
    font-family: 'PingFang SC', 'Helvetica Neue', 'Microsoft YaHei', sans-serif;
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
    cursor: default;
}

/* ---------- 宇宙星空与液态光晕背景 ---------- */
#spaceCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.liquid-nebula {
    position: fixed;
    width: 65vw;
    height: 65vw;
    border-radius: 43% 57% 70% 30% / 40% 45% 55% 60%;
    background: radial-gradient(circle, var(--primary-glow) 0%, rgba(0,0,0,0) 70%);
    filter: blur(80px);
    opacity: 0.9;
    z-index: 0;
    pointer-events: none;
    animation: liquidMorph 20s infinite alternate ease-in-out;
}

.nebula-1 { top: -10%; left: -10%; }
.nebula-2 {
    bottom: -10%;
    right: -10%;
    background: radial-gradient(circle, var(--secondary-glow) 0%, rgba(0,0,0,0) 70%);
    animation-delay: -5s;
}

@keyframes liquidMorph {
    0%   { border-radius: 43% 57% 70% 30% / 40% 45% 55% 60%; transform: translate(0, 0) rotate(0deg) scale(1); }
    50%  { border-radius: 60% 40% 40% 60% / 50% 60% 40% 50%; transform: translate(5%, 8%) rotate(90deg) scale(1.1); }
    100% { border-radius: 35% 65% 50% 50% / 60% 35% 65% 40%; transform: translate(-2%, -5%) rotate(180deg) scale(0.95); }
}

/* ---------- 顶部液态玻璃导航栏 ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4%;
    background: rgba(4, 7, 16, 0.4);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.05);
    z-index: 100;
}

.nav-logo {
    font-size: 1.35rem;
    font-weight: 600;
    text-decoration: none;
    background: linear-gradient(135deg, #ffffff 30%, #8bcfff 70%, #cc88ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 0 20px rgba(0, 180, 255, 0.2);
    transition: opacity 0.3s;
}
.nav-logo:hover {
    opacity: 0.85;
}
.nav-logo::before {
    content: '✦';
    color: #8bcfff;
    animation: pulseGlow 2s infinite;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-item {
    color: var(--text-sub);
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s, text-shadow 0.3s;
}
.nav-item.active, .nav-item:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 180, 255, 0.6);
}
.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0cf, #94f);
    transition: width 0.3s ease, left 0.3s ease;
    box-shadow: 0 0 8px #0cf;
}
.nav-item.active::after, .nav-item:hover::after {
    width: 100%;
    left: 0;
}

/* ---------- 底部精密备案栏 ---------- */
.footer-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(3, 6, 12, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid var(--glass-border);
    padding: 1rem;
    text-align: center;
    font-size: 0.85rem;
    z-index: 100;
    color: var(--text-sub);
    letter-spacing: 1px;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.4);
}

.footer-bar a {
    color: #7fccff;
    text-decoration: none;
    transition: color 0.2s, text-shadow 0.2s;
    border-bottom: 1px dotted rgba(0, 180, 255, 0.4);
    margin-left: 4px;
}
.footer-bar a:hover {
    color: #ffffff;
    text-shadow: 0 0 8px #0cf;
    border-bottom-color: #0cf;
}

/* ---------- 通用公共动画 ---------- */
@keyframes pulseGlow {
    0%, 100% { opacity: 0.6; text-shadow: 0 0 5px #0cf; }
    50%      { opacity: 1; text-shadow: 0 0 15px #0cf, 0 0 25px #0cf; }
}

/* ---------- 鼠标星尘轨迹特效层 ---------- */
#cursor-trail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9990;   /* 内容之上，加载舱(9999)之下 */
    pointer-events: none;
}

/* ---------- 响应式公共适配 ---------- */
@media (max-width: 768px) {
    .navbar { padding: 0 5%; }
    .nav-logo { font-size: 1.1rem; }
    .nav-links { gap: 1.2rem; }
    .nav-item { font-size: 0.85rem; }
    .footer-bar { font-size: 0.75rem; padding: 0.8rem; }
}
