/* 字体定义 */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/inter/v12/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7W0Q5nw.woff2) format('woff2');
}

/* 导航按钮样式 */
.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-btn:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.nav-btn:active {
    transform: scale(0.98);
}

.nav-active {
    background-color: #3B82F6;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.nav-inactive {
    background-color: white;
    color: #666666;
    border: 1px solid #e5e7eb;
}

.nav-inactive:hover {
    background-color: #f9fafb;
    border-color: #3B82F6;
}

/* 卡片样式 */
.content-card {
    display: block;
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.content-card:hover {
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.30), 0 15px 12px rgba(0, 0, 0, 0.22);
    transform: translateY(-0.25rem);
    background-color: #f9fafb;
}

.card-content {
    height: 8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.card-text {
    color: #374151;
    font-size: 1.125rem;
    font-weight: 300;
    letter-spacing: 0.025em;
    text-align: center;
}

/* 地图密码卡片 */
.map-password-card {
    background: white;
    border-radius: 1rem;
    padding: 1.2rem;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
    margin-top: 1rem;
}

/* 响应式密码网格 */
.password-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(120px, 100%), 1fr));
    gap: 0.5rem;
}

/* 大屏幕显示5列，与下方改枪码卡片对齐 */
@media (min-width: 1024px) {
    .password-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 1rem;
    }
}

/* 中等屏幕显示3列 */
@media (min-width: 768px) and (max-width: 1023px) {
    .password-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

/* 小屏幕显示2列 */
@media (min-width: 640px) and (max-width: 767px) {
    .password-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

/* 确保密码卡片内容居中显示 */
.password-grid > div {
    justify-self: stretch;
    text-align: center;
}

/* 地图密码高亮 - 渐变色加粗设计 */
.map-secret {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    position: relative;
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.map-secret:hover {
    transform: scale(1.05) translateY(-2px);
    background: linear-gradient(45deg, #8b5cf6, #3b82f6, #8b5cf6);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.map-secret:active {
    transform: scale(0.98) translateY(0);
}

/* 响应式调整 */
@media (max-width: 640px) {
    .content-card {
        height: 6.5rem;
    }
    
    .card-text {
        font-size: 1rem;
        padding: 0 0.5rem;
    }
}