/* 全新现代化导航栏样式 */
/* 采用最新的设计理念和最佳实践 */

/* ====== 基础导航栏样式 ====== */
.navbar-new {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
    padding: 0;
    min-height: 80px;
    display: flex;
    align-items: center;
}

/* ====== 导航栏容器 ====== */
.navbar-new .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 80px;
}

/* ====== 品牌Logo区域 ====== */
.navbar-new .navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.8rem;
    color: #ffffff;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}

.navbar-new .navbar-brand .brand-logo {
    height: 60px;
    width: auto;
    max-width: none;
    margin-right: 12px;
    transition: all 0.3s ease;
}

.navbar-new .navbar-brand .brand-text {
    color: #000000 !important;
    font-weight: 800;
    margin-left: 12px;
}

/* 中英文标题容器样式 */
.navbar-new .brand-text-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin-left: 12px;
    max-width: 280px;
}

.navbar-new .brand-text-chinese {
    color: #000000 !important;
    font-weight: 800;
    font-size: 18px;
    line-height: 1.2;
}

.navbar-new .brand-text-english {
    color: #666666 !important;
    font-weight: 500;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ====== 导航菜单 ====== */
.navbar-new .navbar-nav {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    gap: 8px;
}

.navbar-new .nav-item {
    position: relative;
    margin: 0;
}

.navbar-new .nav-link {
    color: #333 !important;
    text-decoration: none;
    padding: 12px 16px;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    border-radius: 8px;
    position: relative;
    display: block;
}

.navbar-new .nav-link:hover {
    color: #007bff !important;
    background: rgba(0, 123, 255, 0.1);
    transform: translateY(-1px);
}

.navbar-new .nav-link.active {
    color: #007bff !important;
    background: rgba(0, 123, 255, 0.15);
    font-weight: 600;
}

/* 桌面端隐藏折叠按钮 */
.navbar-new .navbar-toggler {
    display: none;
}

/* 桌面端折叠菜单样式 */
.navbar-new .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
    align-items: center;
}

/* 语言切换按钮样式 */
.navbar-new .language-switch-container {
    margin-left: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #e9ecef;
    background-color: #f8f9fa;
    min-width: 120px;
}

.navbar-new .language-switch-container:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ====== 滚动状态样式 ====== */
.navbar-new.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    min-height: 70px;
}

.navbar-new.navbar-scrolled .container {
    height: 70px;
}

.navbar-new.navbar-scrolled .navbar-brand {
    color: #333333;
}

.navbar-new.navbar-scrolled .navbar-brand .brand-logo {
    height: 50px;
    width: auto;
    max-width: none;
}

.navbar-new.navbar-scrolled .nav-link {
    color: #333333;
}

.navbar-new.navbar-scrolled .nav-link:hover {
    background: rgba(57, 153, 242, 0.1);
    color: #3999f2;
}

.navbar-new.navbar-scrolled .nav-link.active {
    background: rgba(57, 153, 242, 0.15);
    color: #3999f2;
}

.navbar-new.navbar-scrolled .language-switch {
    background: rgba(57, 153, 242, 0.1);
    border: none;
    color: #333333;
}

.navbar-new.navbar-scrolled .language-switch:hover {
    background: rgba(57, 153, 242, 0.2);
    color: #3999f2;
}

.navbar-new.navbar-scrolled .navbar-toggler {
    background: rgba(57, 153, 242, 0.1);
    border-color: rgba(57, 153, 242, 0.3);
}

.navbar-new.navbar-scrolled .navbar-toggler .hamburger-line {
    background: #333333;
}

/* ====== 移动端样式重写 ====== */
@media (max-width: 991px) {
    .navbar-new {
        min-height: 70px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-new .container {
        height: 70px;
        padding: 0 15px;
    }
    
    .navbar-new .brand-text-container {
        max-width: 200px;
    }
    
    .navbar-new .navbar-brand {
        font-size: 1.4rem;
    }
    
    .navbar-new .navbar-brand .brand-logo {
        height: 45px;
        margin-right: 10px;
    }
    
    .navbar-new .brand-text-chinese {
        font-size: 16px;
    }
    
    .navbar-new .brand-text-english {
        font-size: 11px;
    }
    
    /* 移动端折叠按钮样式 */
    .navbar-new .navbar-toggler {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border: none;
        background: rgba(0, 123, 255, 0.1);
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.3s ease;
        margin-left: auto;
        position: relative;
        overflow: hidden;
    }
    
    .navbar-new .navbar-toggler:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
    }
    
    .navbar-new .navbar-toggler:hover {
        background: rgba(0, 123, 255, 0.15);
        transform: scale(1.05);
    }
    
    .navbar-new .navbar-toggler.active {
        background: rgba(0, 123, 255, 0.2);
        transform: scale(1.05);
    }
    
    .navbar-new .navbar-toggler-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
        color: #007bff;
        font-size: 16px;
        transition: all 0.3s ease;
    }
    
    .navbar-new .navbar-toggler.active .navbar-toggler-icon {
        transform: rotate(180deg);
    }
    
    /* 移动端折叠菜单样式 */
    .navbar-new .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        opacity: 0;
        visibility: hidden;
    }
    
    .navbar-new .navbar-collapse.show {
        max-height: 80vh;
        opacity: 1;
        visibility: visible;
        padding: 20px 0;
    }
    
    .navbar-new .navbar-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        padding: 0 20px;
        margin: 0;
    }
    
    .navbar-new .nav-item {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        position: relative;
    }
    
    .navbar-new .nav-item:last-child {
        border-bottom: none;
    }
    
    .navbar-new .nav-link {
        width: 100%;
        padding: 18px 20px;
        border-radius: 0;
        color: #1a1a1a !important;
        font-weight: 600;
        font-size: 16px;
        text-align: left;
        display: flex;
        align-items: center;
        justify-content: space-between;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    
    .navbar-new .nav-link::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 0;
        height: 100%;
        background: linear-gradient(90deg, rgba(0, 123, 255, 0.1), rgba(0, 123, 255, 0.05));
        transition: width 0.3s ease;
        z-index: -1;
    }
    
    .navbar-new .nav-link:hover::before,
    .navbar-new .nav-link.active::before {
        width: 100%;
    }
    
    .navbar-new .nav-link:hover {
        color: #007bff !important;
        background: transparent;
        transform: none;
        padding-left: 25px;
    }
    
    .navbar-new .nav-link.active {
        color: #007bff !important;
        background: transparent;
        padding-left: 25px;
    }
    
    /* 移动端语言切换按钮样式 */
    .navbar-new .language-switch-container {
        margin: 20px 20px 0 20px;
        padding: 16px 20px;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border: 2px solid rgba(0, 123, 255, 0.2);
        border-radius: 16px;
        width: calc(100% - 40px);
        text-align: center;
        box-shadow: 0 4px 16px rgba(0, 123, 255, 0.1);
        transition: all 0.3s ease;
    }
    
    .navbar-new .language-switch-container:hover {
        background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
        border-color: rgba(0, 123, 255, 0.3);
        box-shadow: 0 6px 20px rgba(0, 123, 255, 0.15);
        transform: translateY(-2px);
    }
    
    .navbar-new .language-button {
        justify-content: center;
        gap: 20px;
    }
    
    .navbar-new .chinese-btn,
    .navbar-new .english-text {
        font-size: 15px;
        font-weight: 600;
        padding: 8px 16px;
        border-radius: 12px;
        transition: all 0.3s ease;
    }
    
    .navbar-new .chinese-btn:hover,
    .navbar-new .english-text:hover {
        background: rgba(0, 123, 255, 0.1);
        color: #007bff;
    }
    
    .navbar-new .separator {
        width: 2px;
        height: 20px;
        background: linear-gradient(180deg, transparent 0%, rgba(0, 123, 255, 0.3) 50%, transparent 100%);
        border-radius: 1px;
    }
}

/* ====== 小屏幕优化 ====== */
@media (max-width: 576px) {
    .navbar-new {
        min-height: 65px;
    }
    
    .navbar-new .container {
        height: 65px;
        padding: 0 12px;
    }
    
    .navbar-new .brand-text-container {
        max-width: 180px;
    }
    
    .navbar-new .navbar-brand {
        font-size: 1.3rem;
    }
    
    .navbar-new .navbar-brand .brand-logo {
        height: 40px;
        margin-right: 8px;
    }
    
    .navbar-new .brand-text-chinese {
        font-size: 15px;
    }
    
    .navbar-new .brand-text-english {
        font-size: 10px;
    }
    
    .navbar-new .navbar-toggler {
        width: 40px;
        height: 40px;
    }
    
    .navbar-new .navbar-toggler-icon {
        width: 18px;
        height: 18px;
        font-size: 15px;
    }
    
    .navbar-new .nav-link {
        padding: 16px 18px;
        font-size: 15px;
    }
    
    .navbar-new .language-switch-container {
        margin: 18px 18px 0 18px;
        padding: 14px 18px;
        width: calc(100% - 36px);
    }
    
    .navbar-new .chinese-btn,
    .navbar-new .english-text {
        font-size: 14px;
        padding: 6px 14px;
    }
}

/* ====== 超小屏幕优化 ====== */
@media (max-width: 480px) {
    .navbar-new {
        min-height: 60px;
    }
    
    .navbar-new .container {
        height: 60px;
        padding: 0 10px;
    }
    
    .navbar-new .brand-text-container {
        max-width: 160px;
    }
    
    .navbar-new .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-new .brand-logo {
        height: 35px;
        margin-right: 6px;
    }
    
    .navbar-new .brand-text-chinese {
        font-size: 14px;
    }
    
    .navbar-new .brand-text-english {
        font-size: 9px;
    }
    
    .navbar-new .navbar-toggler {
        width: 36px;
        height: 36px;
    }
    
    .navbar-new .navbar-toggler-icon {
        width: 16px;
        height: 16px;
        font-size: 14px;
    }
    
    .navbar-new .nav-link {
        padding: 14px 16px;
        font-size: 14px;
    }
    
    .navbar-new .language-switch-container {
        margin: 16px 16px 0 16px;
        padding: 12px 16px;
        width: calc(100% - 32px);
    }
    
    .navbar-new .chinese-btn,
    .navbar-new .english-text {
        font-size: 13px;
        padding: 5px 12px;
    }
}

/* ====== 动画效果 ====== */
@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar-new {
    animation: slideInDown 0.6s ease-out;
}

.navbar-new .navbar-collapse.show .nav-item {
    animation: fadeInUp 0.4s ease-out forwards;
}

.navbar-new .navbar-collapse.show .nav-item:nth-child(1) { animation-delay: 0.1s; }
.navbar-new .navbar-collapse.show .nav-item:nth-child(2) { animation-delay: 0.15s; }
.navbar-new .navbar-collapse.show .nav-item:nth-child(3) { animation-delay: 0.2s; }
.navbar-new .navbar-collapse.show .nav-item:nth-child(4) { animation-delay: 0.25s; }
.navbar-new .navbar-collapse.show .nav-item:nth-child(5) { animation-delay: 0.3s; }

/* ====== 触摸优化 ====== */
@media (hover: none) and (pointer: coarse) {
    .navbar-new .nav-link {
        min-height: 44px;
        padding: 16px 20px;
    }
    
    .navbar-new .navbar-toggler {
        min-height: 44px;
        min-width: 44px;
    }
    
    .navbar-new .language-switch-container {
        min-height: 44px;
    }
}

/* ====== 深色模式支持 ====== */
@media (prefers-color-scheme: dark) {
    .navbar-new {
        background: rgba(18, 18, 18, 0.98);
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }
    
    .navbar-new .navbar-collapse {
        background: rgba(18, 18, 18, 0.98);
        border-top-color: rgba(255, 255, 255, 0.1);
    }
    
    .navbar-new .nav-link {
        color: #ffffff !important;
    }
    
    .navbar-new .nav-item {
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }
    
    .navbar-new .language-switch-container {
        background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
        border-color: rgba(0, 123, 255, 0.3);
    }
}

/* ====== 确保内容不被遮挡 ====== */
body {
    padding-top: 0;
}

/* ====== 首页Banner区域样式 ====== */
.home {
    position: relative;
    
    background: transparent;
}

.slideWiz {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* ====== 性能优化 ====== */
.navbar-new * {
    will-change: transform, opacity;
}

/* ====== 无障碍支持 ====== */
.navbar-new .nav-link:focus,
.navbar-new .language-switch-container:focus,
.navbar-new .navbar-toggler:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* ====== 打印样式 ====== */
@media print {
    .navbar-new {
        position: static;
        background: #ffffff;
        box-shadow: none;
    }
} 