/* ===== 顶部联系栏 ===== */
.top-bar {
    background: linear-gradient(135deg, var(--dark) 0%, #2d3748 100%);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.contact-info {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.contact-info span:hover {
    color: var(--secondary);
    transform: translateY(-1px);
}

.contact-info i {
    color: var(--secondary);
    font-size: 0.9rem;
}

.quick-contact {
    display: flex;
    gap: 20px;
    align-items: center;
}

.quick-contact a {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
}

.quick-contact a:hover {
    color: var(--secondary);
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

/* ===== 新版导航栏样式 ===== */
header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--gray-light);
}

.header-scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-lg);
}

.navbar {
    padding: 15px 0;
}

/* 导航顶部：Logo + 右侧按钮 */
.nav-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

/* Logo样式 */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-image {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* 导航顶部右侧 */
.nav-top-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 导航底部菜单 */
.nav-bottom {
    display: flex;
    justify-content: center;
}

.nav-links ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: block;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.nav-links a:hover {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
    transform: translateY(-1px);
}

.nav-links a.active {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
    font-weight: 600;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 80%;
}

/* 语言切换按钮 */
.language-toggle button {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.language-toggle button:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

/* 咨询按钮 */
.consult-btn {
    background: linear-gradient(135deg, var(--secondary), #0ca678);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
    box-shadow: var(--shadow);
}

.consult-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #0ca678, var(--secondary));
}

/* 移动端菜单按钮 */
.mobile-menu {
    display: none;
    background: none;
    border: none;
    color: var(--dark);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    z-index: 1001;
}

.mobile-menu:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* ===== 页脚样式 ===== */
footer {
    background: linear-gradient(135deg, var(--dark) 0%, #2d3748 100%);
    color: var(--white);
    padding: 70px 0 20px;
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo h2 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.footer-logo span {
    color: var(--secondary);
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-links h3,
.footer-social h3,
.footer-contact h3 {
    margin-bottom: 20px;
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 4px 0;
}

.footer-links a:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1.2rem;
}

.social-icons a:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.footer-contact p {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    line-height: 1.5;
}

.footer-contact p i {
    margin-right: 12px;
    color: var(--secondary);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .top-bar {
        padding: 12px 0;
    }
    
    .top-bar-content {
        flex-direction: column;
        gap: 12px;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    
    .quick-contact {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    
    /* 移动端导航栏 */
    .navbar {
        padding: 10px 0;
    }
    
    .nav-top {
        margin-bottom: 0;
    }
    
    .logo-image {
        height: 40px;
    }
    
    .nav-top-right {
        gap: 10px;
    }
    
    .language-toggle button,
    .consult-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    /* 移动端菜单 */
    .mobile-menu {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-bottom {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        transition: all 0.3s ease;
        z-index: 1000;
        padding: 80px 20px 20px;
        overflow-y: auto;
        flex-direction: column;
    }
    
    .nav-bottom.active {
        left: 0;
    }
    
    .nav-links ul {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-links li {
        margin: 0;
    }
    
    .nav-links a {
        padding: 15px 20px;
        border-radius: 8px;
        margin: 4px 0;
        border: none;
        font-size: 1rem;
    }
    
    /* 移动端隐藏咨询按钮 */
    .nav-top-right .consult-btn {
        display: none;
    }
    
    /* 页脚响应式 */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .footer-contact p {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .logo-image {
        height: 35px;
    }
    
    .nav-top-right {
        gap: 8px;
    }
    
    .language-toggle button,
    .consult-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .mobile-menu {
        padding: 6px;
        font-size: 1.3rem;
    }
}