﻿/* 药店官网 - 功能与版本页（YaoPin/Function.aspx）
   路径基准：本文件位于 /Css/YaoPin/，图片用相对路径 ../Images/YaoPin/
   说明：本页沿用首页 Default.css 的 .yp_page / .yp_div / .yp_btn / .yp_footer 基础样式，
        本文件只写本页新增区块，不修改 Default.css，不影响首页。 */
        .ypf_page .container-xl { max-width: 1240px; margin-left: auto; margin-right: auto;  }

        /* 首屏：直接用整张设计图（PC 4-1.webp / 手机 sj-4-1.webp），文字与按钮都在图里。
           图上的两个按钮叠透明热区，保留「查看版本对比 / 在线咨询」可点。
           热区百分比按原图尺寸换算：PC 5760×1800，手机 1125×1650 */
        .ypf_hero { padding: 0; overflow: hidden; }
        .ypf_hero_pic { position: relative; }
        .ypf_hero_pic > img { display: block; width: 1920px; height: auto; margin:0 auto }
        /* 显隐必须比上面的 .ypf_hero_pic > img (0,1,1) 更强，用 !important，
           否则 PC 端手机图会因为 display:block 一直露出来 */
        .ypf_hero_m { display: none !important; }
        .ypf_hero_hot { position: absolute; display: block; z-index: 1; }
        .ypf_hero_hot_pc1 { left: 18.7%; top: 66%; width: 9.4%; height: 9.6%; }
        .ypf_hero_hot_pc2 { left: 29.3%; top: 66%; width: 9.1%; height: 9.6%; }
        .ypf_hero_hot_m1, .ypf_hero_hot_m2 { display: none !important; }
        .ypf_btn_fill { background: #0da869; color: #fff !important; box-shadow: 0 8px 18px rgba(13,168,105,.2); }
        .ypf_btn_fill:hover { background: #0b9660; }
        .ypf_btn_line { background: #fff; border: 1px solid #0da869; color: #0da869 !important; }
        .ypf_btn_line:hover { background: #f2fbf7; }

        /* 通用区块标题 */
        .ypf_sec { padding: 92px 0; }
        .ypf_sec .yp_div { margin-bottom: 30px; }
        .ypf_lead { margin: 0 0 70px; text-align: center; color: #6b7772; font-size: 16px; line-height: 1.7; }

        /* 合规 / 服务：左图右文、左文右图 */
        .ypf_intro_photo { overflow: hidden; border-radius: 10px; text-align: center; }
        /* 配图按原始比例：高度固定 360px，宽度 auto 由图片比例算出，不拉伸；容器 text-align:center 让图水平居中 */
        .ypf_intro_photo img { width: auto; height: 360px; display: inline-block; }
        /* 两列改 col-lg-auto 按内容宽度后，给文字列一个合适宽度，避免被撑得过窄 */
        .ypf_points { margin: 0; padding: 0; list-style: none; width: 430px; }
        .ypf_points li { padding: 18px 0; }
    
        .ypf_points h3 { position: relative; margin: 0; padding-left: 20px; font-size: 20px; line-height: 1.5; font-weight: 700; color: #111; }
        .ypf_points h3::before { content: ""; position: absolute; left: 0; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: #0da869; }
        .ypf_points p { margin: 8px 0 0 20px; color: #66726d; font-size: 15px; line-height: 1.75; }
        .ypf_service { background: #f2faf7; }

        /* 产品系列和版本 */
        .ypf_versions { padding: 92px 0 100px; background: #fff; }
        .ypf_cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
        .ypf_card { position: relative; display: flex; flex-direction: column; padding: 30px 24px 28px; background: #fff; border: 1px solid #a8a8a8; border-radius: 10px; box-shadow: 0 14px 40px rgba(11,41,32,.06); }
        .ypf_card_hot { border: 2px solid #0da869; box-shadow: 0 18px 44px rgba(11,41,32,.10); }
        .ypf_card_badge { position: absolute; left: 6px; top: -31px; padding: 5px 16px; border-radius: 5px 5px 0 0; background: #0da869; color: #fff; font-size: 14px; font-weight: 700; }
        .ypf_card h3 { margin: 0; text-align: center; font-size: 22px; font-weight: 700; color: #111; }
        .ypf_tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 20px 0 14px; }
        .ypf_tag { padding: 4px 10px; border-radius: 4px; font-size: 14px; line-height: 1.5; }
        .ypf_tag_green { background: #e6f6f4; color: #0da869; }
        .ypf_tag_blue { background: #edf6fd; color: #2a75c4; }
        .ypf_tag_orange { background: #fdf2e3; color: #d67b1c; }
        .ypf_card_desc { margin: 0; padding: 12px; border-radius: 5px; background: #f3f4f8; color: #66726d; font-size: 15px; line-height: 1.6; text-align: center;margin-bottom: 14px; }
        /* 说明条下方到卡片底部是一整块浅蓝灰底（含按钮区），左右通栏、底部跟随卡片圆角 */
        .ypf_card_body { flex: 1; margin: 0 -24px;     padding: 25px 24px 40px; background: #f7fafd; }
        .ypf_card_body ul { margin: 0; padding: 0; list-style: none; }
        .ypf_card_body li { position: relative; padding: 8px 0 8px 18px; color: #3d4a45; font-size: 16px; line-height: 1.6; }
        .ypf_card_body li::before { content: ""; position: absolute; left: 0; top: 16px; width: 6px; height: 6px; border-radius: 50%; background: #0da869; }
        .ypf_card_btns { display: flex; gap: 10px; justify-content: center; margin: 0 -24px -28px; padding: 0 24px 50px; background: #f7fafd; border-radius: 0 0 9px 9px; }
        .ypf_card_btns .ypf_btn { height: 42px; line-height: 42px; padding: 0 30px; font-size: 14px; border-radius: 4px; }
        /* 版本卡片 PC 端鼠标移入上浮：只改 transform/阴影/边框色，不占布局流，其它卡片不动。
           用 min-width:992px 限定，手机触屏无 hover 状态、不受影响 */
        @media (min-width: 992px) {
            .ypf_card { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
            .ypf_card:hover {
                transform: translateY(-8px);
                border-color: #0da869;
                box-shadow: 0 24px 52px rgba(11,41,32,.14);
            }
            /* 推荐卡片保留更强的绿色阴影层次 */
            .ypf_card_hot:hover { box-shadow: 0 28px 56px rgba(13,168,105,.26); }
        }

        /* 版本与功能对比表 */
        .ypf_compare { padding: 92px 0 96px; background: #f2faf7; }
        .ypf_compare .yp_div { margin-bottom: 36px; }
        .ypf_table_wrap { overflow-x: auto; border-radius: 10px; background: #fff; border: 1px solid #a8a8a8; box-shadow: 0 14px 40px rgba(11,41,32,.06); }
        .ypf_table { width: 100%; min-width: 900px; border-collapse: collapse; table-layout: fixed; }
        .ypf_table th, .ypf_table td { padding: 20px 22px; text-align: left; border-bottom: 1px solid #eff3f1; font-size: 15px; line-height: 1.65; vertical-align: middle; }
        .ypf_table thead th { background: #f0f2f5; color: #111; font-weight: 700; }
        .ypf_table thead th:first-child { width: 19%; }
        .ypf_table thead th:nth-child(2) { width: 51%; }
        .ypf_table thead th:nth-child(3), .ypf_table thead th:nth-child(4) { width: 15%; text-align: center; }
        .ypf_table tbody td:first-child { color: #222; font-weight: 700; }
        .ypf_table tbody td:nth-child(2) { color: #66726d; }
        .ypf_table tbody td:nth-child(3), .ypf_table tbody td:nth-child(4) { text-align: center; color: #0da869; font-size: 22px; font-weight: 700; }
        .ypf_table tbody td .ypf_no { color: #c8d1cd; font-size: 18px; }
        .ypf_table tbody tr:last-child td { border-bottom: 0; }
        .ypf_table tbody tr:hover { background: #fafdfb; }
        .ypf_compare_btn { margin-top: 42px; text-align: center; }
        .ypf_compare_btn .ypf_btn { height: 48px; line-height: 48px; padding: 0 34px; border-radius: 4px; font-size: 16px; font-weight: 700;padding: 15px 40px; }

        /* PC 端：合规/服务两列以页面中线为界，两张图边缘都对齐中线（设计稿画绿线的位置）；
           文字分别贴着各自的图片，间距收紧。只影响 ≥992px，手机端不受影响 */
        @media (min-width: 992px) {
            .ypf_points { width: auto; max-width: 430px; }
            .ypf_sec .row.g-5 { --bs-gutter-x: 0; }
            .ypf_sec .row > div { flex: 0 0 50%; max-width: 50%; }
            /* 合规：左图右文 —— 图片右边缘正好落在中线，文字只隔 24px */
            .ypf_compliance .row > div:first-child { padding-right: 0; }
            .ypf_compliance .ypf_intro_photo { text-align: right; }
            .ypf_compliance .row > div:last-child { padding-left: 60px; }
            /* 服务：左文右图 —— 图片左边缘正好落在中线，文字靠右贴过来只隔 24px */
            .ypf_service .row > div:first-child { display: flex; justify-content: flex-end; padding-right: 60px; }
            .ypf_service .ypf_intro_photo { text-align: left; }
            .ypf_service .row > div:last-child { padding-left: 0; }
        }

        /* 手机端 */
        @media (max-width: 991px) {
            /* Default.css 给手机端 .yp_page > section 统一加了 20px 左右留白，
               首屏是整张通栏设计图，必须顶到屏幕两边，否则图会被挤窄并露白边 */
            .ypf_page > section.ypf_hero { padding-left: 0 !important; padding-right: 0 !important; }
            .ypf_hero_pc, .ypf_hero_hot_pc1, .ypf_hero_hot_pc2 { display: none !important; }
            /* 手机首屏图按屏幕宽度铺满、等比缩放：去掉 min-width:1920px（会把图撑大只露左上角）。
               !important 用于覆盖基础 .ypf_hero_pic > img 的 width:1920px（特异性更高） */
            .ypf_hero_m { display: block !important; width: 100% !important; min-width: 0 !important; height: auto !important; }
            .ypf_hero_hot_m1, .ypf_hero_hot_m2 { display: block !important; }
            .ypf_hero_hot_m1 { left: 16.9%; top: 83%; width: 32%; height: 8%; }
            .ypf_hero_hot_m2 { left: 54%; top: 83%; width: 30%; height: 8%; }
            .ypf_sec, .ypf_versions, .ypf_compare { padding: 50px 0; }
            /* 手机端标题与副标题间距收紧：原 30px 留白过大 */
            .ypf_sec .yp_div ,.ypf_versions .yp_div { margin-bottom: 10px !important; }   /* 同 m 站 .title 下间距 */
            .ypf_lead { margin-bottom: 24px; font-size: 15px; }
            /* 手机端"服务不分版本"图片放到文字上方（PC 端仍是左文右图） */
            .ypf_service .row > div:last-child { order: -1; }
            /* g-5 在手机端会产生 48px 行间距，是图文之间空白过大的主因 */
            .ypf_sec .row.g-5 { --bs-gutter-y: 16px; }
            .ypf_points { width: 100%; }
            .ypf_intro_photo { margin-bottom: 0; }
            /* 手机端图片铺满列宽，与下方文字列表左右边界对齐，内容不超出图片 */
            .ypf_intro_photo img { width: 100%; height: auto; }
            .ypf_points li { padding: 14px 0; }
            .ypf_points h3 { font-size: 18px; }
            .ypf_cards { grid-template-columns: 1fr; gap: 28px; }
            .ypf_card_hot { margin-top: 20px; }
            /* 手机端卡片要点区与按钮区上下留白：参考 m 站 padding 20px 的呼吸感，
               要点区底部 12->26px、按钮区底部 12->24px，避免按钮贴着文字和卡片底边 */
            .ypf_card_body { padding: 18px 24px 26px; }
            .ypf_card_btns { padding: 0 24px 35px; }
            /* 手机端隐藏"覆盖能力"列，表格自适应屏幕、不再横向滚动 */
            .ypf_table { min-width: 0; }
            .ypf_table thead th:nth-child(2), .ypf_table tbody td:nth-child(2) { display: none; }
            .ypf_table thead th:first-child { width: 46%; }
            .ypf_table thead th:nth-child(3), .ypf_table thead th:nth-child(4) { width: 27%; }
            .ypf_table th, .ypf_table td { padding: 14px 12px; font-size: 14px; }
        }
        @media (max-width: 600px) {
            /* 手机首屏图在 991 断点已切换，这里无需额外调整 */
        }
