/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4ECDC4;
    --primary-dark: #3dbdb5;
    --secondary-color: #FFD93D;
    --text-dark: #333333;
    --text-light: #666666;
    --text-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-green: #4ECDC4;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

img {
    width: 100%;
    height: auto;
    max-width: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #ffffff;
    box-shadow: var(--shadow);
}

.header-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

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

.logo img {
    height: 35px;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-item {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-item:hover,
.nav-item.active {
    color: var(--primary-color);
}

/* Dropdown Menu - 优化版 */
.dropdown-menu {
    position: relative;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.dropdown-trigger:hover {
    background-color: rgba(78, 205, 196, 0.1);
}

.dropdown-arrow {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-menu.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* 下拉内容容器 */
.dropdown-content {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    display: flex;
    background-color: #ffffff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    min-width: 720px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top left;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.dropdown-menu.active .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* 三级菜单层级 */
.dropdown-level {
    flex: 1;
    padding: 0;
    border-right: 1px solid var(--border-color);
    min-width: 240px;
    max-height: 420px;
    overflow-y: auto;
}

.dropdown-level:last-child {
    border-right: none;
}

/* 自定义滚动条 */
.dropdown-level::-webkit-scrollbar {
    width: 4px;
}

.dropdown-level::-webkit-scrollbar-track {
    background: transparent;
}

.dropdown-level::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.dropdown-level::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

/* 菜单头部 */
.dropdown-header {
    padding: 14px 18px;
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.08) 0%, rgba(78, 205, 196, 0.02) 100%);
    border-bottom: 1px solid rgba(78, 205, 196, 0.15);
    position: sticky;
    top: 0;
    z-index: 1;
}

.dropdown-header svg {
    opacity: 0.7;
}

/* 菜单列表 */
.dropdown-list {
    padding: 6px 0;
}

/* 一级和二级菜单项 */
.dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 18px;
    font-size: 13px;
    color: var(--text-dark);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
    margin: 2px 6px;
    border-radius: 6px;
    position: relative;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background-color: var(--primary-color);
    transition: height 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(78, 205, 196, 0.12);
    color: var(--primary-color);
}

.dropdown-item:hover::before {
    height: 60%;
}

.dropdown-item.active {
    background-color: rgba(78, 205, 196, 0.12);
    color: var(--primary-color);
}

.dropdown-item.active::before {
    height: 60%;
}

.dropdown-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
}

.item-arrow {
    flex-shrink: 0;
    margin-left: 8px;
    opacity: 0.4;
    transition: all 0.2s ease;
}

.dropdown-item:hover .item-arrow,
.dropdown-item.active .item-arrow {
    opacity: 1;
    transform: translateX(2px);
}

.dropdown-item.active .item-arrow path {
    stroke: var(--primary-color);
}

/* 三级菜单项 - 简化版 */
.dropdown-item-simple {
    display: block;
    padding: 11px 18px;
    font-size: 13px;
    color: var(--text-dark);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
    margin: 2px 6px;
    border-radius: 6px;
    line-height: 1.5;
    position: relative;
}

.dropdown-item-simple::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background-color: var(--primary-color);
    border-radius: 0 2px 2px 0;
    transition: height 0.2s ease;
}

.dropdown-item-simple:hover {
    background-color: rgba(78, 205, 196, 0.08);
    color: var(--primary-color);
}

.dropdown-item-simple:hover::before {
    height: 40%;
}

/* Search Box */
.header-right {
    display: flex;
    align-items: center;
}

.search-box {
    display: flex;
    align-items: center;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    overflow: hidden;
    height: 40px;
}

.search-input {
    width: 180px;
    height: 100%;
    border: none;
    outline: none;
    padding: 0 15px;
    font-size: 14px;
    color: var(--text-dark);
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 100%;
    padding: 0 18px;
    background-color: var(--primary-color);
    border: none;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background-color: var(--primary-dark);
}

/* Section Common Styles */
.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.section-title.center {
    text-align: center;
}

.section-title.white {
    color: white;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
}

.section-subtitle.green {
    color: var(--primary-color);
    font-weight: 500;
}

/* Products Section */
.products-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    width: 250px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-img {
    width: 250px;
    height: 250px;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-name {
    padding: 15px;
    text-align: center;
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
}

/* Advantages Section */
.advantages-section {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.advantages-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.advantages-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.advantages-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: rgba(0, 0, 0, 0.6); */
}

.advantages-section .container {
    position: relative;
    z-index: 2;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto 30px;
}

.advantage-card.horizontal {
    display: flex;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    height: 120px;
}

.advantage-card.horizontal:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.advantage-card.horizontal .advantage-img {
    width: 180px;
    height: 100%;
    flex-shrink: 0;
    overflow: hidden;
}

.advantage-card.horizontal .advantage-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.advantage-card.horizontal .advantage-content {
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.advantage-title {
    margin-bottom: 30px;
}

.advantage-content h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.advantage-content p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Stats Section */
.stats-section {
    background: linear-gradient( 90deg, #2FAE94 0%, #48DABC 100%), #3ABDA2;
    padding: 50px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    opacity: 0.9;
}

/* Footer */
.footer {
    background-color: #EEEFF0;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 30px;
}

.footer-title {
    margin-bottom: 20px;
    font-family: SF Pro Text, SF Pro Text;
    font-weight: bold;
    font-size: 20px;
    color: #333333;
    line-height: 24px;
    text-align: left;
    font-style: normal;
    text-transform: none;
    padding-bottom: 20px;
    border-bottom: 1px solid #E0E1E4;
}

.contact-label,
.social-label {
    margin-bottom: 15px;
    font-family: SF Pro Text, SF Pro Text;
    font-weight: bold;
    font-size: 16px;
    color: #333333;
    line-height: 22px;
    text-align: left;
    font-style: normal;
    text-transform: none;
    
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
}
.contact-item span {
    font-family: SF Pro Text, SF Pro Text;
    font-weight: 500;
    font-size: 16px;
    color: #666666;
    line-height: 22px;
    text-align: left;
    font-style: normal;
    text-transform: none;
}

.icon {
    width: 20px;
    height: 20px;
}

.social-links {
    margin-top: 20px;
}

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

.social-icon-link {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.social-icon-link:hover {
    background-color: var(--primary-dark);
}

.social-icon {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.address {
    font-family: SF Pro Text, SF Pro Text;
    font-weight: 400;
    font-size: 16px;
    color: #666666;
    line-height: 22px;
    text-align: left;
    font-style: normal;
    text-transform: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #D8D8D8;
    font-size: 12px;
    color: #95a5a6;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

.home-style-image {
    width: 100%;
    height: 1408px;
}

.footer-fixed {
    width: 360px;
    height: 230px;
    position: fixed;
    bottom: 12px;
    right: 12px;
    z-index: 999;
}
.home-style-image-mobile {
    display: none;
}
.header-h5 {
    display: none;
}
.products-section-dispaly-PC {
    display: block;
}
.products-section-dispaly-Phone {
    display: none;
}

/* Mobile Sidebar Styles */
.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.mobile-sidebar-overlay.active {
    display: block;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 360px;
    height: 100%;
    background: #e8f6f3;
    z-index: 1000;
    transition: left 0.3s ease;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.mobile-sidebar.active {
    left: 0;
}

.mobile-sidebar-header {
    padding: 12px 16px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background: #DEF4EF;
}

.mobile-sidebar-close {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 28px;
    color: #666;
    line-height: 1;
}

.mobile-sidebar-logo-placeholder {
    width: 40px;
    height: 40px;
    border: 2px dashed #ccc;
    border-radius: 4px;
}

.mobile-sidebar-more {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 22px;
    color: #666;
    line-height: 1;
}

/* Right side buttons */
.mobile-sidebar-right-btns {
    position: absolute;
    top: 50px;
    right: -28px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-sidebar-close-btn,
.mobile-sidebar-search-btn {
    width: 26px;
    height: 26px;
    border: none;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #666;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.mobile-sidebar-content {
    flex: 1;
    overflow-y: auto;
}

.mobile-category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
    background: #DEF4EF;
    font-size: 15px;
    color: #444;
    border-bottom: 1px solid #d4ede8;
}

.mobile-category-item.has-submenu {
    position: relative;
}

.cat-arrow {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.mobile-category-item.has-submenu.active .cat-arrow {
    transform: rotate(180deg);
}

.mobile-submenu {
    display: none;
    background: #fff;
}

.mobile-submenu.active {
    display: block;
}

.mobile-category-item.sub-item {
    padding: 12px 16px;
    padding-left: 16px;
    background: #EDF7F5;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-category-item.sub-sub-item {
    padding: 10px 16px;
    padding-left: 24px;
    background: #EDF7F5;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-category-item.sub-sub-sub-item {
    padding: 10px 16px;
    padding-left: 48px;
    background: #f5f5f5;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f0;
}

/* Responsive styles */
@media (max-width: 768px) {
    .header-h5 {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 10px 15px;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        position: sticky;
        top: 0;
        z-index: 1000;
    }
    
    .header-h5-icon {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }
    
    .header-h5-icon img {
        width: 24px;
        height: 24px;
    }
    
    .header-h5-logo {
        flex: 1;
        text-align: center;
    }
    
    .header-h5-logo img {
        height: 30px;
        width: auto;
    }

    /* 产品网格 - 手机端全自适应 */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 0 10px;
    }

    .product-card {
        width: 100% !important;
        max-width: none !important;
    }

    .product-img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1;
    }

    .product-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .product-name {
        padding: 10px 8px;
        font-size: 13px;
    }

    /* 首页大图 */
    .home-style-image-mobile {
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .home-style-image-mobile img {
        width: 100%;
        height: auto;
        display: block;
    }

    /* PC/Phone 切换图片通用适配 */
    .products-section-dispaly-Phone img {
        width: 100% !important;
        height: auto !important;
    }

    /* 容器内边距 */
    .container {
        padding: 0 15px;
    }

    /* section 标题 */
    .section-title {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .section-subtitle {
        font-size: 13px;
        margin-bottom: 25px;
    }

    /* 优势区块 */
    .advantages-section {
        padding: 35px 0;
    }

    .advantages-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
        max-width: 100%;
    }

    .advantage-card.horizontal {
        height: auto;
        flex-direction: column;
    }

    .advantage-card.horizontal .advantage-img {
        width: 100%;
        height: 140px;
    }

    .advantage-title {
        margin-bottom: 18px;
        font-size: 20px;
    }

    .advantage-content h3 {
        font-size: 15px;
    }

    .advantage-content p {
        font-size: 12px;
    }

    /* 统计数据 */
    .stats-section {
        padding: 30px 0;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px;
    }

    .stat-number {
        font-size: 20px;
    }

    .stat-label {
        font-size: 11px;
    }

    /* 页脚 */
    .footer {
        padding: 30px 0 15px;
    }

    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 20px;
        margin-bottom: 20px;
    }

    .footer-title {
        font-size: 17px;
    }

    .contact-label,
    .social-label {
        font-size: 14px;
    }

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

    .address {
        font-size: 13px;
    }

    .map-container {
        border-radius: 6px;
    }

    .footer-bottom {
        font-size: 11px;
        padding-top: 15px;
    }

    /* 返回顶部按钮 */
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 15px;
        font-size: 18px;
    }

    /* 产品区域 */
    .products-section {
        padding: 30px 0;
    }

    /* 下拉菜单在移动端禁用 */
    .dropdown-menu {
        display: none;
    }
}

/* 超小屏幕 (<=414px, 如 iPhone 系列) */
@media (max-width: 414px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .section-title {
        font-size: 20px;
    }

    .section-subtitle {
        font-size: 12px;
        margin-bottom: 20px;
    }

    .product-name {
        padding: 8px 6px;
        font-size: 12px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .stat-number {
        font-size: 18px;
    }

    .advantages-grid {
        gap: 10px;
    }

    .container {
        padding: 0 12px;
    }
}
