/* 手机版样式（lk.cm /m/）2026-08-02 */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif; font-size: 14px; color: #333; background: #f5f5f5; line-height: 1.6; }
a { color: #333; text-decoration: none; }
img { border: 0; max-width: 100%; }

.m-wrap { max-width: 640px; margin: 0 auto; background: #f5f5f5; min-height: 100vh; }

/* 头部 */
.m-header { background: #2c6fbb; color: #fff; padding: 12px 15px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 100; }
.m-logo { font-size: 17px; font-weight: bold; }
.m-logo a { color: #fff; }
.m-home-btn { color: #fff; border: 1px solid rgba(255,255,255,0.6); padding: 3px 12px; border-radius: 3px; font-size: 13px; }

/* 导航（汉堡菜单 + 父子结构，参照电脑版 middle 导航） */
.m-nav-wrap { background: #fff; border-bottom: 1px solid #eee; }
.m-menu-btn { width: 100%; background: #fff; border: 0; padding: 11px 15px; text-align: left; font-size: 14px; color: #333; cursor: pointer; font-family: inherit; }
.m-menu-btn.open { color: #2c6fbb; }
.m-nav { display: none; border-top: 1px solid #f0f0f0; }
.m-nav.open { display: block; }
.m-nav-item { display: block; padding: 12px 18px; font-size: 14px; color: #333; border-bottom: 1px solid #f5f5f5; }
.m-nav-item.on { color: #2c6fbb; font-weight: bold; }
.m-nav-parent { width: 100%; background: none; border: 0; border-bottom: 1px solid #f5f5f5; text-align: left; font-family: inherit; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.m-nav-caret { color: #999; font-size: 12px; transition: transform 0.2s; }
.m-nav-parent.open .m-nav-caret { transform: rotate(180deg); }
.m-nav-sub { display: none; background: #f9f9f9; }
.m-nav-sub.open { display: block; }
.m-nav-sub-item { display: block; padding: 11px 18px 11px 32px; font-size: 13px; color: #555; border-bottom: 1px solid #f0f0f0; }
.m-nav-sub-item:before { content: '- '; color: #bbb; }

/* flash */
.m-flash { padding: 10px 15px; }
.m-flash-success { background: #dff0d8; color: #3c763d; padding: 8px 12px; border-radius: 3px; }
.m-flash-error { background: #f2dede; color: #a94442; padding: 8px 12px; border-radius: 3px; }

/* 幻灯 */
.m-slides { overflow: hidden; position: relative; background: #ddd; }
.m-slides-track { display: flex; transition: transform 0.4s ease; }
.m-slide { display: block; width: 100%; flex-shrink: 0; }
.m-slide img { display: block; width: 100%; height: auto; }
.m-slides-dots { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; }
.m-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.5); margin: 0 3px; }
.m-dot.on { background: #fff; }

/* 区块 */
.m-section { background: #fff; margin: 10px; border-radius: 4px; padding: 12px; }
.m-sec-title { font-size: 15px; font-weight: bold; color: #2c6fbb; padding-bottom: 8px; margin-bottom: 10px; border-bottom: 1px solid #eee; }
.m-sec-title a { color: #2c6fbb; }

/* 分类格子 */
.m-cat-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.m-cat { background: #f0f5fb; color: #2c6fbb; padding: 8px 14px; border-radius: 4px; font-size: 13px; border: 1px solid #dce8f5; }

/* 产品网格 */
.m-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.m-grid-item { width: calc(50% - 4px); background: #fff; border: 1px solid #eee; border-radius: 4px; overflow: hidden; }
.m-grid-img { display: block; width: 100%; overflow: hidden; background: #f8f8f8; text-align: center; }
.m-grid-img img { width: 100%; height: auto; display: block; }
.m-grid-name { display: block; padding: 8px 10px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 列表 */
.m-list { list-style: none; }
.m-list li { border-bottom: 1px solid #f0f0f0; }
.m-list li:last-child { border-bottom: 0; }
.m-list li a { display: flex; justify-content: space-between; align-items: center; padding: 12px 2px; }
.m-list-title { font-size: 14px; color: #333; flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin-right: 10px; }
.m-list-time { font-size: 12px; color: #999; flex-shrink: 0; }

/* 页头 */
.m-page-head { background: #fff; padding: 12px 15px; font-size: 15px; font-weight: bold; border-bottom: 1px solid #eee; }

/* 子分类 */
.m-sub-cats { background: #fff; padding: 8px 10px; display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid #eee; }
.m-sub-cats a { font-size: 13px; padding: 5px 10px; border: 1px solid #ddd; border-radius: 3px; color: #555; }
.m-sub-cats a.on { background: #2c6fbb; color: #fff; border-color: #2c6fbb; }

/* 详情 */
.m-detail { background: #fff; margin: 10px; border-radius: 4px; padding: 15px; }
.m-detail-title { font-size: 17px; font-weight: bold; margin-bottom: 8px; line-height: 1.4; }
.m-detail-meta { font-size: 12px; color: #999; padding-bottom: 10px; border-bottom: 1px solid #eee; margin-bottom: 12px; }
.m-detail-img { text-align: center; margin-bottom: 12px; }
.m-detail-img img { max-width: 100%; }
.m-detail-content { font-size: 14px; line-height: 1.8; word-wrap: break-word; }
.m-detail-content img { max-width: 100%; height: auto; }

/* 下载按钮 */
.m-download-btn-wrap { text-align: center; margin: 15px 0; }
.m-download-btn { display: inline-block; background: #2c6fbb; color: #fff; padding: 10px 40px; border-radius: 4px; font-size: 15px; }

/* 留言板 */
.m-gb-list { list-style: none; }
.m-gb-list li { padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.m-gb-head { display: flex; justify-content: space-between; align-items: center; }
.m-gb-time { font-size: 12px; color: #999; }
.m-gb-name { font-size: 12px; color: #888; margin: 4px 0; }
.m-gb-content { font-size: 14px; color: #333; }

/* 表单 */
.m-form { padding: 5px 0; }
.m-form-row { margin-bottom: 12px; }
.m-form-row label { display: block; font-size: 13px; color: #666; margin-bottom: 5px; }
.m-form-row input[type="text"], .m-form-row select, .m-form-row textarea {
    width: 100%; padding: 9px 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; font-family: inherit;
    -webkit-appearance: none; appearance: none; background: #fff;
}
.m-form-row textarea { resize: vertical; }
.m-submit-btn { width: 100%; background: #2c6fbb; color: #fff; border: 0; padding: 11px 0; border-radius: 4px; font-size: 15px; cursor: pointer; }

/* 分页 */
.m-pager { display: flex; justify-content: center; align-items: center; gap: 15px; padding: 15px; font-size: 13px; color: #666; }
.m-pager a { background: #fff; border: 1px solid #ddd; padding: 5px 14px; border-radius: 3px; color: #333; }

/* 空状态 */
.m-empty { text-align: center; color: #999; padding: 30px 0; background: #fff; margin: 10px; border-radius: 4px; }

/* 首页简介/联系 */
.m-about { display: flex; gap: 10px; align-items: flex-start; }
.m-about-img { flex-shrink: 0; width: 100px; }
.m-about-img img { width: 100%; height: auto; border-radius: 3px; }
.m-about-text { font-size: 13px; color: #555; line-height: 1.7; flex: 1; }
.m-about-text strong { display: block; margin-bottom: 4px; color: #333; }
.m-about-more { display: inline-block; margin-top: 8px; color: #2c6fbb; font-size: 13px; }
.m-contact-box p { font-size: 14px; color: #555; padding: 3px 0; }
.m-contact-box a { color: #2c6fbb; }
.m-contact-name { font-size: 15px; font-weight: bold; color: #333; margin-bottom: 4px; }
.m-links { font-size: 13px; color: #555; line-height: 1.8; }
.m-links a { color: #2c6fbb; }

/* 页脚 */
.m-footer { text-align: center; padding: 20px 15px 30px; color: #999; font-size: 12px; }
.m-footer a { color: #2c6fbb; }

/* 搜索框（页头下方） */
.m-search { display: flex; gap: 8px; padding: 8px 10px; background: #fff; border-bottom: 1px solid #e8e8e8; }
.m-search-input { flex: 1; padding: 8px 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; -webkit-appearance: none; appearance: none; }
.m-search-btn { background: #2c6fbb; color: #fff; border: 0; padding: 0 16px; border-radius: 4px; font-size: 14px; cursor: pointer; }

/* 搜索结果 */
.m-search-tip { font-size: 13px; color: #555; margin: 0 0 8px; }
.m-search-group { font-size: 15px; margin: 16px 0 8px; border-bottom: 1px solid #e5e5e5; padding-bottom: 6px; }
.m-search-count { color: #999; font-size: 12px; font-weight: normal; }
.m-search-list { list-style: none; padding: 0; margin: 0; }
.m-search-list li { padding: 10px 0; border-bottom: 1px dashed #eee; }
.m-search-list li > a { color: #2c6fbb; font-weight: bold; font-size: 14px; }
.m-search-desc { color: #777; font-size: 12px; margin-top: 3px; }

/* 正文插图自适应容器宽度，防止大图溢出（2026-08-24） */
.m-detail-content img { max-width: 100%; height: auto; }
