/* --- 产品区域基础样式 --- */
.product-section {
    width: 100%;
    display: flex;
    justify-content: center;
    padding:0 0 40px;
    background-color: #fff; /* 根据设计图可能需要调整背景色 */
}

.product-container {
    width: 1200px;
}

/* 系列标题 */
.series-title {
    font-weight: 400;
font-size: 24px;
color: #000000;
text-align: left;
font-style: normal;
text-transform: none;
margin-bottom: 16px;
}

.series-title:first-child {
    margin-top: 0;
}

/* 产品网格布局 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 一排四个 */
    gap: 16px; /* 间隔16px */
    margin-bottom: 40px;
}

/* 产品卡片 */
.product-card {
    width: 288px;
    height: 281px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    background: #f8f7f5;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* 产品图片区域 */
.card-img-wrapper {
    width: 288px;
    height: 241px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f9f9f9;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持比例填充 */
}

/* 产品名称区域 */
.card-name {
    height: 40px; /* 281 - 241 = 40px */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 400;
    font-size: 16px;
    color: #1F1F1F;
    text-align: center;
    font-style: normal;
    text-transform: none;
}

/* --- 弹窗 (Modal) 样式 --- */
.product-modal {
    display: none; /* 默认隐藏 */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fefefe;
    padding: 24px;
    border-radius: 6px;
    width: max-content; /* 大致宽度：左480 + 右内容 + padding */
    max-width: 95%;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    height: max-content;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -510px;
    margin-top: -230px;
}

.close-btn {
    cursor: pointer;
    position: absolute;
    right: 16px;
    top: 16px;
    width: 32px;
    height: 32px;
    background: url("https://simlove-sdk.oss-cn-shenzhen.aliyuncs.com/img/jianai-website/close-btn.png") no-repeat;
    background-size: cover;
}

.close-btn:hover,
.close-btn:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal-body {
    display: flex;
    gap: 30px;
    margin-top: 10px;
}

/* 弹窗左侧图片 */
.modal-left {
    flex-shrink: 0;
}

.modal-left img {
    width: 480px;
    height: 402px;
    object-fit: cover;
    border-radius: 4px;
}

/* 弹窗右侧内容 */
.modal-right {
    width: 480px;
    display: flex;
    flex-direction: column;
}

.modal-right h2 {
   font-weight: 500;
    font-size: 16px;
    color: #1F1F1F;
    text-align: left;
    font-style: normal;
    text-transform: none;
    margin-bottom: 15px;
}

.modal-info {
    margin-bottom: 16px;
    font-weight: 400;
    font-size: 12px;
    color: #6C6D6D;
    text-align: justified;
    font-style: normal;
    text-transform: none;
}

.modal-info strong {
    color: #333;
}

/* 营养表格 */
.nutrition-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-top: 10px;
}

.nutrition-table th, 
.nutrition-table td {
    text-align: left;
    line-height: 27px;
    color: #6C6D6D;
    font-size: 12px;
    padding: 0 14px;
}

.nutrition-table th {
    background-color: rgba(84, 200, 232, 0.1);
    font-weight: 400;
    font-size: 12px;
    color: #1F1F1F;
    line-height: 27px;
    padding: 0 14px;
}

/* .nutrition-table tr:nth-child(even) {
    background-color: #fafafa;
} */
.subTitle{
    font-weight: 400;
font-size: 12px;
color: #1F1F1F;
text-align: left;
font-style: normal;
text-transform: none;
}

