* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header Styles */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    max-width: 1800px;
    margin: 0 auto;
}

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

.logo-img {
    width: 220px;
    height: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3.2rem;
    align-items: center;
    margin-left: 300px;
}

.nav-links a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #1a73e8;
}

.whatsapp-btn {
    background: green;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.whatsapp-icon {
    font-size: 20px;
}

.whatsapp-btn:hover {
    background: green;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(66, 244, 78, 0.3);
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 95%;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    animation: pulse 2s infinite;
    transition: transform 0.9s ease;
}

.whatsapp-float:hover {
    transform: scale(1.2);
    background-color: #1ebe5d;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgb(246, 246, 246);
    }
}

/* Search */
.search-container {
    position: relative;
    width: 74%;
    margin-top: 120px;
    margin-left: 199px;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #a9a9a9;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

/* Main Container */
  .main-container {
      display: grid;
      gap: 2rem;
      max-width: 1600px;
      margin: 50px auto 2rem;
      padding: 0 2rem;
      min-height: calc(100vh - 10px);
}


/* Direct List View */ 
.list-view {
    display: flex;
    align-items: flex-start;  
    gap: 13px;
    
}

.sidebar-container {
    flex: 0 0 270px;        
    position: sticky;
    top: 100px;            
    align-self: flex-start;
    height: fit-content;    
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    background: #fff;
}






.leftsidebar-container {
    flex: 0 0 15rem;        
    position: sticky;
    top: 100px;            
    align-self: flex-start;
    height: fit-content;    
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    background: #fff;
}


.sidebar-box h3{ 
    color: #2c5aa0; 
    margin-bottom: 1rem; 
    font-size: 1.2rem; 
    font-weight: 600; 
    padding-bottom: 12px; 
    border-bottom: 2px solid #e0e0e0; 

} 

.series-item {    
    font-size: 14px;   
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    min-height: 30px;   
    padding: 0.7rem 0.5rem;        
}

.series-item span{
    font-size: 14px;
    font-weight: bold;
}
.dropdown-content p {
    font-size: 13px;
    margin-top: 20px;
    color: red;
}

.drop-content.open {
        max-height: 900px; /* IPTANT CHANGE DROP DOWN SPACE*/
        opacity: 1;
        padding: 0.3rem 0;
}

.drop-content a {
    text-decoration: none;
    padding: 0.5rem 0.8rem;
    color: #333;
    font-size: 11px;
    transition: background 0.3s;
    display: block;
}

.drop-content a:hover {
    background: #f0f0f0;
}

/* Category */ 

.category-item { 
    padding: 0.75rem 1rem; 
    margin-bottom: 0.5rem; 
    background: #f8f9fa; 
    border-radius: 6px; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    color: #333; 
    border: 1px solid transparent; 
} 

.category-item:hover { 
    background: #e9ecef; 
    border-color: #dee2e6; 
} 

.category-item.active { 
    background: #2c5aa0; 
    color: white; 
    border-color: #2c5aa0; 
} 

.category-item a { 
    text-decoration: none; 
    color: inherit; 
    display: block; 
    width: 100%; 
} 

.product-section { 
    display: none; 
} 
.product-section.active { 
    display: block; 
} 
.no-products-message { 
    text-align: center; 
    padding: 2rem; 
    color: #666; 
    font-style: italic; 
}

/* Content Area */
.content-area {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    flex: 1;
    max-width: 870px;
}

.content-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1rem;
}

.content-title {
    font-size: 1.8rem;
    color: #2c5aa0;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.content-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
}

/* Dropdown */
.dropdown-item {
    padding: 15px 20px;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    color: #333;
}

.dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.1s ease, padding 0.1s ease;
    padding: 0 20px;
    border-top: 1px solid #e9ecef;
    background: #ecf5fe;
}


.drop-item {
    padding: 15px 20px;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    color: #333;
}
.drop-content {
        background: #fff;
        border-top: 1px solid #e9ecef;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.1s ease, padding 0.1s ease;
        padding: 0 10px;
        opacity: 0;
}

.dropdown-content.open {
    max-height: 900px;
    padding: 10px;
}

.dropdown-content a {
    color: #2c5aa0;
    text-decoration: underline;
}

.drop-content a {
    text-decoration: none;
    padding: 0.5rem 0.8rem;
    color: #333;
    font-size: 14px;
    transition: background 0.3s;
    display: block;
}

.drop-content a:hover {
    background: #f0f0f0;
}


.dropdown-content ul {
    columns: 2;
    -webkit-columns: 2;
    -moz-columns: 2;
    column-gap: 40px;
    list-style: disc inside;
    margin: 0;
    padding: 0;
}

.dropdown-content li {
    font-size: 13px;
    white-space: nowrap;
}

/* Float Items */
.float_item {
    position: fixed;
    bottom: 130px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}

.whatsapp-float,
.floating-email-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.whatsapp-float {
    background-color: #25d366;
    color: white;
}

.floating-email-icon {
    background-color: #666;
    color: white;
}

.whatsapp-float:hover,
.floating-email-icon:hover {
    transform: scale(1.1);
}

/* Footer */
.footer {
    background: #fff;
    padding: 60px 40px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 110px;
    line-height: 1.8em;
    margin-right: 100px;
    padding: 0 10px;
    width: 100%;
}

.footer-column {
    min-width: 20px;
}

.footer-logo {
    width: 200px;
    margin-bottom: 20px;
}

.footer-text {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.social-icons i {
    font-size: 20px;
    margin-right: 15px;
    color: #357ae8;
    transition: color 0.3s;
}

.social-icons i:nth-child(2) {
    color: #e4405f;
}

.social-icons i:nth-child(3) {
    color: #1da1f2;
}

.social-icons i:nth-child(4) {
    color: #21759b;
}

.social-icons i:hover {
    opacity: 0.7;
}

.footer-column h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-column p {
    margin: 8px 0;
    font-size: 15px;
    line-height: 1.5;
}

.Iicon {
    color: #4285f4;
    margin-right: 10px;
}

.footer-links {
    display: grid;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 5px;
}

.footer-links a {
    text-decoration: none;
    color: inherit;
    transition: color 0.1s ease;
}

.footer-links li {
    margin-bottom: 10px;
    font-size: 15px;
    cursor: pointer;
    transition: color 0.3s;
}

.footer-links li:hover {
    color: #1a73e8;
}

.footer-hours {
    text-align: center;
    margin-top: 40px;
}

.footer-hours h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
}

.footer-hours h3::after {
    content: '';
    display: block;
    height: 2px;
    width: 50px;
    background-color: #1a73e8;
    margin: 8px auto 0;
}

/* Responsive */
@media (max-width: 768px) {
    .list-view {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .search-container {
        width: 90%;
        margin-left: 5%;
    }
    .nav-links {
        margin-left: 0;
        gap: 1rem;
    }
    .footer-container {
        flex-direction: column;
        gap: 30px;
    }
}

/* Mega Dropdown */
.nav-links li {
    position: relative;
}

.home-link::after {
    content: '\f0d7';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 0.5rem;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.nav-links li:hover .home-link::after {
    transform: rotate(180deg);
}

.mega-dropdown {
    position: absolute;
    top: 170%;
    left: 380%;
    transform: translateX(-50%);
    background: white;
    width: 95vw;
    max-width: 1200px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%) translateY(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    overflow: hidden;
    z-index: 1000;
}

.nav-links li:hover .mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-dropdown-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 300px;
    gap: 2rem;
    padding: 2.5rem;
}

.dropdown-column h3 {
    color: #1e3c72;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.5rem;
}

.dropdown-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #1e3c72, #2a5298);
    border-radius: 2px;
}

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

.dropdown-links li {
    margin-bottom: 0.75rem;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLeft 0.3s ease forwards;
}

.dropdown-links li:nth-child(1) {
    animation-delay: 0.1s;
}
.dropdown-links li:nth-child(2) {
    animation-delay: 0.15s;
}
.dropdown-links li:nth-child(3) {
    animation-delay: 0.2s;
}
.dropdown-links li:nth-child(4) {
    animation-delay: 0.25s;
}
.dropdown-links li:nth-child(5) {
    animation-delay: 0.3s;
}

.dropdown-links a {
    color: #555;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.dropdown-links a:hover {
    background: linear-gradient(135deg, #f0f8ff, #e6f3ff);
    color: #1e3c72;
    transform: translateX(5px);
    padding-left: 1rem;
}

.dropdown-links i {
    margin-right: 0.75rem;
    width: 18px;
    color: #000000;
    font-size: 0.9rem;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Featured Section */
.featured-section {
    background-color: #f2f2f2;
    border-radius: 12px;
    padding: 1.5rem;
}

.featured-section h3 {
    color: #1e3c72;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.featured-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.featured-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.featured-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 1rem;
}

.featured-info h4 {
    color: #1e3c72;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.featured-info p {
    color: #666;
    font-size: 0.8rem;
}

.view-all-btn {
    display: inline-block;
    background-color: rgba(0, 123, 254, 0.934);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 27px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.view-all-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #346ccd);
}

.view-all-btn i {
    color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .mega-dropdown-content {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .mega-dropdown {
        width: 95vw;
        left: 2.5vw;
        transform: none;
    }
    .mega-dropdown-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem;
    }
    .nav-links li:hover .mega-dropdown {
        transform: translateY(0);
    }
}

/* Search not found */
    .no-results {
        text-align: center;
        padding: 40px;
        color: #666;
    }

    /* sub drop */

    .sub-dropdown {
                margin: 0;
            }
            .sub-drop-item {
                display: flex;
                justify-content: space-between;
                align-items: center;
                background: #ffffff;
                cursor: pointer;
                transition: all 0.3s ease;
                border-bottom: 1px solid #f0f0f0;
                user-select: none;
                padding: 0.1rem 0.8rem;  /* 增加垂直padding */
            }

            .sub-drop-item span {
                font-size: 15px; 
            }

            .sub-drop-item:hover {
                background: #f8f9fa;
                padding-left: 1rem;
            }

            .sub-drop-item:active {
                background: #e9ecef;
            }

            .sub-drop-item i {
                font-size: 10px;
                transition: transform 0.3s ease;
            }

            .sub-drop-content {
                background: #f8f9fa;
                border-left: 3px solid #2c5aa0;
                max-height: 0;
                overflow: hidden;
                transition: max-height 0.3s ease, padding 0.3s ease;
                margin-left: 10px;
            }

            .sub-drop-content.open {
                max-height: 1000px;
                padding: 0.2rem 0;
            }

            .sub-drop-content a {
                display: block;
                padding: 0.4rem 1rem;
                color: #555;
                font-size: 14px;
                text-decoration: none;
                transition: all 0.3s ease;
                border-left: 2px solid transparent;
            }

            .sub-drop-content a:hover {
                background: #e9ecef;
                color: #2c5aa0;
                border-left-color: #ffffff;
                padding-left: 1.2rem;
            }

            .series-item i {
                margin-left: auto;
                font-size: 12px;
            }
            .second-sub {
                background: #fff;
                border-top: 1px solid #e9ecef;
                max-height: 0;
                overflow: hidden;
                transition: max-height 0.1s ease, padding 0.1s ease;
                padding: 0 10px;
                opacity: 0;


            }

            /* 二级下拉菜单样式 */
    .second-drop {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #ffffff;
        cursor: pointer;
        transition: all 0.3s ease;
        border-bottom: 1px solid #f0f0f0;
        user-select: none;
        padding: 0.6rem 0.8rem;
    }

    .second-drop:hover {
        background: #f8f9fa;
        padding-left: 1rem;
    }

    .second-drop span {
        font-size: 13px;
        font-weight: 600;
        margin-left: 10px;
    }

    .second-drop i {
        font-size: 12px;
        transition: transform 0.3s ease;
    }

    /* 二级下拉内容 */
    .second-sub {
        background: #f8f9fa;

        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        opacity: 0;
        margin-left: 10px;
    }

    .second-sub.open {
        max-height: 1000px;
        opacity: 1;
        padding: 0.3rem 0;
    }

    /* 确保子下拉菜单正常工作 */
    .second-sub .sub-dropdown {
        margin: 0;
    }

    .second-sub .sub-drop-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #ffffff;
        cursor: pointer;
        transition: all 0.3s ease;
        border-bottom: 1px solid #f0f0f0;
        user-select: none;
        padding: 0.5rem 0.8rem;
    }

    .second-sub .sub-drop-item:hover {
        background: #f8f9fa;
        padding-left: 1rem;
    }

    .second-sub .sub-drop-item span {
        font-size: 13px;
    }

    .second-sub .sub-drop-item i {
        font-size: 10px;
        transition: transform 0.3s ease;
    }

    .second-sub .sub-drop-content {
        background: #ffffff;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        margin-left: 15px;
    }

    .second-sub .sub-drop-content.open {
        max-height: 1000px;
        padding: 0.2rem 0;
    }

    .second-sub .sub-drop-content a {
        display: block;
        padding: 0.4rem 1rem;
        color: #555;
        font-size: 12px;
        text-decoration: none;
        transition: all 0.3s ease;
        border-left: 2px solid transparent;
    }

    .dropdown-content a{
        font-size: 15px;
        padding-top: 20px;
    }

    .menu-toggle {
        display: none;
        background: none;
        border: none;
        font-size: 1.8rem;
        cursor: pointer;
        color: #333;
        padding: 5px;
    }

    @media (max-width: 768px) {
        .menu-toggle {
        display: block;
        z-index: 1400;
        padding: 5px;
        font-size: 24px;
    }

    nav {
        flex-wrap: wrap;
        padding: 8px 10px;
    }

    .logo {
        width: 100%;
        justify-content: space-between;
    }

    .logo-img {
        width: 120px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: white;
        width: 100%;
        gap: 1rem;
        padding: 20px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #ddd;
        margin-left: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        padding: 10px 0;
        border-bottom: 1px solid #eee;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .whatsapp-btn {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }

    .nav-links a {
        display: block;
        width: 100%;
    }

    .mega-dropdown {
        display: none !important;
    }

    .home-link::after {
        display: none;
    }
}


    /* Mobile Responsive Styles - 产品列表页手机端适配 */

/* 手机端 (≤768px) */
@media (max-width: 768px) {
    
    /* 搜索容器 */
    .search-container {
        width: 90%;
        margin-top: 130px;
        margin-left: 5%;
    }

    .dropdown-content.open {
    max-height: 1000px;
    padding: 10px;
}

    .search-input {
        padding: 0.6rem 0.8rem 0.6rem 2.2rem;
        font-size: 0.9rem;
    }

    .search-icon {
        left: 0.6rem;
        font-size: 1rem;
    }

    /* 主容器 */
    .main-container {
        padding: 0 1rem;
        margin: 30px auto 1rem;
        gap: 1rem;
    }

    /* 列表视图 - 改为垂直布局 */
    .list-view {
        flex-direction: column;
        gap: 1rem;
    }

    /* 侧边栏容器 */
    .sidebar-container {
        flex: 1 1 auto;
        position: relative;
        top: 0;
        width: 100%;
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .leftsidebar-container {
        flex: 1 1 auto;
        position: relative;
        top: 0;
        width: 100%;
        padding: 1rem;
        margin-bottom: 1rem;
    }

    /* 侧边栏标题 */
    .sidebar-box h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.75rem;
    }

    /* 系列项 */
    .series-item {
        font-size: 13px;
        padding: 0.6rem 0.4rem;
        min-height: 28px;
    }

    .series-item span {
        font-size: 13px;
    }

    /* 下拉内容 */
    .dropdown-content p {
        font-size: 12px;
        margin-top: 15px;
    }

    .drop-content a {
        font-size: 13px;
        padding: 0.4rem 0.6rem;
    }

    .dropdown-content ul {
        columns: 1;
        -webkit-columns: 1;
        -moz-columns: 1;
    }

    .dropdown-content li {
        font-size: 10px;
        white-space: normal;
    }

    .dropdown-content a {
        font-size: 14px;
        padding-top: 15px;
    }

    /* 分类项 */
    .category-item {
        padding: 0.6rem 0.8rem;
        margin-bottom: 0.4rem;
        font-size: 0.9rem;
    }

    /* 内容区域 */
    .content-area {
        padding: 1.25rem;
        max-width: 100%;
        width: 100%;
    }

    .content-header {
        margin-bottom: 1.25rem;
        padding-bottom: 0.75rem;
    }

    .content-title {
        font-size: 1.4rem;
    }

    .content-description {
        font-size: 0.9rem;
    }

    /* 下拉项 */
    .dropdown-item,
    .drop-item {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .dropdown-content,
    .drop-content {
        padding: 0 15px;
    }

    /* 二级下拉 */
    .sub-drop-item {
        padding: 0.5rem 0.6rem;
    }

    .sub-drop-item span {
        font-size: 14px;
    }

    .sub-drop-item i {
        font-size: 9px;
    }

    .sub-drop-content a {
        padding: 0.35rem 0.8rem;
        font-size: 13px;
    }

    /* 二级下拉菜单 */
    .second-drop {
        padding: 0.5rem 0.6rem;
    }

    .second-drop span {
        font-size: 12px;
        margin-left: 8px;
    }

    .second-drop i {
        font-size: 11px;
    }

    .second-sub {
        margin-left: 8px;
    }

    .second-sub .sub-drop-item {
        padding: 0.4rem 0.6rem;
    }

    .second-sub .sub-drop-item span {
        font-size: 12px;
    }

    .second-sub .sub-drop-content {
        margin-left: 12px;
    }

    .second-sub .sub-drop-content a {
        font-size: 11px;
        padding: 0.35rem 0.8rem;
    }

    /* 浮动元素 */
    .float_item {
        bottom: 20px;
        left: 15px;
        gap: 8px;
    }

    .whatsapp-float,
    .floating-email-icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }

    /* 页脚 */
    .footer {
        padding: 40px 20px;
    }

    .footer-container {
        flex-direction: column;
        gap: 30px;
        margin-right: 0;
        align-items: center;
        text-align: center;
    }

    .footer-column {
        width: 100%;
        min-width: 100%;
    }

    .footer-logo {
        width: 150px;
        margin: 0 auto 15px;
    }

    .footer-text {
        font-size: 14px;
    }

    .social-icons i {
        font-size: 18px;
        margin-right: 12px;
    }

    .footer-column h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .footer-column p {
        font-size: 14px;
    }

    .Iicon {
        margin-right: 8px;
    }

    .footer-links li {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .footer-hours {
        margin-top: 30px;
    }

    .footer-hours h3 {
        font-size: 16px;
    }

    /* 无结果提示 */
    .no-results {
        padding: 30px 15px;
        font-size: 0.9rem;
    }

    /* View All 按钮 */
    .view-all-btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.85rem;
    }

    /* Featured Item */
    .featured-item {
        padding: 0.6rem;
    }

    .featured-item img {
        width: 45px;
        height: 45px;
        margin-right: 0.8rem;
    }

    .featured-info h4 {
        font-size: 0.85rem;
    }

    .featured-info p {
        font-size: 0.75rem;
    }

    .featured-section {
        padding: 1.25rem;
    }

    .featured-section h3 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
}

/* 超小屏幕 (≤375px) */
@media (max-width: 375px) {
    .search-container {
        width: 95%;
        margin-left: 2.5%;
        margin-top: 85px;
    }

    .search-input {
        padding: 0.5rem 0.6rem 0.5rem 2rem;
        font-size: 0.85rem;
    }

    .main-container {
        padding: 0 0.75rem;
    }

    .sidebar-container,
    .leftsidebar-container {
        padding: 0.75rem;
    }

    .content-area {
        padding: 1rem;
    }

    .content-title {
        font-size: 1.25rem;
    }

    .content-description {
        font-size: 0.85rem;
    }

    .series-item {
        font-size: 12px;
        padding: 0.5rem 0.3rem;
    }

    .series-item span {
        font-size: 12px;
    }

    .drop-content a {
        font-size: 12px;
    }

    .whatsapp-float,
    .floating-email-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .footer {
        padding: 30px 15px;
    }

    .footer-logo {
        width: 130px;
    }

    .footer-text,
    .footer-column p,
    .footer-links li {
        font-size: 13px;
    }
}

/* 平板竖屏 (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .search-container {
        width: 85%;
        margin-left: 7.5%;
        margin-top: 100px;
    }

    .main-container {
        padding: 0 1.5rem;
        max-width: 1200px;
    }

    .sidebar-container {
        flex: 0 0 240px;
    }

    .leftsidebar-container {
        flex: 0 0 13rem;
    }

    .content-area {
        max-width: 700px;
    }

    .footer-container {
        gap: 60px;
        margin-right: 40px;
    }
}

/* 大平板横屏 (1025px - 1280px) */
@media (min-width: 1025px) and (max-width: 1280px) {
    .search-container {
        width: 80%;
        margin-left: 10%;
    }

    .main-container {
        max-width: 1400px;
    }

    .sidebar-container {
        flex: 0 0 260px;
    }

    .content-area {
        max-width: 800px;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    /* 增大可点击区域 */
    .dropdown-item,
    .drop-item,
    .sub-drop-item,
    .second-drop,
    .category-item {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* 优化下拉箭头 */
    .series-item i,
    .sub-drop-item i,
    .second-drop i {
        padding: 8px;
    }

    /* 增大链接点击区域 */
    .drop-content a,
    .sub-drop-content a,
    .dropdown-content a {
        min-height: 40px;
        display: flex;
        align-items: center;
    }
}

/* 横屏手机优化 */
@media (max-width: 768px) and (orientation: landscape) {
    .main-container {
        margin-top: 20px;
    }

    .search-container {
        margin-top: 80px;
    }

    .sidebar-container,
    .leftsidebar-container {
        max-height: 60vh;
        overflow-y: auto;
    }

    .content-area {
        max-height: 60vh;
        overflow-y: auto;
    }
}

/* 防止iOS缩放 */
@media (max-width: 768px) {
    input[type="text"],
    input[type="search"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* 滚动条优化 (仅移动端) */
@media (max-width: 768px) {
    .sidebar-container::-webkit-scrollbar,
    .leftsidebar-container::-webkit-scrollbar,
    .content-area::-webkit-scrollbar {
        width: 4px;
    }

    .sidebar-container::-webkit-scrollbar-thumb,
    .leftsidebar-container::-webkit-scrollbar-thumb,
    .content-area::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 2px;
    }
}
