* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* 关键：内边距不再额外增加元素宽度 */
}

html, body {
    width: 100%;
    overflow-x: hidden; /* 关键：如果有任何内容溢出，直接隐藏，避免出现横向滚动条 */
}
.container {
            max-width: 1200px;
            margin: 0 auto;
            width: 100%;
            display: flex;             /* 开启Flex布局 */
            justify-content: space-between; /* 核心：让子元素左右分开 */
            align-items: center;      /* 垂直居中 */
            padding: 0 20px;
            box-sizing: border-box;
        }
.above-bar {
    width: 100%;
    background-color: #5C752E; /* 你想要的青色 */
    color: white;
    padding: 0 50px;
    height: 40px;
    display: flex;
    justify-content: space-between; /* 左右两端对齐 */
    align-items: center;
    box-sizing: border-box;
    transition: all 0.3s ease;
    overflow: hidden;
padding: 5px 20px; /* 增加左右内边距，确保内容不会顶着屏幕边缘 */
}
@media (max-width: 600px) {
    .above-bar {
        flex-direction: column;
        padding: 5px;
    }

    /* 右侧联系方式：强制左对齐，并且消除所有间距 */
    .above-right {
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* 强制左对齐 */
        gap: 0 !important;       /* 消除电话和邮箱的间距 */
    }

    /* 针对链接的微调，消除 padding 和 margin */
    .above-right a {
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1.1;       /* 极度紧凑的行高 */
        font-size: 12px;        /* 保持可见的大小 */
        display: block;
    }
}
/* 隐藏状态 */
.above-bar.hidden {
    height: 0;
    padding: 0;
    opacity: 0;
}

/* 左右容器布局 */
.above-left, .above-right {
    display: flex;
    align-items: left;
    gap: 20px; /* 图标与文字间的间距 */
}

/* 链接文字样式 */
.above-bar a {
    color: white;
    text-decoration: none;
    font-size: 13px;
}
#social {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px; /* 图标之间的距离 */
}

#social li a {
    color: white; /* 设置为白色 */
    font-size: 18px;
    text-decoration: none;
    transition: opacity 0.3s;
}

#social li a:hover {
    opacity: 0.7;
}

/* 核心：确保图标显示，且没有背景框 */
#social li a i {
    font-size: 18px; /* 控制图标大小 */
}
.above-right i {
    /* 强制指定 font-family，防止被其他样式污染 */
    font-family: 'FontAwesome' !important;
    font-style: normal !important;
    font-weight: normal !important;
    margin-right: px; /* 图标与文字的间距 */
}
.contact-info { display: flex; gap: 20px; }
        .contact-item { display: flex; align-items: center; gap: 5px; }

        /* 导航栏 */
        .navbar {
            position: fixed;
            top: 50px; /* 初始状态：紧贴 above-bar 下方 (padding+height 约50px) */
            width: 100%;
            padding: 15px 50px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            z-index: 1000;
            background-color: transparent; /* 初始背景透明 */
            transition: all 0.3s ease; /* 监听 top 和 background-color 的变化 */
            box-sizing: border-box;
        }

        /* 滚动时的状态 */
        .navbar.scrolled {
            top: 0; /* 滚动时上移至顶部 */
            background-color: white !important;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }

        .navbar .logo-img {
            height: 70px;
            width: auto;
            display: block;
        }
.banner {
    position: relative;
    width: 100%;
    height: 500px;
    background: url('banner.jpeg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
}

/* 核心：实现四周发亮效果 */
.banner::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    /* 核心逻辑：
       中心 rgba(0,0,0,0.5) 形成暗部，衬托文字
       四周 rgba(255,255,255,0.3) 形成发亮光晕，从边缘向中间渐变
    */
    background: radial-gradient(circle at center, rgba(0,0,0,0.5) 30%, rgba(255,255,255,0.3) 70%);
    z-index: 1;
    pointer-events: none; /* 确保不影响按钮点击 */
}

/* 修改：强制内容垂直堆叠 */
.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 90%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.banner h1 {
    font-size: 2.7rem;
    margin: 0 0 20px 0;
    text-shadow: 0 4px 15px rgba(0,0,0,0.8);
}

.banner p {
    font-size: 1.3rem;
    margin: 0 0 30px 0; /* 这里的底部间距确保了按钮被推到下方 */
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.banner-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-primary, .btn-secondary {
    padding: 12px 35px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-primary { background: #5C752E; color: white; }
.btn-primary:hover { background: #4a5f25; transform: scale(1.05); }

.btn-secondary { border: 2px solid white; color: white; }
.btn-secondary:hover { background: rgba(255,255,255,0.2); transform: scale(1.05); }
.lang-switcher {
            display: flex;
            gap: 5px;
        }

        .lang-switcher button {
            cursor: pointer;
            background: #eee;
            border: 1px solid #ccc;
            padding: 5px 10px;
            border-radius: 4px;
            font-size: 12px;
        }

        .lang-switcher button:hover {
            background: #e0e0e0;
        }
.features-banner {
    display: flex;
    justify-content: space-between;
    padding: 40px 5%;
    background-color: #3d5e3d; /* 深绿色 */
    color: #ffffff;
    gap: 30px;
    box-sizing: border-box; /* 防止溢出 */
}

.feature-item {
    flex: 1;
    text-align: left;
}

.feature-item h3 { color: #b7d6af; font-size: 2rem; margin: 0; }
.feature-item h4 { margin: 10px 0; font-size: 1.1rem; }
.feature-item p { font-size: 0.9rem; line-height: 1.6; opacity: 0.9; }

/* 手机端适配：垂直堆叠，确保居中且不溢出 */
@media (max-width: 768px) {
    .features-banner { 
        flex-direction: column; 
        padding: 30px 20px;
    }
    .feature-item { 
        margin-bottom: 0px; 
        text-align: center; /* 手机上文字居中通常更好看 */
    }
}
.form-container {
  background: white;
  width: 90%;
  max-width: 500px;
  /* 关键点：上边距40px，左右自动，下边距30px */
  margin: 40px auto 30px auto; 
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  box-sizing: border-box;
}
        .form-group {
            margin-bottom: 20px;
        }
        h2 {
            font-size: 24px;
            text-transform: uppercase;
            text-align: center;
            margin-bottom: 30px;
            margin-top: 0;
        }
        label {
            display: block;
            font-size: 14px;
            margin-bottom: 8px;
            font-weight: bold;
        }
.feeder-dropdown {
    border: 1px solid #ddd;
    padding: 12px;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}
.feeder-dropdown summary {
    font-weight: bold;
    outline: none;
    padding: 5px;
}
.feeder-container {
    margin-top: 15px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}
.feeder-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}
.counter {
    display: flex;
    align-items: center;
    gap: 12px;
}
.counter button {
    width: 32px;
    height: 32px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #f0f0f0;
    cursor: pointer;
}
.qty {
    font-weight: bold;
    min-width: 25px;
    text-align: center;
}
        input, select {
            width: 100%;
            padding: 12px;
            border: 1px solid #ccc;
            border-radius: 4px;
            box-sizing: border-box; 
        }

        .submit-btn {
            width: 100%;
            background-color: #5C752E; 
            color: white;
            padding: 15px;
            border: none;
            border-radius: 4px;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            transition: 0.3s;
        }

        .submit-btn:hover {
            background-color: #006400;
        }

        .intro-container {
            width: 90%;
            max-width: 500px;
            margin: 0 auto 50px auto;
            display: grid;
            grid-template-columns: 1fr 1fr; 
            gap: 15px;
            box-sizing: border-box;
        }

        .intro-card {
            background: white;
            padding: 20px 10px;
            border-radius: 12px;
            text-align: center;
            box-shadow: 0 4px 10px rgba(0,0,0,0.05);
            display: flex;
            flex-direction: column;
            align-items: center;
            transition: transform 0.3s ease;
        }

        .intro-card:hover {
            transform: translateY(-5px);
        }

        .intro-card svg {
            width: 40px;
            height: 40px;
            fill: #008000;
            margin-bottom: 12px;
        }

        .intro-card h5 {
            margin: 0 0 5px 0;
            font-size: 15px;
            color: #333;
            font-weight: bold;
        }

        .intro-card p {
            margin: 0;
            font-size: 12px;
            color: #777;
            line-height: 1.4;
        }

        @media (max-width: 600px) {
            .navbar { padding: 10px 20px; }
            .navbar .logo-img { height: 40px; }
        }

 .testimonial-section {
            padding: 40px 20px;
            background-color: #5C752E;
            color: #dddddd;
            width: 100%;
            box-sizing: border-box;
        }

        .testimonial-title {
            font-size: 18px;
            color: #fff;
            text-align: center;
            margin-bottom: 20px;
            font-weight: 900;
        }

        .testimonial-slider-wrapper {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
        }

        .testimonial-slider {
            display: flex;
            gap: 16px;
            min-width: 700px;
        }

        .testimonial-card {
            flex: 0 0 auto;
            width: 250px;
            background-color: #445423;
            border-radius: 10px;
            padding: 20px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
        }

        .testimonial-text {
            font-size: 0.95rem;
            line-height: 1.4;
            margin-bottom: 15px;
            font-style: italic;
        }

        .testimonial-author {
            font-size: 0.85rem;
            text-align: right;
            color: #B6BFB4;
        }

        .loan-info-section {
            max-width: 1100px;
            margin: 50px auto;
            padding: 20px;
            font-family: Arial, sans-serif;
            width: 100%;
            box-sizing: border-box;
        }


        @media (max-width: 600px) {
            .navbar { padding: 10px 20px; }
            .navbar .logo-img { height: 40px; }
        }

        .site-footer {
            position: relative; 
            width: 100%;
            background-image: url('https://rodentpro.com/media/images/Articles/Guide%20to%20Different%20Sizes%20of%20Frozen%20Mice/Several%20White%20Mice.webp'); 
            background-size: cover;    
            background-position: center; 
            background-repeat: no-repeat;
            color: white; 
            font-family: Arial, sans-serif;
            overflow: hidden; 
        }

        .footer-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.6); 
            z-index: 1; 
        }

        .footer-content {
            position: relative; 
            z-index: 2;
            max-width: 1100px; 
            margin: 0 auto; 
            padding: 60px 20px; 
            text-align: center;
        }

        .disclaimer-area {
            margin-bottom: 50px; 
            line-height: 1.8;
            font-size: 14px;
            opacity: 0.9; 
        }

        .contact-cards-grid {
            display: flex;
            justify-content: center; 
            flex-wrap: wrap; 
            gap: 20px; 
        }

        .contact-card {
            background-color: white; 
            color: #333; 
            flex: 1; 
            min-width: 280px; 
            max-width: 320px; 
            padding: 25px;
            border-radius: 10px; 
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); 
            display: flex;
            align-items: center; 
            text-align: left; 
            transition: transform 0.3s ease; 
        }
@media (max-width: 600px) {
    .contact-cards-grid {
        display: flex;
        flex-direction: column; /* 关键：强制改为垂直排列 */
        align-items: center;    /* 关键：强制所有卡片在水平方向居中 */
        width: 100%;            /* 占满容器 */
        padding: 0 0px;        /* 给左右留点内边距，防止贴边 */
        box-sizing: border-box; /* 确保 padding 不会撑大宽度 */
        gap: 15px;              /* 减小手机上的间距 */
    }

    .contact-card {
        flex: none;             /* 关键：取消 flex: 1，防止拉伸 */
        width: 100%;            /* 卡片宽度占满可用区域 */
        min-width: unset;       /* 移除最小宽度限制 */
        max-width: 350px;       /* 限制最大宽度，避免在平板上太宽 */
        box-sizing: border-box; /* 确保 padding 包含在宽度内 */
    }
}
        .contact-card:hover {
            transform: translateY(-5px); 
        }

        .card-icon-wrapper {
            margin-right: 20px; 
            flex-shrink: 0; 
        }

        .card-icon {
            width: 24px;
            height: 24px;
            fill: #008000; 
        }

        .card-text h6 {
            margin: 0 0 8px 0; 
            font-size: 16px;
            color: #333;
            font-weight: bold;
        }

        .card-text p {
            margin: 0;
            font-size: 14px;
            color: #666; 
        }

        .footer-bottom-bar {
            position: relative;
            z-index: 2;
            width: 100%;
            background-color: #5C752E; 
            padding: 15px 0;
            text-align: center;
        }

        .footer-bottom-bar p {
            margin: 0;
            color: white;
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 1px; 
        }

        @media (max-width: 768px) {
            .contact-cards-grid {
                flex-direction: column; 
                align-items: center;
            }
            .contact-card {
                width: 100%; 
                max-width: none;
            }
        }

        .floating-wa-btn {
            position: fixed;
            left: 20px;       
            bottom: 20px;     
            z-index: 9999;    
            text-decoration: none;
        }

        .wa-icon-container {
            width: 60px;
            height: 60px;
            background-color: #25D366; 
            border-radius: 50%;        
            display: flex;
            justify-content: center;
            align-items: center;
            box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
            transition: transform 0.3s ease;
            animation: pulse-green 2s infinite; 
        }

        .wa-icon-container svg {
            width: 35px;
            height: 35px;
            fill: white;
        }

        .wa-icon-container:hover {
            transform: scale(1.1);
            background-color: #1ebe57;
        }

        @keyframes pulse-green {
            0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
            70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
            100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
        }

        @media (max-width: 768px) {
            .wa-icon-container { width: 50px; height: 50px; }
            .wa-icon-container svg { width: 30px; height: 30px; }
        }

        @media screen and (max-width: 768px) {
            body { margin: 0; padding: 0; }
            .form-container, .contact-card, .info-details, .info-example {
                width: 95% !important;
                margin-left: auto;
                margin-right: auto;
                padding: 15px; 
            }
            .table-container { width: 100%; overflow-x: auto; }
        }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 40px 20px;
}

.product-card {
    position: relative;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

.product-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.product-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: rgba(0, 0, 0, 0); /* 黑色半透明背景 */
    color: white;
    transition: background 0.3s ease;
}

/* 悬停效果 */
.product-card:hover .product-image {
    transform: scale(1.1); /* 图片放大 */
}

.product-card:hover .product-info {
    background: linear-gradient(to top, rgba(92, 117, 46, 0.95) 0%, rgba(92, 117, 46, 0) 100%);
}

.hover-desc {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.product-card:hover .hover-desc {
    max-height: 100px; /* 悬停时显示简介 */
    margin-top: 10px;
}
/* 隐藏菜单按钮 (默认) */
.menu-toggle { display: none; background: none; border: none; font-size: 18px; cursor: pointer; }

/* 导航链接样式 */
.nav-links { display: flex; list-style: none; gap: 30px; }
.nav-links a { text-decoration: none; color: #333; font-weight: bold; }

/* 手机端适配 */
@media (max-width: 768px) {
    .menu-toggle { display: block; } /* 显示按钮 */
    .nav-links {
        display: none; /* 默认隐藏 */
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    .nav-links.active { display: flex; } /* 点击后显示 */
}
