/* ================= 导航栏 ================= */
nav {
    position: fixed;
    z-index: 100;
    min-height: 60px;
    width: 96%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    gap: 20px;
}

.logo a {
    color: #fff;
    font-weight: 700;
    font-size: 24px;
    text-decoration: none;
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    position: relative;
    transition: none;
}

.logo a:hover {
    animation: logo-glitch 0.3s linear;
}

@keyframes logo-glitch {
    0%   { transform: translate(0); }
    20%  { transform: translate(-2px, 2px); text-shadow: 2px 0 #f0f, -2px 0 #0ff; }
    40%  { transform: translate(2px, -1px); text-shadow: -2px 0 #f0f, 2px 0 #0ff; }
    60%  { transform: translate(-1px, -2px); text-shadow: 1px 0 #0ff, -1px 0 #f0f; }
    80%  { transform: translate(1px, 1px); text-shadow: -1px 0 #0ff, 1px 0 #f0f; }
    100% { transform: translate(0); text-shadow: none; }
}

.logo-sub {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: rgba(0, 255, 255, 0.5);
    margin-left: 8px;
    letter-spacing: 2px;
}

.nav-anchor {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    letter-spacing: 1px;
    padding: 6px 12px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-anchor:hover {
    color: #0ff;
    text-shadow: 0 0 8px #0ff;
}

.nav-anchor::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: #0ff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-anchor:hover::after {
    width: 100%;
}

nav .nav-links ul {
    display: flex;
    flex-direction: row;
}

nav .nav-links ul li {
    padding: 0 4px;
    list-style: none;
}

.tavern-btn {
    color: #0ff;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 16px;
    border: 1px solid #0ff;
    border-radius: 4px;
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5), inset 0 0 5px rgba(0, 255, 255, 0.3);
    text-shadow: 0 0 5px #0ff;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
    position: relative;
    overflow: hidden;
}

.tavern-btn::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.tavern-btn:active::after { width: 300px; height: 300px; }
.tavern-btn:hover {
    background: #0ff;
    color: #000;
    box-shadow: 0 0 20px #0ff, inset 0 0 10px #0ff;
    text-shadow: none;
}

/* 赛博时钟 */
.cyber-clock {
    font-family: 'Courier New', monospace;
    color: #0ff;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 0 5px #0ff;
    letter-spacing: 2px;
}

.clock-label {
    color: rgba(0, 255, 255, 0.5);
    font-size: 11px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    padding: 1px 5px;
}

.clock-time {
    font-weight: bold;
    font-size: 16px;
}
