﻿/* Block 1 from front-page.php */
/* 首页产品分类导航样式 - PC端保持原样 */
.home-category-nav-section {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0;
    position: relative;
    z-index: 100;
}

.home-category-nav {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.home-cat-item {
    position: relative;
    flex-shrink: 0;
}

.home-cat-parent {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 20px;
    color: #1e293b;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}

.home-cat-parent:hover {
    color: #2563eb;
    background: #f8fafc;
    border-bottom-color: #2563eb;
}

.home-cat-parent svg {
    transition: transform 0.2s;
}

.home-cat-item:hover .home-cat-parent svg {
    transform: rotate(180deg);
}

/* 二级分类下拉菜单 */
.home-cat-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    z-index: 1000;
}

.home-cat-item:hover .home-cat-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.home-cat-child {
    display: block;
    padding: 10px 20px;
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.15s;
    white-space: nowrap;
}

.home-cat-child:hover {
    background: #f1f5f9;
    color: #2563eb;
    padding-left: 28px;
}