* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

:root {
    --primary: #1a56db;
    --primary-dark: #0e3aa5;
    --secondary: #1e293b;
    --accent: #f97316;
    --light: #f8fafc;
    --gray: #94a3b8;
    --dark: #0f172a;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
}

body {
    background-color: #f1f5f9;
    color: var(--dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 导航栏样式 */
.navbar {
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 5%;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 0;
}

/* Logo区域 */
.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.logo-text span {
    color: var(--primary);
}

/* 主导航菜单 */
.nav-links {
    display: flex;
    gap: 1.8rem;
    list-style: none;
}

.nav-links>li {
    position: relative;
}

.nav-links>li>a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 0.5rem 0.25rem;
    transition: color 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
}

.nav-links>li>a:hover {
    color: var(--primary);
}

.nav-links>li>a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links>li>a:hover::after,
.nav-links>li.active>a::after {
    width: 100%;
}

.nav-links>li.active>a {
    color: var(--primary);
}

/* 二级菜单样式 */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 220px;
    background: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    padding: 0.8rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.nav-links>li:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    padding: 0;
}

.submenu a {
    display: block;
    padding: 0.65rem 1.5rem;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.submenu a:hover {
    background: #f1f5f9;
    color: var(--primary);
    padding-left: 1.7rem;
}

.submenu-icon {
    margin-left: 0.5rem;
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.nav-links>li:hover .submenu-icon {
    transform: rotate(180deg);
}

/* 右侧操作区域 */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.contact-btn {
    padding: 0.65rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    background-color: var(--primary);
    color: white;
    border: 1px solid var(--primary);
}

.contact-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 86, 219, 0.25);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
    padding: 0.5rem;
}

/* 移动端菜单样式 */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1100;
    transition: right 0.4s ease;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    list-style: none;
}

.mobile-menu-links>li {
    position: relative;
}

.mobile-menu-links>li>a {
    display: block;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    transition: background-color 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-links>li>a:hover {
    background-color: #f1f5f9;
}

.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding-left: 1rem;
}

.mobile-submenu.active {
    max-height: 500px;
}

.mobile-submenu li a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    color: var(--secondary);
    font-weight: 500;
    transition: all 0.3s;
}

.mobile-submenu li a:hover {
    background-color: #e2e8f0;
    padding-left: 1.2rem;
}

.mobile-menu-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

.overlay.active {
    display: block;
}

/* 响应式设计 */
@media (max-width: 1100px) {
    .nav-links {
        gap: 1.2rem;
    }

    .search-box input {
        width: 150px;
    }
}

@media (max-width: 992px) {

    .nav-links,
    .nav-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 576px) {
    .logo-text {
        font-size: 1.25rem;
    }

    .mobile-menu {
        width: 250px;
    }

    .search-box {
        display: none;
    }
}