@charset "utf-8";
/* CSS Document */

/* * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
} */


/* Products Section */

.product-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    width: 300px;
}

.product-card:hover {
    transform: translateY(-10px);
    bbox-shadow: 0 20px 30px rgba(0, 0, 0, 0.15);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.product-image {
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    background: white;
    height: 400px;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
    cursor: pointer; /* 添加指针样式 */
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
    pointer-events: none; /* 防止图片本身接收点击事件 */
}

.product-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    flex: 1;
    min-width: 300px;
}

.product-info h3 {
    margin-bottom: 5px;
    color: #2c3e50;
}

.product-info p {
    color: #777;
    font-size: 0.9rem;
}

.price-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 25px 0;
}

.price-usd {
    font-size: 1.8rem;
    font-weight: bold;
    color: #4CAF50;
}

.price-rmb {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e74c3c;
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}


/* 轮播图样式 */
.hero-carousel {
    width: 100%; /* 宽度占满父容器 */
    height: 600px; /* 固定高度，可根据需求调整 */
    position: relative;
    overflow: hidden; /* 隐藏溢出内容 */
    object-position: center;
}

/* 轮播项 */
.carousel-item {
    width: 100%;
    height: 100%; /* 继承父容器高度 */
    position: absolute; /* 绝对定位确保叠加 */
    top: 0;
    left: 0;

}
.carousel-item.active {
    opacity: 1;
    z-index: 1;
}

.carousel-item a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

/* 图片样式 */
.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: 50% 50%; /* 按比例填满容器 */
    display: block; /* 消除图片底部间隙 */
    background-color: #ddd;
}

.carousel-item:hover img {
    transform: scale(1.05);
}


/* 特殊区域调整 */
section.hero {
    padding: 1rem 1rem;
}

section.products {
    padding: 1rem 0;
}

/* Breadcrumb */
.breadcrumb {
    padding: 20px 0;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: #4CAF50;
    text-decoration: none;
}

.breadcrumb span {
    margin: 0 10px;
}

/* Product Detail Section */
.product-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin: 30px 0;
    background: white;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.product-gallery {
    flex: 1;
    min-width: 300px;
}

.thumbnail-container {
    display: flex;
    gap: 10px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.thumbnail:hover, .thumbnail.active {
    border-color: #4CAF50;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.product-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.8;
}
.product-features {
    margin: 25px 0;
}

.product-features h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.features-list {
    list-style: none;
}

.features-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.features-list li:before {
    content: "✓";
    color: #4CAF50;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Specifications Section */
.specifications {
    background: white;
    border-radius: 10px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.specifications h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4CAF50;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid #eee;
}

.specs-table td {
    padding: 15px 10px;
}

.specs-table td:first-child {
    font-weight: 600;
    color: #2c3e50;
    width: 30%;
}