/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
nav, article, footer
{   
   display: block;   
}

/* 确保body和html不超出屏幕 */
html, body {
    width: 100%;
    overflow-x: hidden; /* 隐藏横向滚动条，禁止横向滚动 */
}

body {
    line-height: 1.6;
	display: flex;
	flex-direction: column;
}

.main-content {
            flex: 1;
        }

a {
    text-decoration: none;
    color: inherit;
}

/* 顶部导航样式 */
.header {
    background: #009744;
    color: #fff;
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  align-items: center; /* 垂直居中对齐（关键：让 logo 与两行文字中间对齐） */
}

.header__title {
    flex: 1; /* 占据剩余空间，确保文字居中对齐 */
    text-align: center;
    font-size: 1.875rem;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header__slogan {
    font-size: 18px;
    opacity: 0.9;
    text-align: center;
}

.header-logo {
  height: 60px;/* 核心：通过高度适配两行文字（根据实际文字大小调整） */
  width: auto; /* 宽度自动，保持 logo 比例 */
  object-fit: contain; /* 防止 logo 变形 */
}

.headers-logo {
  height: 60px;/* 核心：通过高度适配两行文字（根据实际文字大小调整） */
  width: auto; /* 宽度自动，保持 logo 比例 */
  object-fit: contain; /* 防止 logo 变形 */
}

/* 针对手机屏幕的响应式样式 */
@media (max-width: 768px) {
  /* 轮播图容器设置固定尺寸 */
  #carousel {
    max-width: 600px;
    max-height: 400px;
  }
}

/* 溯源卡片样式 */
.trace-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.trace-card__header {
    background-color: #27ae60;
    color: #fff;
    padding: 1rem 1.5rem;
}

.trace-card__title {
    font-size: 1.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.trace-card__title i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.trace-card__body {
    padding: 1.5rem;
	font-size: 20px;
}

.trace-info {
    padding: 0.8rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.trace-info:last-child {
    border-bottom: none;
}

.trace-info__label {
    font-weight: 600;
    color: #2c3e50;
}

.trace-info__value {
    color: #555;
}

.trace-card__footer {
    background-color: #f8f9fa;
    padding: 1rem 1.5rem;
    text-align: center;
}

.logo-img {
    height: 30px;
    object-fit: contain;
}

/* 导航卡片样式 */
.nav-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.nav-card__header {
    background-color: #27ae60;
    color: #fff;
    padding: 1rem 1.5rem;
}

.nav-card__title {
    font-size: 1.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.nav-card__title i {
    margin-right: 0.5rem;
    font-size: 30px;
}

.nav-card__body {
    padding: 1.5rem;
}

.nav-list {
    margin: 0 -0.5rem;
}

.nav-link {
    display: block;
}

.nav-item {
    background-color: #fff;
    border-radius: 8px;
    padding: 1.2rem 0;
    text-align: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.product-image img{
	width: 100%;
}

/* 鼠标悬停时：变绿色 */
.nav-item:hover {
  background-color: #009744; /* 绿色底色 */
}

/* 点击时（按住鼠标时）：加深绿色（可选，增强反馈） */
.nav-item:active {
  background-color: #009744; /* 深绿色，区分点击状态 */
}



.nav-icon {
  width: 100px; /* 固定宽度 */
  height: 100px; /* 固定高度 */
  object-fit: contain; /* 保持图标比例，避免拉伸 */
  flex-shrink: 0; /* 防止图标被压缩变形 */
}

.nav-item--hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: #f8f9fa;
}

.nav-item__icon {
    font-size: 1.8rem;
    color: #27ae60;
    margin-bottom: 0.5rem;
    display: block;
}

.nav-item__text {
    font-size: 20px;
    color: #333;
    font-weight: 500;
}

/* 页脚样式 */
.footer {
    background-color: #009744;
    color: #fff;
    padding: 2rem 0;
}

.footer__contact,
.footer__address,
.footer__copyright,
.footer__certify {
    margin-bottom: 0.5rem}
}


/* 减小整体页面左右边距 */
.container-fluid {
  padding-left: 15px;  /* 原默认可能是15px，可根据需要调小，如10px */
  padding-right: 15px;
}

/* 调整内容区容器的左右边距 */
.container {
  max-width: 100%;     /* 避免固定宽度限制导致边距过大 */
}