/* --- 全局与基础样式 --- */
body {
    background-color: #000000;
    color: #ffffff;
    margin: 0;
    padding-top: 75px;
    min-height: 100vh;
    font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
}

/* 装饰性背景光晕 */
.bg-glow-container {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.2;
}

.bg-glow-spot {
    position: absolute;
    top: 20%;
    right: 10%;
    width: 30%;
    height: 30%;
    background-color: #2563eb;
    filter: blur(150px);
    border-radius: 9999px;
}

/* --- 容器布局 --- */
.main-wrapper {
    position: relative;
    z-index: 10;
    margin: 0 auto;
    max-width: 80rem; /* 7xl */
    padding: 4rem 1rem;
}

/* --- 组件样式 --- */
.feature-card {
    padding: 2rem;
    background-color: rgba(17, 24, 39, 0.4);
    border: 1px solid #1f2937;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background-color: rgba(31, 41, 55, 0.5);
}

.icon-box {
    width: 3rem;
    height: 3rem;
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background-color: rgba(17, 24, 39, 0.2);
    border-left: 2px solid #3b82f6;
}

.nav-block {
    background-color: rgba(17, 24, 39, 0.5);
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid #1f2937;
}

.nav-link-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-radius: 0.75rem;
    transition: background-color 0.2s;
    color: #d1d5db;
    text-decoration: none;
}

.nav-link-row:hover {
    background-color: #1f2937;
}

/* --- 点击特效 --- */
.click-ripple {
    position: fixed;
    border: 2px solid rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.05);
    border-radius: 50%;
    pointer-events: none;
    width: 10px;
    height: 10px;
    margin-top: -5px;
    margin-left: -5px;
    z-index: 10000;
    animation: ripple-effect 0.8s ease-out forwards;
}

.click-particle {
    position: fixed;
    background: #3b82f6;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
}

@keyframes ripple-effect {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(12); opacity: 0; }
}
/* --- 导航栏专项样式 --- */

/* 1. 基础容器：确保高度和背景 */
.nav-custom {
    height: 75px;
    background-color: #000000;
    border-bottom: 1px solid #1f2937;
    display: flex;
    align-items: center;
}

/* 2. 桌面端链接样式 */
.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.3s ease;
}
.nav-link:hover {
    color: #3b82f6;
}

/* 3. 移动端逻辑：默认隐藏 */
.nav-hidden {
    display: none;
}
            /* 1. 确保 x-cloak 元素在加载前完全隐藏 */

/* 确保 Alpine 加载前不闪烁 */
[x-cloak] { display: none !important; }

/* 基础导航栏样式 */
.nav-custom {
    height: 75px;
    background-color: rgba(0, 0, 0, 0.9); /* 建议加一点点透明度更高级 */
    backdrop-filter: blur(10px);        /* 毛玻璃效果 */
    border-bottom: 1px solid #1f2937;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 200;
}

/* 移动端菜单隐藏状态：必须加上 pointer-events-none */
.-translate-y-full {
    transform: translateY(-100%);
    pointer-events: none; /* 关键：防止不可见时遮挡页面点击 */
}

.translate-y-0 {
    transform: translateY(0);
    pointer-events: auto;
}

/* 强制移动端菜单打开时，背景完全不透明并覆盖全屏 */
@media (max-width: 768px) {
    /* 确保 Alpine 展开后的容器没有透明度 */
    .translate-y-0 {
        background-color: #000000 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* 修复文字颜色，确保在黑底上是纯白 */
    .text-gray-100 {
        color: #ffffff !important;
    }
}