/* 导航栏 */

/* 主内容入场动画 */
.main-content {
    margin-top: 64px;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp .9s ease forwards;
}
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 轮播 */
.hero-slider {
    position: relative;
    height: calc(100vh - 64px);
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: .8s;
}

.slide.active {
    opacity: 1;
}

/* 遮罩层 */
.slide-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.4);
}

.slide-content {
    position: relative;
    z-index: 5;
    color: #fff;
    padding-left: 8%;
    max-width: 600px;
    top: 30%;
}

.slide-title {
    font-size: 40px;
    margin-bottom: 20px;
}

.btn-primary {
    display: inline-block;
    padding: 10px 30px;
    background: #2f9e44;
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
}

/* 圆点 */
.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,.7);
}

.dot.active {
    background: #2f9e44;
}

/* 箭头 */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px;
    background: rgba(0,0,0,.4);
    color: #fff;
    border-radius: 50%;
    border: none;
    cursor: pointer;
}
.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }
/* ===== 通用 section 标题居中 ===== */
.section {
    padding: 80px 12%;
}

.section-heading {
    text-align: center;
    margin-bottom: 40px;
}

.section-heading-cn {
    font-size: 32px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 700;
}

.section-heading-en {
    font-size: 16px;
    color: #0d9488; /* 青绿色小字 */
}

/* ===== 项目核心 Core Benefits ===== */
.core-section {
    background: #ffffff;
}

.core-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.core-card {
    background: #f9fafb;
    border-radius: 16px;
    padding: 40px 24px 32px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 图标外圈：初始白色背景，绿色边框和图标 */
.core-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 50%;
    border: 2px solid #16a34a;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #16a34a;
    transition: background-color 0.3s ease, color 0.3s ease,
                border-color 0.3s ease, transform 0.3s ease;
}

.core-icon-symbol {
    font-size: 32px;
}

/* 标题与文字 */
.core-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

.core-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
}

/* 悬停效果：
   - 卡片轻微上浮
   - 图标背景从白色切换为绿色
   - 图标本身从绿色变为白色 */
.core-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.core-card:hover .core-icon {
    background-color: #16a34a;  /* 白 -> 绿 */
    color: #ffffff;             /* 图标变白 */
    border-color: #16a34a;
    transform: scale(1.05);
}

/* ===== 关于我们 About Us ===== */
.about-section {
    background: #e5f2e8;
}

.about-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

/* 左侧绿色面板 */
.about-panel {
    background: #15803d;
    color: #ffffff;
    padding: 50px 48px;
}

.about-title-cn {
    font-size: 28px;
    margin-bottom: 6px;
}

.about-title-en {
    font-size: 16px;
    margin-bottom: 24px;
    opacity: 0.9;
}

.about-text {
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 14px;
    opacity: 0.95;
}

/* 了解更多按钮 */
.about-btn {
    margin-top: 24px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 26px;
    border-radius: 999px;
    border: 1px solid #ffffff;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* 小图标：圆形 + 绿箭头（默认） */
.about-btn-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #15803d;                  /* 默认箭头为绿色 */
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* hover 时按钮背景稍亮，箭头图标切换为白色 */
.about-btn:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.about-btn:hover .about-btn-icon {
    background-color: transparent;
    color: #ffffff;                  /* 绿 -> 白 */
}

/* 右侧图片区域 */
.about-image-wrapper {
    background: #ffffff;
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* —— 简单一点的响应式 —— */
@media (max-width: 1024px) {
    .core-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-inner {
        grid-template-columns: 1fr;
    }

    .about-image-wrapper {
        display: none; /* 小屏幕可以只保留文字 */
    }
}

@media (max-width: 640px) {
    .core-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 60px 6%;
    }
}
/* ===== 产品分类 ===== */
.product-section {
    background: #ffffff;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px 28px 26px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
    border-color: #16a34a;
}

.product-image-wrapper {
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-title {
    font-size: 18px;
    font-weight: 700;
    color: #15803d;
}


/* ===== 为什么选择我们 ===== */
.why-section {
    position: relative;
    padding: 100px 0;
    background: #0f9d58; /* 底色 */
}

.why-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.08);
}

.why-inner {
    position: relative;
    margin: 0 auto;
    max-width: 1100px;
    background: #ffffff;
    border-radius: 20px;
    padding: 60px 80px 50px;
}

.why-inner .section-heading-cn {
    color: #374151;
}

.why-inner .section-heading-en {
    color: #0d9488;
}

.why-grid {
    display: flex;
    justify-content: space-around;
    margin-top: 40px;
    text-align: center;
    gap: 30px;
}

.why-card {
    flex: 1;
}

.why-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid #16a34a;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 26px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.why-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.why-desc {
    font-size: 14px;
    color: #6b7280;
}

/* hover 时图标填充绿色，图标变白 */
.why-card:hover .why-icon {
    background-color: #16a34a;
    color: #ffffff;
    transform: translateY(-2px);
}


/* ===== 健康资讯 ===== */
.health-section {
    background: #ffffff;
}

.health-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 40px;
    margin-top: 40px;
    align-items: stretch;
}

/* 左侧图片区：用类似轮播的方式，只是通过 hover 切换 */
.health-slider {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 比例 */
    overflow: hidden;
    border-radius: 12px;
    background: #e5e7eb;
}

.health-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.health-slide.active {
    opacity: 1;
}

.health-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 右侧标题列表 */
.health-list {
    background: #f9fafb;
    border-radius: 12px;
    padding: 24px 24px 18px;
}

.health-item {
    padding: 14px 10px;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.health-item:last-child {
    border-bottom: none;
}

.health-item-title {
    font-size: 16px;
    color: #111827;
    margin-bottom: 6px;
}

.health-item-meta {
    font-size: 13px;
    color: #6b7280;
}

/* hover 或 active 时标题高亮 */
.health-item:hover,
.health-item.active {
    background-color: #ecfdf3;
}

.health-item:hover .health-item-title,
.health-item.active .health-item-title {
    color: #15803d;
}


/* ===== 页脚 ===== */
/* ===== 简单响应式 ===== */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .why-inner {
        padding: 50px 40px;
    }

    .why-grid {
        flex-direction: column;
        align-items: center;
    }

    .health-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        row-gap: 24px;
    }
}
