/* Desktop Navigation Styles */
.desktop-navbar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
}

.desktop-dropdown-menu,
.desktop-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
    border-radius: .5rem;
    border: 1px solid #e5e7eb;
    z-index: 50;
    min-width: 220px;
    max-width: 300px;
    padding: 0.25rem 0;
}

.desktop-submenu {
    top: 0;
    left: 100%;
    margin-left: .25rem;
    border: none;
    box-shadow: 0 4px 12px -2px rgba(0,0,0,0.08);
}

.desktop-has-dropdown:hover .desktop-dropdown-menu,
.desktop-has-dropdown:hover .desktop-submenu,
.desktop-dropdown-menu[open],
.desktop-submenu[open] {
    display: block;
}

.desktop-dropdown-item,
.desktop-submenu .desktop-dropdown-item {
    padding: 0.35rem 1rem;
    line-height: 1.3;
    font-size: 15px;
    white-space: normal;
    box-sizing: border-box;
}

.desktop-dropdown-item:hover {
    background-color: #f3f4f6;
    color: #22c55e;
    text-decoration: none;
}

.desktop-submenu-trigger {
    position: relative;
}

.desktop-submenu-trigger::after {
    content: '›';
    position: absolute;
    right: .5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    color: #6b7280;
}

.desktop-has-dropdown:hover .desktop-dropdown-menu,
.desktop-has-dropdown:hover .desktop-submenu {
    display: block !important;
}

.desktop-menu-horizontal {
    display: flex;
    align-items: center;
    gap: .5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.desktop-menu-horizontal > li {
    position: relative;
}

.desktop-nav-link {
    display: flex;
    align-items: center;
    padding: .5rem 1rem;
    color: #222;
    text-decoration: none;
    font-weight: 500;
    transition: color .2s ease;
}

.desktop-nav-link:hover {
    color: #22c55e;
    text-decoration: none;
}

.desktop-dropdown-menu {
    z-index: 1000;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px -2px rgba(0,0,0,0.08);
}

.desktop-submenu {
    z-index: 1001;
}

.desktop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.desktop-btn-primary {
    background-color: #22c55e !important;
    color: #fff !important;
}

.desktop-btn-primary:hover {
    background-color: #16a34a !important;
    color: #fff !important;
}

.desktop-btn-ghost {
    background-color: transparent;
    color: #374151;
}

.desktop-btn-ghost:hover {
    background-color: #f3f4f6;
}

.desktop-btn-circle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    padding: 0;
}

.desktop-dropdown-menu {
    min-width: 220px;
    max-width: 300px;
    padding: 0.15rem 0;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 16px -2px rgba(0,0,0,0.08);
}

.desktop-submenu {
    display: table;
    max-width: 320px;
    min-width: 140px;
    padding: 0.15rem 0;
    border: none;
    border-radius: 0;
    margin-left: 8px;
    box-shadow: 0 2px 8px -2px rgba(0,0,0,0.06);
}

.desktop-dropdown-item,
.desktop-submenu .desktop-dropdown-item {
    padding: 0.25rem 1rem;
    line-height: 1.3;
    font-size: 15px;
    white-space: normal;
    box-sizing: border-box;
    min-height: 32px;
    border-bottom: 1px solid #f0f0f0;
    background: none;
    transition: background 0.18s, color 0.18s;
}

.desktop-dropdown-item:last-child,
.desktop-submenu .desktop-dropdown-item:last-child {
    border-bottom: none;
}

.desktop-dropdown-item:hover,
.desktop-submenu .desktop-dropdown-item:hover {
    background-color: #f5f7fa;
    color: #22c55e;
    text-decoration: none;
}

.desktop-dropdown-menu ul,
.desktop-submenu ul {
    padding: 0;
    margin: 0;
}

.desktop-submenu .desktop-dropdown-item {
    display: table-row;
    white-space: nowrap;
    box-sizing: border-box;
    padding: 0.25rem 0.75rem;
}

/* 纯CSS多级菜单 - 仅电脑端 */
@media (min-width: 769px) {
  .desktop-menu-horizontal {
    display: flex;
    align-items: center;
    gap: .5rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .desktop-menu-horizontal > li {
    position: relative;
  }
  .desktop-nav-link {
    display: flex;
    align-items: center;
    padding: .5rem 1rem;
    color: #222;
    text-decoration: none;
    font-weight: 500;
    transition: color .2s ease;
    background: none;
  }
  .desktop-nav-link:hover,
  .desktop-menu-horizontal > li:hover > .desktop-nav-link {
    color: #22c55e;
    text-decoration: none;
  }
  .group {
    position: relative;
  }
  .group > .dropdown-menu,
  .group ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    z-index: 100;
    border-radius: 0.5rem;
    padding: 0.25rem 0;
    animation: fadeIn 0.2s ease-out;
  }
  .group:hover > .dropdown-menu,
  .group:focus-within > .dropdown-menu,
  .group ul li:hover > ul,
  .group ul li:focus-within > ul {
    display: block;
  }
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px);}
    to   { opacity: 1; transform: translateY(0);}
  }
  .dropdown-item {
    display: block;
    padding: 0.35rem 1.25rem;
    min-height: 32px;
    font-size: 15px;
    color: #222;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    background: none;
    white-space: nowrap;
    transition: background 0.18s, color 0.18s;
    box-sizing: border-box;
  }
  .dropdown-item:last-child {
    border-bottom: none;
  }
  .dropdown-item:hover,
  .dropdown-menu .dropdown-item:focus {
    background: #f5f7fa;
    color: #22c55e;
    text-decoration: none;
    outline: none;
  }
  .submenu {
    position: absolute !important;
    top: 0 !important;
    left: 100% !important;
    margin-left: 0.25rem !important;
    border-radius: 0.5rem;
    min-width: 180px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    padding: 0.25rem 0;
    animation: fadeIn 0.2s ease-out;
    z-index: 101;
  }
}

/* Desktop specific responsive */
@media (max-width: 768px) {
    .desktop-header {
        display: none !important;
    }
} 

@media (min-width: 769px) {
  .group {
    position: relative !important;
  }
} 

.desktop-btn-quote {
    background-color: #22c55e !important;
    color: #fff !important;
    border: none;
}

.desktop-btn-quote:hover {
    background-color: #16a34a !important;
    color: #fff !important;
} 