/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f8f8f8;
}
.header {    position: sticky;    top: 0;    z-index: 1000;    width: 100%;    height: 60px;    padding: 0;    margin: 0;    background-color: rgba(0, 0, 0, 0.651);}

.header::before {
    content: none;
}

.header-background {
    display: none;
}

/* 页眉内容 */
.header-content {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 32px;
    width: 100%;
}

.logo {
    width: 80px;
    height: auto;
    margin-right: 12px;
}

.header h1 {
    color: #fff;
    margin: 0 32px 0 0;
    font-size: 2rem;
    letter-spacing: 2px;
}

.header .nav {
    display: flex;
    gap: 24px;
}

.header .nav h3 {
    color: #fff;
    margin: 0;
    font-weight: normal;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.header .nav h3:hover {
    transform: scale(1.1);
}

/* 搜索框样式 */
.search-container {
    margin-left: auto;
    display: flex;
    align-items: center;
    background-color:rgba(59, 59, 59, 0.5);
    border-radius: 20px;
    padding: 5px 10px;
    overflow: hidden;
}

.search-input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    padding: 5px;
    width: 150px;
    font-size: 14px;
}

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

.search-button {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.search-button:hover {
    color: #f0f0f0;
}

.nav-link {
    color: #fff;
    margin: 0;
    font-weight: normal;
    cursor: pointer;
    font-size: 1.17em;
    text-decoration: none;
    transition: transform 0.2s ease;
    display: inline-block;
    position: relative;
}

.nav-link:hover {
    transform: scale(1.1);
}

/* 当前页面的导航项样式 */
.nav-link.active {
    color: #e88f41;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #e88f41;
}

/* 语言切换 */
.language-switch {
    margin-left: 20px;
    display: flex;
    gap: 10px;
}

.lang-btn {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    min-width: 60px;
    text-align: center;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lang-btn.active {
    background: #e88f41;
    color: #fff;
    border-color: #e88f41;
}

/* 页面内容区域 */.content {    max-width: 1280px;    margin: 0 auto;    padding: 30px;    padding-top: 90px; /* 60px header + 30px spacing */}

/* 产品页面结构 */
.product-container {
    width: 100%;
    margin-top: 20px;
}

/* 产品头部区域 */
.product-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e5e5;
}

.product-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: #000;
}

/* 产品图片 - 设为屏幕宽度的10% */
.product-image {
    width: 300px; /* 10%的视口宽度 */
    height: 280px; /* 保持正方形比例 */
    position: relative;
    overflow: hidden;
    background-color: #f5f5f5;
    border-radius: 0;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

/* 产品项自适应 */
.product-item {
    background-color: transparent;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transition: transform 0.2s;
    margin-left: 10px;
    margin-bottom: 20px;
    width: auto; /* 自适应宽度 */
}

.product-item:hover {
    transform: translateY(-2px);
}

/* 产品图片悬停效果增强 */
.product-item:hover .product-image img {
    transform: scale(1.05);
}

/* 右侧产品网格 - 自适应大小图片的布局 */
.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    flex: 1;
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}




/* 响应式布局 */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr); /* 保持三列 */
        gap: 5px;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr); /* 移动端也显示两列 */
        gap: 10px;
    }
    
    .product-image {
        padding-top: 90%; /* 稍微减小高度比例，适应移动设备 */
    }
}

.product-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.product-content {
    text-align: center;
    color: #000000;
    padding: 20px;
    border-radius: 10px;    
}

.product-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.product-item {
    flex: 1 1 calc(33.33% - 20px);
    max-width: calc(33.33% - 20px);
    box-sizing: border-box;
}   

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

/* 产品主体布局 */
.product-main {
    display: flex;
    width: 100%;
    margin-left: 300px; /* 为左侧分类栏腾出空间 */
}

/* 左侧分类栏 */
.category-sidebar {
    width: 300px;
    margin-right: 40px;
    flex-shrink: 0;
    position: fixed;
    top: 50%;
    left: calc((100% - 1380px) / 2); /* 居中计算 */
    transform: translateY(-50%); /* 垂直居中 */
    background-color: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.category-list {
    list-style-type: none;
}

.category-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    border-radius: 6px;
    margin-bottom: 8px;
    white-space: nowrap;
}

.category-item:hover {
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.5);
    transform: translateX(5px);
}

.category-item.active {
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.5);
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .product-main {
        flex-direction: column;
    }
    
    .category-sidebar {
        width: 100%;
        margin-bottom: 15px;
        margin-right: 0;
    }
    
    .category-list {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .category-item {
        padding: 8px 15px;
        border: 1px solid #ddd;
        border-radius: 20px;
        margin-bottom: 0;
        text-align: center;
    }
}

/* 页脚样式 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 30px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
    padding-right: 20px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #f39c12;
}

.footer-section p {
    margin-bottom: 10px;
    line-height: 1.6;
    font-size: 14px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

.footer-section ul li a:hover {
    color: #f39c12;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-contact-item svg {
    margin-right: 10px;
    flex-shrink: 0;
    min-width: 16px;
    height: 16px;
    margin-top: 0;
}

.footer-contact-item p {
    margin: 0;
    padding: 0;
    line-height: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #555;
    width: 100%;
}

.footer-bottom p {
    font-size: 13px;
    color: #aaa;
}

/* 最后一个联系方式项目不需要底部间距 */
.footer-contact-item:last-child {
    margin-bottom: 0;
}

/* 响应式布局 - 页脚 */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
    }
    
    .footer-section {
        width: 100%;
        padding-right: 0;
    }
}


