/* =========================================================
   前台小图片 CSS 化（imgless）
   原站烘焙/装饰小图改用 CSS 渐变、SVG data-uri 与真实文字。
   加载顺序：test.css 之后、页面 Head 区块与 *_top.css 之前。
   ========================================================= */

/* ── 语言切换小国旗（原 Chinese/English/Japanese.jpg，452px 源图缩至 15x10 显示） ── */
.flag {
    display: inline-block;
    width: 15px;
    height: 10px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .1);
    vertical-align: middle;
}

.flag-cn { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20'%3E%3Crect width='30' height='20' fill='%23de2910'/%3E%3Cpath fill='%23ffde00' d='M5 2 7.85 4.07 6.76 7.43 3.24 7.43 2.15 4.07Z'/%3E%3Ccircle cx='10' cy='2.2' r='1' fill='%23ffde00'/%3E%3Ccircle cx='11.6' cy='4.4' r='1' fill='%23ffde00'/%3E%3Ccircle cx='11.6' cy='7.2' r='1' fill='%23ffde00'/%3E%3Ccircle cx='10' cy='9.4' r='1' fill='%23ffde00'/%3E%3C/svg%3E") center/contain no-repeat; }

.flag-en { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20'%3E%3Crect width='30' height='20' fill='%23012169'/%3E%3Cpath d='M0 0 30 20M30 0 0 20' stroke='%23fff' stroke-width='4'/%3E%3Cpath d='M0 0 30 20M30 0 0 20' stroke='%23c8102e' stroke-width='1.6'/%3E%3Cpath d='M15 0V20M0 10H30' stroke='%23fff' stroke-width='6'/%3E%3Cpath d='M15 0V20M0 10H30' stroke='%23c8102e' stroke-width='3.2'/%3E%3C/svg%3E") center/contain no-repeat; }

.flag-jp { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20'%3E%3Crect width='30' height='20' fill='%23fff'/%3E%3Ccircle cx='15' cy='10' r='6' fill='%23bc002d'/%3E%3C/svg%3E") center/contain no-repeat; }

/* ── 面包屑导航（compat 列表/详情与 hle 页顶部，行内式；原白圆角条已弃用） ── */
.crumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 4px 0 12px;
    font-size: 13px;
    color: #999;
}

.crumb a { color: #999; text-decoration: none; display: inline-flex; align-items: center; }
.crumb a:hover { color: #da251c; }

.crumb .crumb-home { gap: 6px; color: #666; font-weight: 500; }

.crumb .crumb-home::before {
    content: '';
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23da251c' d='M8 1.2 .8 8h2.4v6.4h3.6v-3.2c0-.9.7-1.6 1.6-1.6s1.6.7 1.6 1.6v3.2h3.6V8h2.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.crumb .crumb-home:hover { color: #da251c; }

.crumb .sep { margin: 0 9px; color: #c4c9d0; font-family: Arial, sans-serif; }
.crumb .cur { color: #555; }

/* ── 详情页标题区：左对齐标题 + 图标化日期/浏览量 ── */
.d-head { width: 689px; margin: 0 auto 16px; padding: 2px 0 14px; border-bottom: 1px solid #ececec; text-align: left; }
.d-title { font-size: 20px; font-weight: bold; color: #22283a; line-height: 30px; margin: 0 0 10px; }
.d-meta { display: flex; align-items: center; gap: 18px; font-size: 12.5px; color: #999; }
.d-meta span { display: inline-flex; align-items: center; gap: 5px; }
.d-meta .d-date::before { content: ''; width: 13px; height: 13px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b0b6bf' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='4' width='18' height='17' rx='2'/%3E%3Cpath d='M8 2v4M16 2v4M3 9h18'/%3E%3C/svg%3E") center/contain no-repeat; }
.d-meta .d-eye::before { content: ''; width: 13px; height: 13px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b0b6bf' stroke-width='2'%3E%3Cpath d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7S1 12 1 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center/contain no-repeat; }

/* ── 列表条目虚线分隔（原 line1.gif 4x5 灰色虚线图案） ── */
.sep-line { border-bottom: 1px dashed #9a9a9a; }

/* ── 首页栏目列表容器（原 line.gif 240x1 近白底纹平铺 → 纯白） ── */
.list-wrap { background: #fff; }

/* ── 侧栏：业务导航行卡 + 典型客户卡片（对齐首页卡片语言，原橙块按钮/烘焙图已弃用） ── */
.side-card {
    width: 210px;
    box-sizing: border-box;
    margin: 0 auto 12px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .05);
    overflow: hidden;
}

.side-nav { display: flex; flex-direction: column; gap: 8px; padding: 10px; margin: 10px auto 12px; }

.side-link {
    display: flex;
    align-items: center;
    gap: 9px;
    height: 46px;
    padding: 0 10px;
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 8px;
    text-decoration: none;
    color: #444;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .04);
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

/* 四色浅底区分业务（呼应首页幽灵按钮 b1-b4），悬停填充实色 */
.side-link.b1 { background: #e6f1f7; border-color: #c3dbe8; }
.side-link.b2 { background: #edf4e4; border-color: #d2e0bd; }
.side-link.b3 { background: #f0ebf6; border-color: #d8cde6; }
.side-link.b4 { background: #f9ece4; border-color: #ebd1c0; }

.side-link:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0, 0, 0, .08); }
.side-link.b1:hover { background: #2e87a9; border-color: #2e87a9; color: #fff; }
.side-link.b2:hover { background: #6f9a44; border-color: #6f9a44; color: #fff; }
.side-link.b3:hover { background: #8064a2; border-color: #8064a2; color: #fff; }
.side-link.b4:hover { background: #bf5f33; border-color: #bf5f33; color: #fff; }

.side-link:hover .side-ico { background: #fff !important; }
.side-link.b1:hover .side-chev, .side-link.b2:hover .side-chev,
.side-link.b3:hover .side-chev, .side-link.b4:hover .side-chev { color: rgba(255, 255, 255, .8); }

.side-ico {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.side-ico svg { width: 17px; height: 17px; }

.side-txt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.side-chev { color: #c4c9d0; font-family: Arial, sans-serif; font-size: 15px; font-style: normal; transition: color .2s ease; }
.side-link:hover .side-chev { color: #da251c; }

.side-head {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-top: 3px solid #cb1621;
    background: linear-gradient(#fdfdfd, #f1f1f1);
    border-bottom: 1px solid #eee;
    white-space: nowrap;
}

.side-head .bt { font-weight: bold; color: #ff0000; font-size: 12px; }
.side-head .be { color: #9a9a9a; font-size: 11px; margin-left: 4px; overflow: hidden; }
.side-head .m { margin-left: auto; color: #8a8a8a; font-size: 11px; text-decoration: none; flex: none; }
.side-head .m:hover { color: #cb1621; }

/* 小节标签与 logo 格子：覆盖 test.css 旧样式（imgless 后加载，同特异性取胜） */
.slideImgs .ihead {
    background: #eaf2ff;
    color: #0266c8;
    padding: 4px 8px;
    border-radius: 4px;
    margin: 8px 6px 6px;
    font-weight: bold;
    font-size: 11px;
}

/* ── 首页底部：案例图片卡片 / 合作伙伴卡片 / 搜索条 ── */
.altp-body { padding: 14px 10px 16px; }

.altp-item {
    float: left;
    width: 140px;
    height: 90px;
    margin: 0 6px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
}

.altp-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.altp-item:hover img { transform: scale(1.07); }

.hzhb-body { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 14px 16px 16px; }

.hzhb-item {
    border: 1px solid #eef0f3;
    border-radius: 6px;
    padding: 9px 12px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.hzhb-item:hover { border-color: rgba(218, 37, 28, .45); box-shadow: 0 3px 10px rgba(0, 0, 0, .08); transform: translateY(-2px); }

.hzhb-item img { display: block; }

.home-search { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 8px 0 30px; }

.home-search-input {
    width: 320px; height: 42px;
    border: 1px solid #dcdfe6; border-radius: 8px;
    padding: 0 14px; font-size: 14px; outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.home-search-input:focus { border-color: rgba(218, 37, 28, .5); box-shadow: 0 0 0 3px rgba(218, 37, 28, .12); }

.home-search-btn {
    height: 42px; padding: 0 26px; border: none; border-radius: 8px;
    background: #da251c; color: #fff; font-size: 14px; cursor: pointer; transition: background .2s ease;
}
.home-search-btn:hover { background: #cb1621; }

.home-search-cert {
    height: 42px; padding: 0 24px; margin-left: 30px;
    border: 1px solid rgba(218, 37, 28, .5); border-radius: 8px;
    background: #fff; color: #da251c; font-size: 14px; cursor: pointer; transition: all .2s ease;
}
.home-search-cert:hover { background: #da251c; color: #fff; }

/* ── en/jp 页脚红色斜纹条幅（原 bottom_bg.gif 960x38） ── */
.footer-ribbon {
    width: 960px;
    height: 38px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: repeating-linear-gradient(115deg, #e13a2f 0 16px, #d02b20 16px 32px);
    border-radius: 2px;
}

.footer-ribbon span { color: #fff; font-size: 12px; letter-spacing: .5px; text-shadow: 0 1px 1px rgba(0, 0, 0, .2); }

/* ── 在线考试插画（原 exp_09.png App 图标 + 题库标签） ── */
.exam-ico {
    width: 58px;
    height: 70px;
    flex: none;
    border-radius: 10px;
    background: linear-gradient(180deg, #3d9bff, #0270ff);
    box-shadow: 0 3px 8px rgba(2, 112, 255, .3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.exam-ico svg { width: 24px; height: 24px; }

.exam-ico em { font-style: normal; color: #fff; font-size: 11px; font-weight: bold; letter-spacing: 2px; }

/* ── 华菱教育徽章（原 hle_title.gif 蓝底徽章） ── */
.hle-badge,
a.hle-badge:link,
a.hle-badge:visited {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 36px;
    padding: 0 16px 0 5px;
    border-radius: 6px;
    background: linear-gradient(#39a0e8, #0266c8);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(2, 102, 200, .3);
}

.hle-badge::before {
    content: '教育';
    width: 27px;
    height: 27px;
    border: 1.5px solid rgba(255, 255, 255, .85);
    border-radius: 50%;
    font-size: 9px;
    line-height: 25px;
    text-align: center;
    font-weight: bold;
    letter-spacing: 1px;
}

.hle-badge b { font-size: 17px; letter-spacing: 2px; color: #fff; }

.hle-badge:hover { color: #fff; filter: brightness(1.06); }

/* ── 服务领域彩色标签块（原 fwly.gif 240x232 烘焙色块 + 13/12 个图片热区） ── */
.fw-grid { width: 240px; margin: 0 auto 10px; display: flex; flex-direction: column; gap: 5px; }

.fw-row { display: flex; gap: 5px; }

.fw-grid a,
.fw-grid a:link,
.fw-grid a:visited {
    height: 53px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2px;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
    word-break: normal;
    text-decoration: none;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .18);
    box-shadow: inset 0 -2px 3px rgba(0, 0, 0, .12), inset 0 1px 0 rgba(255, 255, 255, .25);
}

.fw-grid a:hover { filter: brightness(1.12); color: #fff; }

.fw-red { background: #df4a4c; }
.fw-blue { background: #3d97e8; }
.fw-navy { background: #1d5faa; }
.fw-teal { background: #1fb3a4; }
.fw-darkred { background: #c0392b; }

/* en 版布局：12 块 5 行，其中 New energy 为跨两行窄块（英文允许折行） */
.fw-en a { font-size: 12px; line-height: 15px; height: auto; min-height: 39px; white-space: normal; }
.fw-en > .fw-row { height: 39px; }
.fw-en > .fw-row.tall { height: 83px; }
.fw-en .fw-sub { flex: 187 1 0; display: flex; flex-direction: column; gap: 5px; }
.fw-en .fw-sub .fw-row { height: auto; flex: 1; }
.fw-en .fw-sub a { height: auto; }

/* ── en/jp 首页服务项目（原 fwxm.jpg 灰底照片 + 4 个烘焙椭圆按钮 + 热区） ── */
.fwxm {
    width: 740px;
    height: 153px;
    border-radius: 8px;
    background: linear-gradient(120deg, #f7f7f7 0%, #ececec 55%, #e2e2e2 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    box-sizing: border-box;
}

.fwxm-hd { position: absolute; left: 14px; top: 8px; display: flex; align-items: baseline; gap: 7px; }

.fwxm-hd b { color: #e60012; font-size: 14px; }

.fwxm-hd span { color: #9a9a9a; font-size: 12px; font-family: Arial, sans-serif; }

.fwxm a,
.fwxm a:link,
.fwxm a:visited {
    width: 118px;
    height: 76px;
    border-radius: 50%;
    background: radial-gradient(ellipse at 42% 30%, #ee5a4d, #d0190b 70%, #b01208);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 3px 6px rgba(0, 0, 0, .25), inset 0 2px 3px rgba(255, 255, 255, .3);
    transition: filter .15s;
}

.fwxm a:hover { filter: brightness(1.08); color: #fff; }

.fwxm a i { font-style: normal; font-size: 12px; line-height: 16px; font-weight: bold; display: block; }

.fwxm a em { font-style: normal; font-size: 12px; line-height: 16px; display: block; margin-top: 2px; font-weight: bold; }

/* ── en 首页右栏三叠卡链接（原 33.jpg 烘焙卡 + 3 个热区） ── */
.stack33 {
    width: 210px;
    border: 1px solid #ececec;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .08);
}

.stack33 a,
.stack33 a:link,
.stack33 a:visited {
    display: flex;
    align-items: center;
    height: 50px;
    padding: 0 10px;
    gap: 8px;
    text-decoration: none;
    color: #333;
    font-size: 12px;
    font-weight: bold;
}

.stack33 a + a { border-top: 1px solid #f0f0f0; }

.stack33 a:hover { background: #f7fafd; color: #0270ff; }

.stack33 .petal { width: 30px; height: 30px; flex: none; background: center/contain no-repeat; }

.stack33 .petal-g { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='%233fae49'%3E%3Cellipse cx='18' cy='12' rx='7' ry='11' transform='rotate(-30 18 12)'/%3E%3Cellipse cx='28' cy='20' rx='7' ry='11' transform='rotate(40 28 20)'/%3E%3Cellipse cx='12' cy='25' rx='7' ry='11' transform='rotate(100 12 25)'/%3E%3C/g%3E%3C/svg%3E"); }

.stack33 .petal-o { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='%23f05a28'%3E%3Cellipse cx='18' cy='12' rx='7' ry='11' transform='rotate(-30 18 12)'/%3E%3Cellipse cx='28' cy='20' rx='7' ry='11' transform='rotate(40 28 20)'/%3E%3Cellipse cx='12' cy='25' rx='7' ry='11' transform='rotate(100 12 25)'/%3E%3C/g%3E%3C/svg%3E"); }

.stack33 .petal-m { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='%23e0356e'%3E%3Cellipse cx='18' cy='12' rx='7' ry='11' transform='rotate(-30 18 12)'/%3E%3Cellipse cx='28' cy='20' rx='7' ry='11' transform='rotate(40 28 20)'/%3E%3Cellipse cx='12' cy='25' rx='7' ry='11' transform='rotate(100 12 25)'/%3E%3C/g%3E%3C/svg%3E"); }

/* ── 首页横幅轮播现代化（Swiper 4）：圆角/柔和阴影/悬停箭头/品牌红圆点 ── */
.banner-swiper {
    width: 980px;
    max-width: 100%;
    margin: 0 auto;
    /* 直角无缝：与顶部导航衔接保持旧版观感，不加圆角与底色 */
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
    background: transparent;
}

.banner-swiper .swiper-slide a { display: block; }

.banner-swiper .swiper-slide img {
    display: block;
    width: 100%;
    height: auto;
}

/* 圆点分页：默认半透明白，激活拉长为品牌红胶囊 */
.banner-swiper .swiper-pagination { bottom: 12px; }

.banner-swiper .swiper-pagination-bullet {
    width: 9px;
    height: 9px;
    margin: 0 4px;
    background: rgba(255, 255, 255, .6);
    opacity: 1;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
    transition: width .25s ease, background .25s ease;
}

.banner-swiper .swiper-pagination-bullet-active {
    width: 24px;
    border-radius: 5px;
    background: var(--al-primary, #da251c);
}

/* 箭头：毛玻璃圆片 + 白色 chevron，悬停容器时浮现，悬停自身变品牌红 */
.banner-swiper .swiper-button-prev,
.banner-swiper .swiper-button-next {
    width: 42px;
    height: 42px;
    margin-top: -21px;
    border-radius: 50%;
    opacity: 0;
    background-color: rgba(18, 24, 34, .4);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 17px 17px;
    transition: opacity .25s ease, background-color .2s ease;
}

.banner-swiper:hover .swiper-button-prev,
.banner-swiper:hover .swiper-button-next { opacity: 1; }

.banner-swiper .swiper-button-prev { left: 14px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E"); }

.banner-swiper .swiper-button-next { right: 14px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E"); }

.banner-swiper .swiper-button-prev:hover,
.banner-swiper .swiper-button-next:hover { background-color: rgba(218, 37, 28, .85); }

/* 触屏设备：箭头常显（无 hover 通道） */
@media (hover: none) {
    .banner-swiper .swiper-button-prev,
    .banner-swiper .swiper-button-next { opacity: 1; }
}

/* ── compat 列表（style a）：行卡条目 + 胶囊分页 ── */
.alist { width: 689px; margin: 0 auto; text-align: left; }

.alist-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 8px;
    border-bottom: 1px dashed #e8e8e8;
    text-decoration: none;
    transition: background .15s ease;
}

.alist-row:hover { background: #fafbfc; }

.alist-row::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #c4c9d0;
    flex: none;
    transition: background .15s ease;
}

.alist-row:hover::before { background: #da251c; }

.alist-row .t {
    flex: 1;
    min-width: 0;
    color: #444;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .15s ease;
}

.alist-row:hover .t { color: #da251c; }

.alist-row .d { color: #b0b6bf; font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }

.alist-empty { padding: 30px 8px; color: #999; font-size: 13px; }

.cpager {
    width: 689px;
    margin: 16px auto 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cpager .info { font-size: 12.5px; color: #999; margin-right: 6px; font-variant-numeric: tabular-nums; }

.cpager a, .cpager span.pg {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    border: 1px solid #e2e6ec;
    border-radius: 6px;
    font-size: 12.5px;
    color: #555;
    text-decoration: none;
    transition: all .15s ease;
}

.cpager a:hover { border-color: #da251c; color: #da251c; }

.cpager .dis { color: #b9c0cc; background: #f6f8fa; border-color: #eceff3; cursor: default; }
