/* ===== 全局重置 ===== */
* {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}
html, body {
    width: 100%;
    height: 100%;
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
}
html {
    background: #ddd;
}
body {
    width: 100%;
    max-width: 1200px;
    min-height: 100%;
    margin: 0 auto;
    background: #f3f7f1;
    position: relative;
    overflow-x: hidden;
    padding-bottom: 0;
}
#managearea {
    padding-bottom: 80px;
    min-height: 100vh;
    background: #f3f7f1;
}
img {
    display: block;
    max-width: 100%;
    border: 0;
}
a {
    text-decoration: none;
    color: inherit;
}
.fl { float: left; }
.fr { float: right; }
.clear { clear: both; }

/* ===== 顶部固定栏（滚动时出现）含分享按钮 ===== */
.company_header {
    position: fixed;
    top: 0;
    left: 50%;
    -webkit-transform: translate(-50%, -100%);
    -moz-transform: translate(-50%, -100%);
    -ms-transform: translate(-50%, -100%);
    transform: translate(-50%, -100%);
    width: 100%;
    max-width: 1200px;
    z-index: 999;
    -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    -webkit-transition: transform 0.3s ease;
    -moz-transition: transform 0.3s ease;
    transition: transform 0.3s ease;
}
.company_header.show {
    -webkit-transform: translate(-50%, 0);
    -moz-transform: translate(-50%, 0);
    -ms-transform: translate(-50%, 0);
    transform: translate(-50%, 0);
}
.company_header .header_main {
    height: 56px;
    background: #3ba7e8;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 0 12px;
    color: #fff;
}
.company_header .header_main .header_fanhui {
    flex: 0 0 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.company_header .header_main .header_fanhui:active {
    opacity: 0.7;
}
.company_header .header_main .product_title {
    flex: 1;
    text-align: center;
    font-size: clamp(14px, 2vw, 17px);
    font-weight: 500;
    color: #fff;
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 6px;
}
/* 分享按钮 */
.company_header .header_main .header_fenxiang {
    flex: 0 0 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.company_header .header_main .header_fenxiang img {
    width: 16px;
    height: 16px;
}
.company_header .header_main .header_fenxiang:active {
    opacity: 0.7;
}

.company_header .company_menu {
    height: 48px;
    background: #fff;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ececec;
}
.company_header .company_menu .company_menu_box {
    flex: 1;
    text-align: center;
}
.company_header .company_menu a {
    display: block;
    font-size: clamp(14px, 2vw, 16px);
    color: #333;
    line-height: 48px;
}
.company_header .company_menu a:active {
    color: #3ba7e8;
}

/* ===== 头部 Hero ===== */
.company_banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: url("images/tbbj.png") center center / cover no-repeat;
}
.company_banner > .company_banner {
    display: none;
}
.company_zyxx {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: clamp(30px, 8vw, 50px) 12px clamp(24px, 6vw, 40px);
}
.company_zyxx_box {
    padding-top: 0;
}
.company_tx_pic {
    width: clamp(90px, 20vw, 120px);
    height: clamp(90px, 20vw, 120px);
    margin: 0 auto;
    background: #fff;
    padding: 8px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.company_tx_pic img {
    width: 100%;
    height: 100%;
    display: block;
}
.company_title {
    margin-top: clamp(20px, 5vw, 30px);
}
.company_title h1 {
    font-size: clamp(20px, 5vw, 26px);
    font-weight: 700;
    color: #2f3e2c;
    letter-spacing: 2px;
}
.company_title p {
    margin-top: 16px;
    font-size: clamp(14px, 2vw, 16px);
    color: #5b6a55;
    letter-spacing: 1px;
}

/* ===== 胶囊导航卡 ===== */
body > .company_menu {
    position: relative;
    margin: -20px clamp(12px, 3vw, 16px) 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    height: 48px;
    display: flex;
    align-items: center;
    z-index: 100;
    overflow: hidden;
}
body > .company_menu.fixed {
    position: fixed;
    top: 56px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    margin: 0;
    z-index: 998;
}
.company_banner > .company_menu {
    position: relative;
    margin: 30px clamp(12px, 3vw, 16px) 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    height: 48px;
    display: flex;
    align-items: center;
    z-index: 10;
    overflow: hidden;
}
.company_zyxx .company_menu {
    position: relative;
    margin: 30px clamp(12px, 3vw, 16px) 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: 48px;
    display: flex;
    align-items: center;
    z-index: 5;
    overflow: hidden;
}
body > .company_menu .company_menu_box,
.company_banner > .company_menu .company_menu_box,
.company_zyxx .company_menu .company_menu_box {
    flex: 1;
    text-align: center;
    font-size: clamp(15px, 2.5vw, 18px);
    color: #1a2924;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
body > .company_menu .company_menu_box::after,
.company_banner > .company_menu .company_menu_box::after,
.company_zyxx .company_menu .company_menu_box::after {
    content: "";
    position: absolute;
    right: 0;
    top: 18px;
    bottom: 18px;
    width: 1px;
    background: #4a7a3a;
}
body > .company_menu .company_menu_box:nth-child(4)::after,
.company_banner > .company_menu .company_menu_box:nth-child(4)::after,
.company_zyxx .company_menu .company_menu_box:nth-child(4)::after {
    display: none;
}
body > .company_menu .company_menu_box a,
.company_banner > .company_menu .company_menu_box a,
.company_zyxx .company_menu .company_menu_box a {
    display: block;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a2924;
    transition: all 0.3s;
}
.company_banner > .company_menu .company_menu_box.active a,
.company_banner > .company_menu .company_menu_box a:active,
.company_zyxx .company_menu .company_menu_box.active a,
.company_zyxx .company_menu .company_menu_box a:active {
    color: #4a7a3a;
    font-weight: 600;
}
.company_banner > .company_menu .company_menu_box p,
.company_zyxx .company_menu .company_menu_box p {
    display: none;
}

/* ===== 通用卡片 ===== */
.card {
    background: linear-gradient(180deg, #fdfdf9 0%, #f4f8ee 100%);
    padding: clamp(16px, 4vw, 22px) clamp(16px, 4vw, 22px) clamp(18px, 4vw, 24px);
    box-shadow: 0 2px 10px rgba(80, 120, 60, 0.06);
    margin: 0 clamp(12px, 3vw, 16px);
    border-radius: 12px;
}
.card-title {
    font-size: clamp(18px, 4vw, 22px);
    font-weight: 800;
    color: #2f3e2c;
    letter-spacing: 1px;
}
.card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}
.more-link {
    font-size: 14px;
    color: #6a7a64;
}

/* ===== 公司简介卡 ===== */
.intro-card {
    position: relative;
    background: url("images/gsbjt.png") center center / cover no-repeat;
    overflow: hidden;
    margin: 0 clamp(12px, 3vw, 16px) clamp(40px, 10vw, 60px);
    border-radius: 12px;
}
.intro-card.about-page {
    margin-bottom: clamp(60px, 15vw, 100px);
}
.intro-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.82);
    z-index: 0;
}
.intro-card > * {
    position: relative;
    z-index: 1;
}
.intro-card .intro-body {
    margin-top: 14px;
    position: relative;
    z-index: 1;
}
.intro-text {
    font-size: clamp(13px, 2vw, 14px);
    line-height: 2;
    color: #2f3e2c;
    width: 100%;
    text-align: justify;
}
.intro-text b {
    font-weight: 700;
    color: #1f2e1c;
}
.intro-illu, .illu-img, .illu-label {
    display: none;
}
.more-btn {
    display: inline-block;
    margin-top: 16px;
	right: 5px;
    padding: 8px 22px;
    background: #e6f0d8;
    color: #4a7a3a;
    font-size: 14px;
    border-radius: 18px;
    border: 1px solid #cfe1b8;
	float: right; /* 右浮动 */
}

/* ===== 产品信息 ===== */
.products-card {
    margin: 0;
    border-radius: 0;
    padding-bottom: 10px;
}
.product-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(10px, 2vw, 12px);
    padding: 0 clamp(12px, 3vw, 16px);
}
.view-more-btn {
    display: block;
    margin: 20px auto 0;
    width: clamp(260px, 60vw, 280px);
    height: 42px;
    line-height: 42px;
    text-align: center;
    background: #e6f0d8;
    color: #4a7a3a;
    font-size: clamp(14px, 2.5vw, 16px);
    font-weight: 600;
    border-radius: 21px;
    box-shadow: none;
    border: 1px solid #cfe1b8;
    letter-spacing: 2px;
}
.view-more-btn:active {
    filter: brightness(0.92);
}
.product {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(60, 90, 40, 0.08);
    border: 1px solid #e8eee0;
}
.product-img {
    position: relative;
    width: 100%;
    height: clamp(200px, 40vw, 250px);
    background: linear-gradient(135deg, #ffe7383b 100%, #fbf649a3 60%, #ffe7383b 100%);
    overflow: hidden;
    /* 新增：弹性居中 align-items: center; */
 	 display: flex;
   /* 从上到下align-items: center; */
    justify-content: center;
}
/* 内部图片固定宽250px，高度自动 */
.product-img img {
    width: 250px;
    height: auto;
    object-fit: contain;
}
.img-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 70%, rgba(0, 0, 0, 0.35), transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.18), transparent 45%);
    opacity: 0.6;
}
.tag-yn {
    position: absolute;
    top: 6px;
    left: 6px;
    background: #b03a2a;
    color: #fff;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 2px;
    transform: scale(0.9);
    transform-origin: top left;
}
.tag-pill {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #f2c94c;
    color: #6a4a10;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}
.pkg {
    position: absolute;
    left: 50%;
    top: 48%;
    transform: translate(-50%, -50%);
    width: 80%;
    background: linear-gradient(180deg, #fff 0%, #eef5e3 100%);
    border-radius: 4px;
    text-align: center;
    padding: 12px 6px 14px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
}
.pkg-title {
    font-size: clamp(16px, 3vw, 18px);
    font-weight: 800;
    color: #2c5b1f;
    letter-spacing: 1px;
}
.pkg-en {
    margin-top: 2px;
    font-size: 8px;
    color: #5b7a48;
    letter-spacing: 0.5px;
}
.ribbon {
    position: absolute;
    left: 0;
    bottom: 30px;
    background: #e87b2a;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    line-height: 1.2;
    text-align: center;
    border-radius: 0 4px 4px 0;
}
.ribbon-text {
    position: absolute;
    left: 60px;
    bottom: 28px;
    color: #fff;
    font-size: clamp(16px, 3vw, 18px);
    font-weight: 800;
    letter-spacing: 6px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.product-meta {
    padding: 10px 12px 4px;
}
.spec, .medical {
    font-size: 12px;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.spec {
    color: #555;
    margin-bottom: 4px;
}
.medical {
    color: #4a7a3a;
}
.detail-btn {
    display: block;
    margin: 10px 12px 14px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border: 1px solid #6aae4a;
    color: #4a7a3a;
    border-radius: 16px;
    font-size: 13px;
}
.detail-btn:active {
    background: #eaf5dd;
}
.foot_box {
    height: 0;
}

/* ===== 底部固定操作栏 ===== */
.product_footer {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    height: 56px;
    display: flex;
    align-items: center;
    z-index: 998;
}
.product_footer_box {
    width: 100%;
    height: 100%;
    display: flex;
}
.product_footer_box > div {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #fff;
    font-size: 13px;
    font-weight: 400;
    position: relative;
}
.product_footer_box > div a {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #fff;
}
.product_footer_box > div i {
    display: flex;
    align-items: center;
    justify-content: center;
}
.product_footer_box > div i img {
    width: 24px;
    height: 24px;
}
.product_footer_box > div span {
    font-size: 15px;
    line-height: 1;
}
.cpzsxq_footer_tell {
    background: #007339;
}
.cpzsxq_footer_zjdh {
    background: #009933;
}
.cpzsxq_footer_zxly {
    background: #00AE57;
}
.product_footer_box > div:active {
    filter: brightness(0.9);
}

/* ===== 在线留言表单 ===== */
.company_message_box {
    margin-top: 14px;
}
.company_message_box input,
.company_message_box textarea {
    display: block;
    width: 100%;
    border: 1px solid #cfe1b8;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    color: #2f3e2c;
    background: #fff;
    margin-bottom: 12px;
    outline: none;
    font-family: inherit;
    -webkit-appearance: none;
}
.company_message_box input:focus,
.company_message_box textarea:focus {
    border-color: #6aae4a;
}
.company_message_box textarea {
    min-height: 96px;
    resize: none;
    line-height: 1.6;
}
.company_message_box .tj_message {
    height: 44px;
    line-height: 44px;
    text-align: center;
    background: #54b223;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 22px;
    letter-spacing: 2px;
    margin-bottom: 0;
}
.company_message_box .tj_message:active {
    filter: brightness(0.92);
}

/* ========== 弹窗样式彻底分离（关键修复） ========== */
/* 1、企业留言弹窗 独立类名 message-ly */
.message-ly {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
}
.message-ly .fenxiang_bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}
.message-ly .message_cont {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 86%;
    max-width: 500px;
    background: linear-gradient(180deg, #fdfdf9 0%, #f4f8ee 100%);
    border-radius: 14px;
    padding: clamp(16px, 4vw, 22px) clamp(16px, 4vw, 20px) 18px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}
.message-ly .message_cont h2 {
    font-size: 17px;
    font-weight: 700;
    color: #2f3e2c;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 16px;
}
.message-ly .company_message_box input,
.message-ly .company_message_box textarea {
    display: block;
    width: 100%;
    border: 1px solid #cfe1b8;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    color: #2f3e2c;
    background: #fff;
    margin-bottom: 12px;
    outline: none;
    font-family: inherit;
    -webkit-appearance: none;
}
.message-ly .company_message_box input:focus,
.message-ly .company_message_box textarea:focus {
    border-color: #6aae4a;
}
.message-ly .company_message_box textarea {
    min-height: 90px;
    resize: none;
    line-height: 1.6;
}
.message-ly .message_foot {
    display: flex;
    gap: 12px;
    margin-top: 6px;
}
.message-ly .message_foot .tj_message,
.message-ly .message_foot .qx_message {
    flex: 1;
    height: 42px;
    line-height: 42px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    border-radius: 21px;
    letter-spacing: 2px;
}
.message-ly .message_foot .tj_message {
    background: #54b223;
    color: #fff;
}
.message-ly .message_foot .qx_message {
    background: #e6f0d8;
    color: #4a7a3a;
    border: 1px solid #cfe1b8;
}
.message-ly .message_foot .tj_message:active,
.message-ly .message_foot .qx_message:active {
    filter: brightness(0.92);
}

/* 2、分享弹窗 独立类名 message-share */
.message-share {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
}
.message-share .fenxiang_bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}
.message-share .message_cont {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 86%;
    max-width: 500px;
    background: linear-gradient(180deg, #fdfdf9 0%, #f4f8ee 100%);
    border-radius: 14px;
    padding: clamp(16px, 4vw, 22px) clamp(16px, 4vw, 20px) 18px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}
.message-share .message_cont h2 {
    font-size: 17px;
    font-weight: 700;
    color: #2f3e2c;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 16px;
}
/* 分享渠道布局 */
.share-box {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin: 10px 0 20px;
}
.share-item {
    width: 70px;
    text-align: center;
}
.share-item img {
    width: 40px;
    height: 40px;
    margin: 0 auto 6px;
}
.share-item span {
    font-size: 12px;
    color: #333;
}
.message-share .message_foot {
    display: flex;
    gap: 12px;
    margin-top: 6px;
}
.message-share .message_foot .qx_message {
    flex: 1;
    height: 42px;
    line-height: 42px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    border-radius: 21px;
    letter-spacing: 2px;
    background: #e6f0d8;
    color: #4a7a3a;
    border: 1px solid #cfe1b8;
}
.message-share .message_foot .qx_message:active {
    filter: brightness(0.92);
}

/* ===== 提示浮层 ===== */
.alert_prompt {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
}
.alert_prompt_p {
    display: none;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 14px;
    padding: 12px 20px;
    border-radius: 8px;
    max-width: 240px;
    text-align: center;
    line-height: 1.5;
}
.alert_prompt_p.on {
    display: block;
}

/* ========== 多设备媒体查询适配 ========== */
@media screen and (max-width:767px) {
    html {
        font-size: 13px;
    }
    .product-grid {
        grid-template-columns: 1fr;
    }
    .share-box {
        gap: 10px;
    }
    .share-item {
        width: 60px;
    }
}
@media screen and (min-width:768px) and (max-width:1024px) {
    html {
        font-size: 14px;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media screen and (min-width:1025px) {
    html {
        font-size: 15px;
    }
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}