/* ============================================================
   关于我们-37 (about_37) 专属样式
   还原自 eco-tableware.com About Us 页(C:/tmp/eco-ref/about.html
   + style.css): 左栏 wrap-menu(cate-top 绿底标题条 + 子菜单项) + 右栏
   .wrapper-right(about-banner 横幅 + page-name 页名条 + 板块内容)。
   左栏口径(style.css 134/136-139 行, main.css 411 行 .pageabout):
     .cate-top   height:47px; line-height:47px; background:#94c33b;
                 text-indent:15px; font-size:18px; color:#fff; Verdana,Arial
     .pageabout  height:55px; line-height:55px; color:#94c33b; padding 0 15px;
                 margin:10px 0; border-bottom:1px solid #eee; font-size:18px
     .name a     font-size:17px; color:#333; hover #94c33b
     .page-name  border-left:5px solid #94c33b; padding:5px 0 5px 30px;
                 font-size:30px; color:#333; margin:50px 0
   两栏宽: .left_outer 23.6% / .wrapper-right 73%(style.css 112/130 行)。
   实例级样式(颜色/字号/间距/列数)由模板内联输出 CSS 变量, 这里只放固定版式。
   引入方: templates/sitebuilder/modules/about_37.html
   ============================================================ */

.ly_about_37 { background-color: #fff; }
.ly_about_37 * { box-sizing: border-box; }
.ly_about_37 img { max-width: 100%; }

/* ---------- 左右两栏(.left_outer 23.6% + .wrapper-right 73% 口径) ---------- */
.ly_about_37 .a37_layout { display: flex; align-items: flex-start; }
.ly_about_37 .a37_menu { flex: none; width: 23.6%; }
.ly_about_37 .a37_main { width: 73%; margin-left: auto; min-width: 0; }

/* ---------- 左栏: cate-top 标题条(原站 .wrap-menu .cate-top 口径;
   背景色/字体颜色/字号走配置变量, 默认值同原站) ---------- */
.ly_about_37 .a37_cate_top {
    height: 47px;
    line-height: 47px;
    background-color: var(--a37-menu-title-bg, #94c33b);
    text-indent: 15px;
    font-size: var(--a37-menu-title-size, 18px);
    color: var(--a37-menu-title-color, #ffffff);
    font-family: Verdana, Arial, sans-serif;
}
/* 左栏子菜单项(原站 .name 口径, 当前项 .pageabout 绿字高亮);
   未选中颜色/选中颜色/字号走配置变量 */
.ly_about_37 .a37_menu_item {
    height: 55px;
    line-height: 55px;
    padding: 0 15px;
    margin: 10px 0;
    border-bottom: 1px solid #eeeeee;
    font-size: var(--a37-menu-item-size, 16px);
    color: var(--a37-menu-item-color, #333333);
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s;
}
.ly_about_37 .a37_menu_item:hover { color: var(--a37-menu-item-active-color, #94c33b); }
/* 当前项: 原站 .pageabout 形态, 选中态只变文字颜色(绿字), 不加背景色 */
.ly_about_37 .a37_menu_item.a37_active {
    color: var(--a37-menu-item-active-color, #94c33b);
}

/* ---------- 右栏横幅(源站 870x140 about-banner 版式): 左对齐, 与下方
   page-name 标题条/内容区左缘对齐(原站横幅不居中)。
   第四轮验收: 按图片实际分辨率展示 —— 不拉伸不裁剪, 容器不锁宽(去掉原
   max-width:870px 上限), 图自然尺寸, 超宽才被 max-width:100% 兜底缩放 ---------- */
.ly_about_37 .a37_banner { margin: 0; }
.ly_about_37 .a37_banner img {
    display: block;
    width: 100%;
    height: auto;
}

/* ---------- 页名标题条(原站 .wrapper-right .page-name 口径) ---------- */
.ly_about_37 .a37_page_name {
    margin: 50px 0;
    padding: 5px 0 5px 30px;
    border-left: 5px solid #94c33b;
    font-size: var(--a37-pc-title-size, 28px);
    color: var(--a37-section-title-color, #222222);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- 板块容器(页内切换显隐) ---------- */
.ly_about_37 .a37_panel { display: none; }
.ly_about_37 .a37_panel.a37_show { display: block; }

/* ---------- Company Profile: 富文本(介绍图注入富文本流) ----------
   原站方案(about.html 109 行): 富文本内容自带 <img style="float: right; width: 350px;
   height: 290px;">, 后续 <p> 文字自然环绕 —— 模板把配置图拼成同款 img 前置串与富文本
   一起 th:utext 输出, img 与 <p> 同流, 环绕与原站 DOM 等价(不再有独立 img 元素/
   wrapper)。清浮动挂 .profile_contents::after(子元素伪元素, .deco-module 根元素的
   伪元素被编辑态占用) */
/* Company Profile 富文本排版: 照原站 .ueeshop_responsive_article_detail(responsive.css
   244-245 行)+ #global_editor_contents(global.css 131 行)口径:
   .ueeshop_responsive_article_detail{margin:30px 0; overflow:hidden;}
   >.contents{color:#555; line-height:180%; font-size:16px; min-height:300px;}
   #global_editor_contents p{margin:5px 0;} */
.ly_about_37 .profile_contents {
    margin: 30px 0;
    line-height: 180%;
    font-size: 16px;
    color: #555555;
    word-break: break-word;
}
.ly_about_37 .profile_contents p { margin: 5px 0; }
.ly_about_37 .profile_contents::after { content: ''; display: block; clear: both; }
.ly_about_37 .profile_contents > :first-child { margin-top: 0; }
.ly_about_37 .profile_contents > :last-child { margin-bottom: 0; }
/* 富文本内图片: 注入的介绍图带行内 style(float/width/height), 行内样式优先级高于
   这里, PC 不干扰; 这里只兜住富文本里其他图片不超宽 */
.ly_about_37 .profile_contents img { max-width: 100%; }
.ly_about_37 .profile_contents:empty { display: none; }

/* ---------- Certificate 证书网格 ---------- */
.ly_about_37 .cert_grid {
    display: grid;
    grid-template-columns: repeat(var(--a37-pc-cert-columns, 2), minmax(0, 1fr));
    gap: 30px 24px;
}
.ly_about_37 .cert_item { text-align: center; }
.ly_about_37 .cert_item .pic_box {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #fff;
}
/* 证书图自身比例不一(徽标/执照), 不锁比例: 宽度固定 84%(撑 84% 格宽, 等比缩放) */
.ly_about_37 .cert_item .pic_box img {
    width: 84%;
    height: auto;
    object-fit: contain;
    display: block;
}
.ly_about_37 .cert_item .name_box {
    margin-top: 10px;
    font-size: 14px;
    color: var(--a37-cert-name-color, #555555);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 编辑态描边(hover/选中)与 cursor 统一在 editor.css 的 .deco-module::before 覆盖层里,
   本文件不再重复一套 outline。锚点 id="certificate" 只做页面内跳转目标, 无样式。 */

/* ============================================================
   移动端(原站响应式: .wrapper-left/.left_outer display:none, 右栏 100%,
   page-name 24px / margin 15px 0 0 —— style.css 199-201 行)
   左栏菜单不整块隐藏: 板块切换入口转横排 tab(一级标题条隐藏,
   两个板块项各占一行的一半), 否则移动端无法切换公司介绍/资质证书。
   ============================================================ */
@media screen and (max-width: 1000px) {
    .ly_about_37 .a37_layout { display: block; }
    .ly_about_37 .a37_menu {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        gap: 10px;
        margin-bottom: 20px;
    }
    /* 一级标题条("About Us" 绿底条)移动端隐藏, 直接给可点的板块 tab */
    .ly_about_37 .a37_cate_top { display: none; }
    .ly_about_37 .a37_menu_item {
        flex: 1;
        height: 42px;
        line-height: 42px;
        padding: 0 10px;
        margin: 0;
        text-align: center;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        background-color: #f7f7f7;
    }
    /* 选中 tab: 背景走二级选中颜色配置(默认 #94c33b), 白字 */
    .ly_about_37 .a37_menu_item.a37_active {
        border-color: var(--a37-menu-item-active-color, #94c33b);
        background-color: var(--a37-menu-item-active-color, #94c33b);
        color: #ffffff;
    }
    .ly_about_37 .a37_main { width: 100%; margin-left: 0; }
    .ly_about_37 .a37_page_name {
        margin: 15px 0 20px;
        font-size: var(--a37-mobile-title-size, 24px);
    }
    /* 移动端取消浮动: 对富文本容器内 img 统一处理(含行内 style 注入的介绍图,
       float/width/height 须 !important 压过行内 style), 图置顶通栏, 文字随后 */
    .ly_about_37 .profile_contents img {
        float: none !important;
        width: 100% !important;
        height: auto !important;
        max-width: 100%;
        margin: 0 0 12px !important;
    }
    /* 原站响应式(responsive.css 506 行): 移动端 article_detail margin 10px 0 */
    .ly_about_37 .profile_contents { margin: 10px 0; }
    /* 移动端资质证书: 一行一张(默认列数 1), 图 100% 宽、取消最大高度限制(等比完整显示) */
    .ly_about_37 .cert_grid {
        grid-template-columns: repeat(var(--a37-mobile-cert-columns, 1), minmax(0, 1fr));
        gap: 20px 14px;
    }
    .ly_about_37 .cert_item .pic_box img {
        width: 100%;
        max-height: none;
    }
    .ly_about_37 .cert_item .name_box { font-size: 13px; }
}
