/* --- 导航栏样式 (适配新HTML) --- */
.navbar {
    background-color: rgba(255, 255, 255, 0.98) !important; /* 微透明背景 */
    backdrop-filter: blur(10px); /* 毛玻璃效果 */
    border-bottom: 1px solid #f0f0f0;
    min-height: 80px;
    padding: 10px 0;
    transition: all 0.3s ease;
}

/* Logo */
.navbar-brand img { height: 50px; margin-right: 10px; }

/* 菜单项布局 */
.navbar-nav { gap: 30px; }

/* 链接样式 */
.navbar-nav .nav-link {
    color: #333 !important;
    font-weight: 500;
    font-size: 16px;
    position: relative;
    padding: 10px 0;
}

/* 红色下划线动画 */
.navbar-nav .nav-item { position: relative; }
.navbar-nav .nav-item::after {
    content: ""; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
    background-color: #e74c3c; transition: width 0.3s ease;
}
.navbar-nav .nav-item:hover::after { width: 100%; }

/* 语言切换按钮样式 */
.lang-switch {
    background-color: #444;
    border: none;
    color: white;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s;
}
.lang-switch:hover { background-color: #000; }

/* 汉堡菜单颜色修正 (强制黑色，因为背景是白色) */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.55)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}
.navbar-toggler { border-color: rgba(0,0,0,0.1); }

/* --- 页面整体布局 --- */
.product-page {
    display: flex;
    height: calc(100vh - 81px);
    overflow: hidden;
}
.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.navbar-brand img {
    height: 50px;
    width: auto;
}

@media (max-width: 991px) {
    .offcanvas {
        background-color: #fff;
        width: 75% !important; /* 抽屉宽度 */
        max-width: 300px;
    }

    .offcanvas-header {
        border-bottom: 1px solid #f0f0f0;
        padding: 20px;
    }

    .offcanvas-title {
        font-weight: 800;
        letter-spacing: 2px;
        color: #ddd;
    }

    .offcanvas-body {
        padding: 30px 20px;
        display: flex;
        flex-direction: column;
    }

    /* 移动端链接样式 */
    .navbar-nav {
        gap: 0;
        margin-bottom: 40px;
    }

    .nav-item {
        border-bottom: 1px solid #f9f9f9;
        width: 100%;
        text-align: center;
    }

    /* 移除PC端的下划线 */
    .nav-item::after { display: none; }

    .nav-link {
        color: #333 !important;
        font-size: 18px;
        font-weight: 600;
        padding: 20px 0 !important;
        display: block;
    }

    .nav-link:hover {
        color: #007AFF !important;
        background: #f9fbff;
    }

    /* 移动端语言按钮 */
    .lang-switch {
        width: 100%;
        padding: 12px;
        background: #f5f5f5;
        color: #333;
        border: none;
        border-radius: 8px;
        font-weight: 600;
    }
}
