/* Windows 11 风格变量 */
:root {
    --primary-color: #0078d4;
    --secondary-color: #5d5aec;
    --accent-color: #ffb900;
    --dark-bg: #1d1d1d;
    --card-bg: #f3f3f3;
    --surface-color: #ffffff;
    --text-primary: #000000;
    --text-secondary: #616161;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 28px rgba(0, 0, 0, 0.16);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    line-height: 1.6;
    color: var(--text-primary);
    background-color: #fafafa;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    gap: 8px;
}

.btn:hover {
    background-color: #106ebe;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 头部导航 - 与index.php保持一致 */
header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.logo img {
    height: 45px;
}

.logo-text {
    flex: 1;
    max-width: 300px;
}

.logo-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

.logo-text p {
    font-size: 0.7rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.desktop-nav {
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 0;
    display: block;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-item:hover .nav-underline {
    width: 100%;
}

/* 产品中心下拉菜单样式 - 修复显示问题 */
.nav-item.dropdown {
    position: relative;
}

.nav-item.dropdown .nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-icon {
    font-size: 0.75rem;
    transition: transform 0.3s;
}

.nav-item.dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    position: relative;
}

.dropdown-item > a,
.dropdown-item.all-products {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 20px;
    color: var(--text-secondary);
    transition: var(--transition);
    font-size: 0.95rem;
    gap: 10px;
}

.dropdown-item > a i:first-child,
.dropdown-item.all-products i:first-child {
    width: 20px;
    color: var(--primary-color);
}

.dropdown-item > a:hover,
.dropdown-item.all-products:hover {
    background-color: rgba(0, 120, 212, 0.05);
    color: var(--primary-color);
}

.dropdown-item.has-submenu {
    position: relative;
}

.submenu-icon {
    font-size: 0.7rem;
    margin-left: auto;
    color: var(--text-secondary);
    transition: transform 0.3s;
}

.dropdown-item.has-submenu > a {
    justify-content: space-between;
}

.submenu {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 200px;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    z-index: 1002;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.dropdown-item.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.submenu-item {
    display: flex;
    align-items: center;
    padding: 8px 20px;
    color: var(--text-secondary);
    transition: var(--transition);
    font-size: 0.9rem;
    gap: 10px;
}

.submenu-item i {
    width: 18px;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.submenu-item:hover {
    background-color: rgba(0, 120, 212, 0.05);
    color: var(--primary-color);
    padding-left: 25px;
}

.lang-selector select {
    padding: 6px 12px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 0, 0, 0.2);
    background-color: transparent;
    font-size: 0.9rem;
    cursor: pointer;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary-color);
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius);
}

/* 页面横幅 */
.page-banner {
    
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0 80px;
    text-align: center;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    align-items: center;
}

.page-banner h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.page-banner p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* 主要内容区域 */
.main-content {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

/* 分类选项卡 */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.tab-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: #f5f5f5;
    border-radius: 40px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    font-size: 0.95rem;
}

.tab-item i {
    font-size: 1rem;
}

.tab-item:hover {
    background: rgba(0, 120, 212, 0.1);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.tab-item.active {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

/* 产品网格 */
.product-grid { /* 产品网格的容器 */
    display: grid; /* 使用CSS Grid布局 */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* 列定义：自适应填充，每列最小280px，最大1等分 */
    gap: 30px; /* 网格项之间的间隙 */
    margin-bottom: 50px; /* 底部外边距 */
}

.product-card { /* 单个产品卡片 */
    background: white; /* 白色背景 */
    border-radius: var(--border-radius-lg); /* 使用CSS变量定义的大圆角 */
    overflow: hidden; /* 隐藏溢出内容，保持圆角效果 */
    box-shadow: var(--shadow-sm); /* 使用CSS变量定义的浅阴影 */
    transition: var(--transition); /* 使用CSS变量定义的过渡效果 */
    cursor: pointer; /* 鼠标悬停时显示手形光标 */
    border: 1px solid rgba(0, 0, 0, 0.05); /* 半透明边框 */
	
}

.product-card:hover { /* 产品卡片悬停状态 */
    transform: translateY(-5px); /* 向上移动5像素，产生上浮效果 */
    box-shadow: var(--shadow-lg); /* 使用CSS变量定义的深阴影 */
    border-color: var(--primary-color); /* 边框颜色变为主色调 */
}

.product-image { /* 产品图片容器 */
    /*height: 220px; *//* 固定高度 */
	width: 300px;
    overflow: hidden; /* 隐藏溢出部分 */
    background: #f5f5f5; /* 浅灰色背景，用于加载中或图片缺失时 */
    display: flex; /* 使用Flexbox布局 */
    align-items: center; /* 垂直居中 */
    justify-content: center; /* 水平居中 */
	margin: 0 auto;
}

.product-image img { /* 产品图片本身 */
    width: 100%; /* 宽度占满容器 */
    height: 100%; /* 高度占满容器 */
    object-fit: cover; /* 图片按比例填充，可能被裁剪 */
    transition: transform 0.3s ease; /* 添加缩放过渡效果 */
}

.product-card:hover .product-image img { /* 悬停时图片的样式 */
    transform: scale(1.05); /* 图片放大5% */
}

.product-info {
    padding: 18px;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    min-height: 2.8em;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding: 12px 16px; /* 内边距更舒适 */
    border-top: 1px solid #e8f0fe; /* 浅蓝色边框 */
    background: linear-gradient(to right, #f7fbff, #eef5ff); /* 蓝色渐变背景 */
    border-radius: 8px; /* 圆角更立体 */
    box-shadow: 0 2px 6px rgba(30, 111, 235, 0.08); /* 柔和蓝色阴影 */
    transition: all 0.25s ease; /* 平滑动画 */
}

/* 悬浮时更立体 */
.product-meta:hover {
    box-shadow: 0 4px 12px rgba(30, 111, 235, 0.15);
    transform: translateY(-1px); /* 轻微上浮 */
    border-color: #d0e3ff;
}

.product-code {
    font-size: 0.95rem;
	 font-weight: 600;
    color:#1F8BE3;
    font-family: monospace;
	margin: 0 auto;
	
}

.view-details {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: var(--border-radius);
    background: white;
    border: 1px solid #ddd;
    transition: var(--transition);
    font-size: 0.9rem;
}

.page-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-link.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-dots {
    color: var(--text-secondary);
    padding: 0 5px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: var(--border-radius-lg);
}

.empty-state i {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

/* 面包屑 */
.breadcrumb {
    background: #f5f5f5;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--primary-color);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 8px;
    color: #999;
}

/* 页脚 */
footer {
    background-color: var(--dark-bg);
    color: white;
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
    display: inline-block;
}

.footer-col ul li i {
    width: 25px;
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .desktop-nav {
        position: absolute;
        top: 100%;
        right: 0;
        width: 280px;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        box-shadow: var(--shadow-lg);
        border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
        padding: 20px;
        transform: translateY(-20px);
        opacity: 0;
        visibility: hidden;
        flex-direction: column;
        align-items: flex-start;
        z-index: 1000;
    }
    .desktop-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .nav-links {
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }
    .dropdown-menu {
        position: static;
        box-shadow: none;
        padding-left: 20px;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background: transparent;
        border: none;
        padding: 0;
    }
    .nav-item.dropdown:hover .dropdown-menu,
    .nav-item.dropdown.active .dropdown-menu {
        display: block;
    }
    .submenu {
        position: static;
        box-shadow: none;
        padding-left: 20px;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        border: none;
        padding: 0;
    }
    .dropdown-item.has-submenu:hover .submenu,
    .dropdown-item.has-submenu.active .submenu {
        display: block;
    }
    .dropdown-item > a,
    .dropdown-item.all-products {
        padding: 8px 12px;
    }
    .lang-selector {
        margin-top: 15px;
        width: 100%;
    }
    .lang-selector select {
        width: 100%;
    }
    .logo-text {
        max-width: 200px;
    }
    .logo-text h1 {
        font-size: 1.1rem;
        white-space: normal;
    }
    .logo-text p {
        font-size: 0.6rem;
        white-space: normal;
    }
    .page-banner {
        min-height: 200px;
        padding: 80px 0 60px;
        margin-top: 65px;
    }
    .page-banner h1 {
        font-size: 2rem;
    }
    .page-banner p {
        font-size: 0.9rem;
    }
    .category-tabs {
        gap: 8px;
    }
    .tab-item {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .logo img {
        height: 35px;
    }
    .logo-text {
        max-width: 150px;
    }
    .logo-text h1 {
        font-size: 0.9rem;
    }
    .logo-text p {
        display: none;
    }
    .page-banner h1 {
        font-size: 1.6rem;
    }
    .product-grid {
        grid-template-columns: 1fr;
    }
    .category-tabs {
        overflow-x: auto;

        flex-wrap: nowrap;
        padding-bottom: 10px;
        gap: 10px;
    }
    .tab-item {
        white-space: nowrap;
    }
}

