
:root{--blue:#1B6FE0;--link:#0F4FA8;--heading:#0F2F5B;--text:#3D5068;--muted:#5F6B85;--red:#D0342C;--soft:#F5F8FC;--pale:#EAF2FC;--border:#DCE4F0}
*{box-sizing:border-box}html{scroll-padding-top:100px;scroll-behavior:smooth}body{margin:0;background:white;color:var(--heading);font-family:-apple-system,"Segoe UI","Microsoft YaHei",sans-serif;line-height:1.7}a{color:inherit;text-decoration:none}button{font:inherit;cursor:pointer}svg{width:22px;height:22px;flex-shrink:0}a:focus-visible,button:focus-visible{outline:3px solid var(--red);outline-offset:5px}.wrap{max-width:1280px;margin:auto;padding-left:40px;padding-right:40px}.header{position:sticky;top:0;background:white;border-bottom:1px solid var(--border);z-index:20}.header .wrap{min-height:90px;display:flex;align-items:center;justify-content:space-between;gap:22px}.brand{display:flex;align-items:center;gap:12px;font-size:24px;font-weight:800;white-space:nowrap}.brand i{font-style:normal;font-size:21px;color:white;background:var(--blue);width:34px;height:34px;border-radius:8px;text-align:center}.brand small{display:block;font-size:10px;font-weight:400;letter-spacing:2px}.nav{display:flex;align-items:center;gap:23px;font-size:14px;white-space:nowrap}.nav a{padding:30px 0;border-bottom:3px solid transparent}.nav a.active{color:var(--link);border-color:var(--red)}.nav a:hover,.footer a:hover{color:var(--blue)}.menu{display:none}.btn{display:inline-flex;justify-content:center;align-items:center;gap:30px;min-height:48px;padding:11px 25px;border:1px solid transparent;border-radius:6px;font-size:14px;font-weight:600;background:var(--blue);color:white}.btn.red{background:linear-gradient(135deg,var(--red),#B02E27)}.btn.outline{border-color:var(--border);background:white;color:var(--link)}.btn:hover{filter:brightness(.94)}.section{padding-top:64px;padding-bottom:64px}h1{margin:0;font-size:48px;line-height:1.25}h2{margin:0 0 24px;font-size:28px;line-height:1.4}h3{margin:0 0 12px;font-size:20px}p{color:var(--text)}.kicker{font-size:12px;letter-spacing:2px;color:var(--link);margin-bottom:12px}.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}.images{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.ph{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:240px;padding:24px;background:var(--soft);border:1px dashed var(--border);border-radius:10px;color:var(--muted);font-size:14px;text-align:center;overflow-wrap:anywhere}.ph svg{width:36px;height:36px}.card{display:block;border:1px solid var(--border);border-radius:10px;overflow:hidden;transition:transform .2s,box-shadow .2s}.card:hover{transform:translateY(-4px);box-shadow:0 16px 40px #0f2f5b10}.card>.ph{min-height:300px;border:0;border-bottom:1px dashed var(--border);border-radius:0}.cardbody{padding:30px}.tag{display:inline-block;border-radius:30px;background:var(--pale);color:var(--link);padding:4px 12px;margin-bottom:15px;font-size:12px}.card p{font-size:14px}.cardfoot{display:flex;justify-content:space-between;border-top:1px solid var(--border);padding-top:18px;margin-top:24px;font-size:14px;color:var(--link)}.text-ph{min-height:100px;padding:16px}.text-ph svg{display:none}.qr{width:110px;min-height:100px;padding:12px;font-size:11px;background:white}.qr svg{width:24px;height:24px}.tech{background:var(--soft)}.research{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 40px;padding-left:22px;margin-bottom:32px;color:var(--text)}.cta{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:36px;background:var(--pale);border:1px solid var(--border);border-radius:10px}.cta h2{margin-bottom:8px}.cta p{font-size:14px;margin:0}.cta .btn{flex-shrink:0}.contact-grid{display:flex;justify-content:space-between;gap:24px}.footer{padding:48px 0 20px;background:var(--soft);border-top:1px solid var(--border)}.footergrid{display:grid;grid-template-columns:1.4fr 1fr .7fr;gap:32px;align-items:start}.footergrid>div{min-width:0}.footer p,.footer a{font-size:13px;overflow-wrap:anywhere}.footerlinks{display:grid;gap:8px}.legal{border-top:1px solid var(--border);margin-top:34px;padding-top:18px;display:flex;flex-wrap:wrap;gap:10px 24px;font-size:11px;color:var(--muted)}.legal p{margin:0;font-size:11px;color:inherit}.mobilebar{display:none}dialog{width:min(500px,90vw);max-height:85vh;overflow:auto;border:1px solid var(--border);border-radius:10px;padding:32px;color:var(--heading)}dialog::backdrop{background:#0F2F5B88}.close{float:right;min-height:44px;background:var(--soft);border:0;padding:8px 14px}dialog .qr{margin:auto}
@media(min-width:768px) and (max-width:1023px){.wrap{padding-left:24px;padding-right:24px}.brand{font-size:19px}.brand small{letter-spacing:0}.nav{font-size:12px;gap:12px}.header .wrap{gap:14px}.footergrid{grid-template-columns:1fr 1fr}.footergrid>div:first-child{grid-column:1/-1}}
@media(max-width:767px){.wrap{padding-left:20px;padding-right:20px}.header .wrap{min-height:74px}.brand{font-size:21px}.menu{display:grid;place-items:center;min-width:44px;min-height:44px;border:1px solid var(--border);border-radius:6px;background:white}.nav{display:none;position:absolute;top:100%;left:0;right:0;padding:12px 20px 24px;max-height:75vh;overflow:auto;background:white;box-shadow:0 12px 24px #0f2f5b15}.nav.open{display:grid;grid-template-columns:1fr 1fr}.nav a{padding:12px}.section{padding-top:40px;padding-bottom:40px}h2{font-size:24px}.grid2,.images,.research{grid-template-columns:1fr;gap:22px}.card>.ph{min-height:240px}.cardbody{padding:24px}.cta{flex-direction:column;align-items:stretch;padding:26px}.contact-grid{flex-wrap:wrap}.footergrid{grid-template-columns:1fr 1fr;gap:26px}.footergrid>div:first-child{grid-column:1/-1}.footer{padding-bottom:calc(85px + env(safe-area-inset-bottom))}.mobilebar{position:fixed;bottom:0;left:0;right:0;z-index:21;display:flex;gap:12px;padding:8px 16px calc(8px + env(safe-area-inset-bottom));background:white;border-top:1px solid var(--border)}.mobilebar>*{display:grid;place-items:center;flex:1;min-height:44px;border:0;border-radius:6px;background:var(--blue);color:white;font-size:14px}.mobilebar button{background:var(--pale);color:var(--link)}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* 内页后续任务复用的规范组件。 */
.pagehead{background:var(--soft);border-bottom:1px solid var(--border);padding:28px 0 52px}.crumb{font-size:12px;color:var(--muted);margin-bottom:36px}.pagehead h1:before{content:"";display:block;width:32px;height:4px;background:var(--red);margin-bottom:18px}.pagehead p{font-size:16px;margin:15px 0 0}.notice{background:var(--soft);border-left:3px solid var(--blue);border-radius:0 8px 8px 0;padding:28px 32px;margin-top:32px;font-size:14px}.muted{color:var(--muted);font-size:13px}.bodytext p{font-size:16px;line-height:1.95;margin:0 0 20px}.aboutintro{display:grid;grid-template-columns:1.5fr .75fr;gap:65px;align-items:stretch}.portrait{aspect-ratio:3/4}.culture{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.culture article{padding:28px;border:1px solid var(--border);border-radius:10px}.culture article:first-child{grid-column:1/-1;background:var(--pale)}.culture article:first-child p{font-size:24px;letter-spacing:3px;color:var(--link)}.culture p{font-size:14px;margin-bottom:0}
@media(min-width:768px) and (max-width:1023px){.aboutintro{gap:28px}.culture{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){.pagehead{padding-bottom:32px}.crumb{margin-bottom:24px}.pagehead h1{font-size:34px}.aboutintro,.culture{grid-template-columns:1fr;gap:22px}.portrait{aspect-ratio:4/3}.culture article:first-child p{font-size:20px}}

/* about.html 企业简介小标题 */
.bodytext h3{font-size:18px;color:var(--link);margin:24px 0 12px;padding-left:10px;border-left:3px solid var(--red);font-weight:600;letter-spacing:1px}

/* 页脚二维码栏居中 + 联系我们栏间距 */
.footergrid > div:last-child{display:flex;flex-direction:column;align-items:center;gap:8px}
.footer .footerlinks a:hover{color:var(--blue)}
.footer h3{font-size:15px;margin-bottom:14px;color:var(--heading)}
.footergrid > div > p{margin:0 0 8px}

/* ===== 图片显示规范（第20条修正） ===== */
img { max-width: 100%; height: auto; display: block; }

/* 产品卡片大图（首页+产品中心，医用/家用方图） */
/* 原 240px cover 裁剪导致产品被裁掉，改为完整显示不裁剪 */
.card > img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: contain;
  background: white;
}

/* 关于我们页负责人形象照 */
/* 原 aspect-ratio:3/4 导致没撑满模块高度，改为和左边文字模块同高 */
.aboutintro { align-items: stretch; }
.aboutintro img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* 研发实力区图片（about+首页共用 .images，横图） */
/* 原 220px 太矮人物被裁，加高到 280px，和旁边 ph 占位块高度对齐 */
.images > img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 10px;
  cursor: zoom-in;
}

/* 专利页奖项区 2 张大证书（.grid2 里的 img） */
.grid2 > img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: zoom-in;
}

/* 专利墙证书（.patent-wall 里的 img） */
/* 原 3 列太窄，改成 2 列，证书宽度撑满 */
.patent-wall {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.patent-wall > img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: zoom-in;
}

/* 图片点击弹窗通用样式 */
dialog.img-viewer img {
  max-width: 100%;
  max-height: 80vh;
  margin: auto;
}

/* 移动端适配 */
@media(max-width: 767px){
  .aboutintro img { aspect-ratio: 4/3; height: auto; }
  .images > img { height: 240px; }
  .patent-wall { grid-template-columns: 1fr; }
  .patent-wall > img { height: auto; }
}

/* 第20条：招商合作样稿样式 */

.agent-conditions .card{display:block;border:1px solid var(--border);border-radius:10px;overflow:hidden;transition:transform .2s,box-shadow .2s;border-left:3px solid var(--red)}
.agent-conditions .card:hover{transform:translateY(-4px);box-shadow:0 16px 40px #0f2f5b10}
.agent-conditions .cardbody{padding:28px}
.agent-conditions .tag{display:inline-block;border-radius:30px;background:var(--pale);color:var(--link);padding:4px 14px;margin-bottom:16px;font-size:14px;font-weight:600}
.agent-conditions .card p{font-size:16px;margin:0}

/* ===== 合作流程改造后 ===== */
.process-steps{display:grid;grid-template-columns:repeat(7,1fr);gap:12px;list-style:none;padding:0;margin:0}
.process-steps li{padding:28px 16px;background:white;border:1px solid var(--border);border-radius:10px;text-align:center}
.process-steps .step-num{font-size:28px;font-weight:800;color:var(--blue);margin-bottom:8px;line-height:1}
.process-steps .step-name{font-size:15px;color:var(--heading)}

/* ===== 特别说明改造后 ===== */
.special-note{background:linear-gradient(135deg,#FFF5F5,#FFF0F0);border:1px solid #FECACA;border-left:4px solid var(--red);border-radius:0 10px 10px 0;padding:28px 32px;margin-top:32px;font-size:16px}
.special-note strong{color:var(--red);font-size:18px}


/* 第20条：完整品牌与响应式导航；保留原菜单折叠断点 */
.brand{font-size:18px;min-width:0}
.brand .brand-text{display:flex;flex-direction:column;line-height:1.3;min-width:0}
.brand .brand-text small{font-size:11px;font-weight:400;letter-spacing:2px;color:var(--muted)}
.brand > img,.brand > div:not(.brand-text){flex-shrink:0}
.nav{font-size:15px}
img[src$="/qr.png"]{width:110px;height:auto;align-self:flex-start;object-fit:contain}
.footergrid img[src$="/qr.png"]{align-self:center}
[data-img-viewer]:focus-visible{outline:3px solid var(--red);outline-offset:5px}
dialog.img-viewer{width:min(1000px,90vw)}
.process-steps{grid-template-columns:repeat(7,minmax(0,1fr))}
.process-steps li{min-width:0}
@media(min-width:768px) and (max-width:1100px){
 .header .wrap{gap:12px}.brand{font-size:14px;gap:6px}.brand .brand-text small{letter-spacing:0}.nav{font-size:13px;gap:12px}
 .process-steps li{padding:28px 8px}
}
@media(max-width:767px){
 .header .wrap{gap:8px}.brand{gap:5px;font-size:12px;white-space:normal;flex:1}.brand .brand-text small{display:none}
 .process-steps{gap:4px}.process-steps li{padding:28px 2px}.process-steps .step-name{overflow-wrap:anywhere}
}

/* 用户确认：十六万公里logo仅PC端放大，手机保留上一档尺寸。 */
@media(max-width:767px){
 .brand > img[alt="十六万公里logo"]{width:88px!important;height:auto!important}
}

/* 第22条：轮播、多图查看、二维码及移动布局 */
.research-carousel{position:relative;display:block;width:100%;min-width:0;height:280px;padding:0;border:1px solid var(--border);border-radius:10px;overflow:hidden;background:var(--soft);cursor:zoom-in}
.research-carousel .carousel-slide{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .6s}
.research-carousel .carousel-slide.is-active{opacity:1}
.footergrid{grid-template-columns:1.4fr 1fr minmax(236px,1fr)}
.footergrid > div.footer-qrs{display:flex;flex-direction:row;align-items:flex-start;justify-content:center;gap:16px}
.footer-qrs figure{width:110px;flex:none;margin:0;text-align:center}
.footer-qrs img{width:110px;height:auto}
.footer-qrs figcaption{font-size:11px;color:var(--muted);margin-top:8px}
dialog{text-align:center}
dialog .close{float:none;display:block;margin:0 0 18px auto;width:44px;height:44px;min-height:44px;padding:0;border-radius:50%;background:var(--soft);color:var(--heading);font-size:28px;line-height:1}
dialog img{margin-left:auto;margin-right:auto}
dialog.img-viewer img{max-height:60vh;object-fit:contain}
.viewer-controls:not([hidden]){display:flex;justify-content:center;align-items:center;gap:18px;margin-top:18px}
.viewer-controls button{min-height:44px;padding:8px 14px;border:1px solid var(--border);border-radius:6px;background:var(--soft);color:var(--link)}
@media(min-width:768px) and (max-width:1023px){.footergrid{grid-template-columns:1fr 1fr}}
@media(max-width:767px){
 .aboutintro img{aspect-ratio:auto;height:auto;object-fit:contain}
 .culture-slogan{display:block;white-space:nowrap}
 .culture article:first-child p{font-size:18px;letter-spacing:1px}
 .process-steps{grid-template-columns:1fr;gap:12px}
 .process-steps li{padding:22px}
 .research-carousel{height:240px}
 .footergrid{grid-template-columns:1fr}
 .footergrid>div:first-child{grid-column:auto}
 .nav{display:flex;flex-direction:column;align-items:stretch;position:absolute;left:auto;right:0;top:100%;width:min(260px,85vw);padding:16px;max-height:calc(100dvh - 90px);overflow:auto;box-shadow:-8px 12px 24px #0f2f5b22;border:1px solid var(--border);border-radius:0 0 0 10px;clip-path:inset(0 0 0 100%);opacity:0;visibility:hidden;pointer-events:none;transition:clip-path .25s,opacity .25s,visibility .25s}
 .nav.open{display:flex;clip-path:inset(0);opacity:1;visibility:visible;pointer-events:auto}
 .header{clip-path:inset(0 -1px -100vh 0)}
}

/* 第23条：横版logo只固定宽度，避免flex拉伸或旧内联尺寸干扰。 */
.brand > img[alt="十六万公里logo"]{width:120px!important;height:auto!important;aspect-ratio:auto;object-fit:contain!important;align-self:center;flex:0 0 auto}
@media(max-width:767px){
 .brand > img[alt="十六万公里logo"]{width:88px!important;height:auto!important}
}

/* 第24条：独立手机常驻导航与新闻列表断点。 */
.news-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}
@media(min-width:768px) and (max-width:1024px){.news-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){
 .header{display:block;clip-path:none}
 .header .menu,.header .nav{display:none!important}
     .news-grid{grid-template-columns:1fr;gap:22px}
}

/* 用户调整：手机导航放在logo栏下方，正常占位，不覆盖正文。 */
.mobile-top-nav{display:none}
@media(max-width:767px){
 .header .wrap{min-height:74px}
 .mobile-top-nav{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:0;width:100%;border-top:1px solid var(--border);background:white}
 .mobile-top-nav a{display:flex;align-items:center;justify-content:center;min-width:0;min-height:48px;padding:10px 2px;font-size:12px;line-height:1.4;text-align:center;white-space:nowrap;border-bottom:3px solid transparent}
 .mobile-top-nav a.active{color:var(--link);border-bottom-color:var(--red);background:var(--pale)}
}

/* 用户微调：品牌口号下移，保持公司名称位置。 */
.brand .brand-text small{position:relative;top:3px}

/* 长页面返回顶部，手机避开底部联系栏。 */
.back-to-top{position:fixed;right:24px;bottom:24px;z-index:19;display:flex;flex-direction:column;align-items:center;justify-content:center;width:48px;height:52px;gap:0;border:1px solid var(--border);border-radius:10px;background:#fffffff0;color:var(--link);box-shadow:0 4px 16px #0f2f5b15;font-size:11px;line-height:1.3}
.back-to-top[hidden]{display:none}
.back-to-top > span:first-child{font-size:24px;line-height:1}
.back-to-top:hover{background:var(--pale)}
@media(max-width:767px){.back-to-top{right:12px;bottom:calc(80px + env(safe-area-inset-bottom))}}

/* 大图缩放与拖动，画面限定在弹窗视窗内。 */
dialog.img-viewer{padding:24px;overflow:auto;max-height:90dvh}
.viewer-stage{height:min(54dvh,560px);width:100%;display:flex;align-items:center;justify-content:center;overflow:hidden;background:var(--soft);border-radius:8px;touch-action:none;user-select:none;overscroll-behavior:contain}
dialog.img-viewer .viewer-stage img{display:block;flex:none;width:auto;height:auto;max-width:100%;max-height:100%;margin:0;object-fit:contain;transform-origin:center;pointer-events:none}
.viewer-stage.is-zoomed{cursor:grab}.viewer-stage.is-zoomed:active{cursor:grabbing}
.viewer-zoom{display:flex;justify-content:center;align-items:center;gap:12px;margin-top:16px;flex-wrap:wrap}
.viewer-zoom button{min-width:44px;min-height:44px;padding:6px 12px;background:var(--soft);border:1px solid var(--border);border-radius:6px;color:var(--link)}
.viewer-zoom button:disabled{opacity:.4;cursor:default}
.viewer-zoom output{min-width:52px;font-size:14px;font-variant-numeric:tabular-nums}
@media(max-width:767px){dialog.img-viewer{padding:16px}.viewer-stage{height:48dvh}.viewer-zoom{gap:8px}}

/* 二维码放大、手机保存和多图滑动提示。 */
.qr-enlarge{cursor:zoom-in}
.qr-save-link,.viewer-qr-save > a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:6px 14px;border:1px solid var(--border);border-radius:6px;color:var(--link);background:var(--soft);font-size:13px}
.qr-save-shortcut,.viewer-qr-save,.viewer-swipe-hint{display:none}
.viewer-qr-save[hidden],.viewer-swipe-hint[hidden]{display:none}
@media(max-width:767px){
 .qr-save-shortcut{display:inline-flex;margin:8px auto 0}
 .viewer-qr-save:not([hidden]){display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:12px}
 .viewer-qr-save p{flex-basis:100%;font-size:12px;margin:0;color:var(--muted)}
 .viewer-swipe-hint:not([hidden]){display:block;font-size:12px;color:var(--muted);margin:8px 0 0}
 .research-carousel{touch-action:pan-y}
 dialog.img-viewer.is-qr .viewer-stage{height:36dvh}
 dialog.img-viewer.is-qr .viewer-stage img{pointer-events:auto;-webkit-touch-callout:default}
}

/* PC返回顶部跟随内容区，宽屏不再贴着窗口边缘。 */
@media(min-width:768px){
 .back-to-top{right:max(16px,calc((100% - 1280px)/2 - 32px))}
}

/* 第27条：合作流程收窄与方向引导，保持卡片文字和编号样式。 */
.process-steps li{position:relative}
.process-steps li:not(:last-child)::after{content:"";position:absolute;pointer-events:none}
@media(min-width:768px){
 .process-steps{max-width:1040px;margin-left:auto;margin-right:auto;gap:20px}
 .process-steps li:not(:last-child)::after{width:14px;height:14px;right:-17px;top:calc(50% - 7px);border-top:2px solid var(--muted);border-right:2px solid var(--muted);transform:rotate(45deg)}
}
@media(max-width:767px){
 .process-steps li:not(:last-child)::after{width:10px;height:10px;left:24px;bottom:-11px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg)}
 dialog.img-viewer.is-qr .viewer-qr-save:not([hidden]){flex-direction:column;align-items:center;flex-wrap:nowrap;width:100%;text-align:center}
 dialog.img-viewer.is-qr .viewer-qr-save p{flex-basis:auto}
}

/* 第28条：联系方式模块手机端二维码与保存快捷按钮纵向居中。 */
@media(max-width:767px){
 .contact-grid{flex-direction:column;align-items:center}
 .contact-grid > div{width:100%}
 .contact-grid > img{margin-left:auto;margin-right:auto}
 .contact-grid > .qr-save-shortcut{margin:10px auto 0}
}
