.md-page{background:#f8fbff;color:#092a59;font-family:Arial,'Noto Sans TC',sans-serif}.md-page *{box-sizing:border-box}.md-wrap{max-width:1380px;margin:auto;padding:0 32px}.md-hero{position:relative;overflow:hidden;min-height:340px;background:#dcefff}.md-hero-bg{position:absolute;inset:0;background:linear-gradient(90deg,rgba(244,251,255,.98) 0%,rgba(232,246,255,.94) 39%,rgba(2,32,69,.12) 76%),url('../assets/mes-dms/hero.jpg') center/cover no-repeat}.md-hero-layout{position:relative;display:grid;grid-template-columns:minmax(0,49%) minmax(0,51%);align-items:center;gap:14px;padding-top:18px;padding-bottom:18px}.md-copy{min-width:0}.md-crumb{font-size:12px;color:#35618c;margin-bottom:18px}.md-copy h1{font-size:clamp(29px,2.5vw,42px);line-height:1.25;color:#062a68;margin:0 0 9px;font-weight:850}.md-copy h2{font-size:clamp(18px,1.65vw,25px);margin:0 0 12px;color:#082c6a;line-height:1.35}.md-copy p{font-size:15px;line-height:1.65;max-width:610px;margin:0 0 14px}.md-actions{display:flex;gap:12px;flex-wrap:wrap}.md-actions a{display:inline-block;text-decoration:none;border-radius:5px;padding:11px 24px;font-weight:700;font-size:14px}.md-primary{background:#0565d9;color:white!important}.md-secondary{border:1px solid #0565d9;background:#fff;color:#075ac3!important}.md-points{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:16px;font-size:12px;color:#0854a0;font-weight:700}.md-points span{white-space:nowrap}.md-hero-diagram{display:flex;gap:10px;align-items:center;justify-content:flex-end;min-width:0}.md-system{flex:0 1 205px;min-width:0;padding:10px;background:linear-gradient(155deg,#0d67c2,#052b5b);border:1px solid #58bbff;border-radius:12px;color:white;box-shadow:0 6px 18px #002a5b45;text-align:center}.md-system h3{font-size:24px;margin:0;color:white}.md-system small{display:block;font-size:12px;margin-bottom:7px}.md-system p{font-size:12px;line-height:1.25;margin:5px 0;padding:7px 3px;background:#001f4b80;color:white;border-radius:5px}.md-sync{flex:0 1 140px;min-width:80px;text-align:center;color:#fff;text-shadow:0 1px 8px #003b82;font-size:30px;font-weight:900}.md-sync small{display:block;font-size:11px;line-height:1.6;background:#003a7bc9;padding:8px 2px;border-radius:6px}.md-content{padding-top:20px;padding-bottom:40px}.md-heading{display:flex;align-items:baseline;gap:15px;margin:0 0 12px;flex-wrap:wrap}.md-heading h2{font-size:23px;margin:0;color:#092b69;border-left:5px solid #0878e9;padding-left:12px}.md-heading p{font-size:12px;color:#627891;margin:0}.md-upper{display:grid;grid-template-columns:minmax(0,4fr) minmax(220px,1fr);gap:18px}.md-features{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.md-card,.md-benefits>div,.md-industry,.md-step,.md-arch>div{background:#fff;border:1px solid #d8e9f8;border-radius:8px;overflow:hidden;box-shadow:0 2px 6px #b7cce020}.md-card h3{display:flex;align-items:center;gap:6px;font-size:13px;color:#0865bc;margin:0;padding:9px 7px;white-space:nowrap}.md-num{border:1px solid #94c7ed;border-radius:50%;width:27px;height:27px;display:inline-grid;place-items:center;flex-shrink:0}.md-card img{width:100%;height:110px;object-fit:cover;display:block}.md-card ul{margin:8px 5px 10px;padding-left:20px;font-size:12px;line-height:1.7;color:#314963}.md-card li::marker{color:#0068c9}.md-benefits{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.md-benefits>div{padding:14px 5px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:6px}.md-benefits b{font-size:28px;color:#0074dc}.md-benefits strong{font-size:13px}.md-benefits small{font-size:11px;color:#647891}.md-lower{display:grid;grid-template-columns:1.35fr 1fr;gap:22px;margin-top:20px}.md-arch{display:flex;align-items:stretch;gap:5px}.md-arch>div{flex:1;min-width:0;text-align:center}.md-arch>span{align-self:center;font-size:23px;color:#0076df}.md-arch h3{font-size:13px;background:#e0f2ff;color:#0866b5;margin:0;padding:9px 2px}.md-arch p{font-size:12px;line-height:1.9;margin:8px 3px;color:#365371}.md-arch-core p{background:#0865bd;color:#fff;border-radius:4px;padding:5px 2px;line-height:1.4}.md-industries{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.md-industry{text-align:center}.md-industry img{width:100%;height:74px;object-fit:cover;display:block}.md-industry strong{display:block;font-size:12px;padding:5px 2px 1px}.md-industry small{display:block;font-size:10px;color:#627891;padding:0 2px 6px}.md-process{margin-top:22px}.md-steps{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px}.md-step{padding:10px 8px;display:flex;align-items:center;gap:7px}.md-step b{border-radius:50%;background:#e5f4ff;color:#0068cc;padding:8px;font-size:12px}.md-step strong{display:block;font-size:13px;color:#0667bd}.md-step small{font-size:10px;color:#63758a;display:block;margin-top:4px}@media(max-width:1100px){.md-hero-layout{grid-template-columns:minmax(0,1fr)}.md-hero-diagram{justify-content:center;max-width:720px;margin:auto;width:100%}.md-upper,.md-lower{grid-template-columns:1fr}.md-features{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:700px){.md-wrap{padding:0 16px}.md-hero-layout{padding-top:20px;padding-bottom:20px}.md-hero-bg{background:linear-gradient(90deg,#f1faffef,#d4ecffcf),url('../assets/mes-dms/hero.jpg') center/cover}.md-copy h1{font-size:29px}.md-hero-diagram{gap:5px}.md-system{padding:5px}.md-system p{font-size:10px}.md-sync{min-width:50px}.md-sync small{font-size:9px}.md-features,.md-industries{grid-template-columns:repeat(2,minmax(0,1fr))}.md-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.md-arch{flex-wrap:wrap}.md-arch>div{flex:1 1 40%}.md-arch>span{display:none}.md-points{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* 2026-11: 修正卡片壓縮、圖片錯置及 RWD */
.md-page .md-wrap{max-width:1500px;width:100%;margin-inline:auto;padding-inline:clamp(20px,3vw,44px)}
.md-page .md-hero-layout{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:22px}
.md-page .md-upper{grid-template-columns:minmax(0,4fr) minmax(240px,1.08fr);gap:20px}
.md-page .md-upper>section,.md-page .md-upper>aside,.md-page .md-lower>section{min-width:0}
.md-page .md-features{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.md-page .md-card{min-width:0}
.md-page .md-card h3{font-size:clamp(12px,.95vw,15px);white-space:normal;min-height:53px;line-height:1.35;overflow-wrap:anywhere}
.md-page .md-card img{height:clamp(100px,8.2vw,150px);object-fit:cover;object-position:center}
.md-page .md-card ul{font-size:clamp(11px,.85vw,13px);padding-left:19px;margin:9px 8px 13px;line-height:1.6}
.md-page .md-benefits>div{min-height:130px;justify-content:center}
.md-page .md-lower{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}
.md-page .md-industries{grid-template-columns:repeat(4,minmax(0,1fr))}
.md-page .md-industry img{height:clamp(80px,7.5vw,125px);object-fit:cover}
.md-page .md-industry strong{font-size:13px}
.md-page .md-industry small{font-size:11px;line-height:1.35}
.md-page .md-arch{display:grid;grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr) 20px minmax(0,1.1fr) 20px minmax(0,1fr);gap:6px;align-items:stretch}
.md-page .md-arch>span{display:grid;place-items:center;font-size:19px}
.md-page .md-arch-core p{color:#fff}
.md-page .md-step{min-width:0}
@media(max-width:1280px){.md-page .md-upper,.md-page .md-lower{grid-template-columns:minmax(0,1fr)}.md-page .md-card img{height:145px}.md-page .md-industry img{height:130px}.md-page .md-benefits{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:900px){.md-page .md-hero-layout{grid-template-columns:minmax(0,1fr)}.md-page .md-features{grid-template-columns:repeat(2,minmax(0,1fr))}.md-page .md-steps{grid-template-columns:repeat(3,minmax(0,1fr))}.md-page .md-industry img{height:110px}}
@media(max-width:620px){.md-page .md-wrap{padding-inline:16px}.md-page .md-features,.md-page .md-industries,.md-page .md-benefits,.md-page .md-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.md-page .md-arch{grid-template-columns:repeat(2,minmax(0,1fr))}.md-page .md-arch>span{display:none}.md-page .md-card img{height:125px}.md-page .md-hero-diagram{gap:4px}.md-page .md-system p{font-size:10px}.md-page .md-points{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* MES × DMS 圖片與標題精準修正：照片只保留照片區，不含其他卡片文字 */
.md-page .md-card h3{display:flex;align-items:center;gap:8px;min-height:52px;padding:9px 9px;white-space:normal;overflow-wrap:normal;word-break:keep-all;font-size:clamp(12px,1vw,15px);line-height:1.35}
.md-page .md-num{display:inline-flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;height:32px;min-width:32px;min-height:32px;white-space:nowrap;word-break:normal;overflow-wrap:normal;font-size:13px;line-height:1;border-radius:50%;font-variant-numeric:tabular-nums}
.md-page .md-card img{display:block;width:100%;height:clamp(105px,8.4vw,146px);object-fit:cover;object-position:center center;aspect-ratio:auto}
.md-page .md-card ul{padding-left:20px;margin:9px 8px 12px;line-height:1.55}
@media(max-width:1280px){.md-page .md-card img{height:150px}}
@media(max-width:620px){.md-page .md-card img{height:125px}.md-page .md-card h3{font-size:12px}.md-page .md-num{flex-basis:28px;width:28px;min-width:28px;height:28px;min-height:28px}}

/* 2026-11-12: MES × DMS complete image + card layout repair */
.md-page .md-card h3{display:flex;align-items:center;gap:8px;white-space:normal;overflow-wrap:normal;word-break:normal;line-height:1.4;min-height:58px;padding:9px 8px;font-size:clamp(13px,1vw,16px)}
.md-page .md-card .md-num{display:inline-flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;min-width:32px;height:32px;white-space:nowrap;word-break:keep-all;overflow-wrap:normal;font-size:13px;line-height:1;letter-spacing:0;font-variant-numeric:tabular-nums}
.md-page .md-card{display:flex;flex-direction:column;min-width:0;overflow:hidden}
.md-page .md-card img{width:100%;height:clamp(112px,9vw,155px);object-fit:cover;object-position:center;flex-shrink:0}
.md-page .md-card ul{flex:1}
.md-page .md-industries{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.md-page .md-industry{min-width:0;overflow:hidden}
.md-page .md-industry img{width:100%;height:clamp(88px,8.2vw,135px);aspect-ratio:800/520;object-fit:cover;object-position:center;display:block}
.md-page .md-industry strong{font-size:13px;line-height:1.35;padding-top:7px}
.md-page .md-industry small{font-size:11px;line-height:1.4;padding:2px 3px 9px}
@media(max-width:1280px){.md-page .md-card img{height:145px}}
@media(max-width:900px){.md-page .md-industries{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:620px){.md-page .md-industries{grid-template-columns:repeat(2,minmax(0,1fr))}.md-page .md-card img{height:125px}.md-page .md-card h3{font-size:13px}}
