:root {
  --mld-bg: #eef3f9;
  --mld-bg-soft: #f6f9fd;
  --mld-card: #ffffff;
  --mld-ink: #16203a;
  --mld-ink-soft: #46506a;
  --mld-line: #cbd5e1;
  --mld-navy: #0b1020;
  --mld-navy-2: #142a4c;
  --mld-cyan: #0e8fb0;
  --mld-cyan-bright: #2bd4e8;
  --mld-amber: #e08a1e;
  --mld-amber-bright: #f5a623;
  --mld-radius: 14px;
  --mld-shadow: 0 10px 30px rgba(11, 16, 32, 0.08);
  --h2-inset: 16px;
  --header-h: 64px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--mld-ink);
  background: var(--mld-bg);
  line-height: 1.75;
  padding-top: var(--header-h);
}
a { color: var(--mld-cyan); text-decoration: none; }
a:hover { color: var(--mld-amber); }
img { max-width: 100%; }

/* ===== Header ===== */
.mld-header {
  position: fixed; top: 0; left: 0; right: 0; height: var(--header-h);
  background: linear-gradient(120deg, #0b1020 0%, #142a4c 60%, #0e8fb0 140%);
  color: #fff; z-index: 1000;
  box-shadow: 0 2px 14px rgba(11,16,32,0.25);
}
.mld-header-inner {
  max-width: 1240px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; gap: 22px; padding: 0 22px;
}
.mld-logo { color: #fff; font-weight: 800; font-size: 19px; letter-spacing: .3px; white-space: nowrap; }
.mld-logo:hover { color: var(--mld-cyan-bright); }
.mld-nav { flex: 1; }
.mld-nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.mld-nav-item { position: relative; }
.mld-nav-item > a {
  display: flex; align-items: center; height: var(--header-h); padding: 0 14px;
  color: #dce6f5; font-size: 15px; border-bottom: 3px solid transparent;
}
.mld-nav-item > a:hover, .mld-nav-item > a.active { color: #fff; border-bottom-color: var(--mld-cyan-bright); }
.mld-has-sub > .mld-sub-toggle {
  display: none; position: absolute; right: 6px; top: 18px;
  background: none; border: none; color: #dce6f5; font-size: 18px; cursor: pointer;
}
.mld-nav-sub {
  position: absolute; top: var(--header-h); left: 0; min-width: 168px;
  background: #0b1020; border: 1px solid #243456; border-radius: 0 0 10px 10px;
  list-style: none; margin: 0; padding: 6px 0; display: none; z-index: 50;
}
.mld-has-sub:hover .mld-nav-sub,
.mld-has-sub:focus-within .mld-nav-sub { display: block; }
.mld-nav-sub li a { display: block; padding: 9px 16px; color: #cdd9ec; font-size: 14px; }
.mld-nav-sub li a:hover { background: #142a4c; color: #fff; }
.mld-nav-toggle { display: none; background: none; border: 1px solid #3a4a6b; color: #fff; border-radius: 8px; width: 42px; height: 38px; font-size: 20px; cursor: pointer; }

/* ===== Container / Layout ===== */
.mld-container { max-width: 1240px; margin: 0 auto; padding: 26px 22px 40px; }
.mld-layout-grid { display: grid; grid-template-columns: minmax(0,1fr) 240px; gap: 34px; align-items: start; }
.mld-content-main { background: var(--mld-card); border: 1px solid #e3eaf3; border-radius: var(--mld-radius); padding: 30px 34px; box-shadow: var(--mld-shadow); }
.mld-content-main h1 { font-size: 30px; line-height: 1.3; margin: 4px 0 18px; color: var(--mld-navy); }
.mld-content-main h2 { font-size: 22px; margin: 34px 0 12px; padding-left: 12px; border-left: 4px solid var(--mld-cyan); color: var(--mld-navy); scroll-margin-top: 84px; }
.mld-content-main h3 { font-size: 18px; margin: 22px 0 10px; color: #1c2c4d; scroll-margin-top: 84px; }
.mld-content-main p { margin: 12px 0; color: var(--mld-ink-soft); }
.mld-content-main ul, .mld-content-main ol { margin: 12px 0; padding-left: 24px; color: var(--mld-ink-soft); }
.mld-content-main li { margin: 6px 0; }

/* Tables (M26: 覆盖裸 table + mld-spec) */
.mld-content-main table, table.mld-spec, .mld-page-main table {
  width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14.5px;
  border: 1px solid var(--mld-line);
}
.mld-content-main table th, table.mld-spec th, .mld-page-main table th {
  background: #0b1020; color: #fff; text-align: left; padding: 10px 12px; font-weight: 600;
}
.mld-content-main table td, table.mld-spec td, .mld-page-main table td {
  border: 1px solid var(--mld-line); padding: 9px 12px; color: var(--mld-ink);
}
.mld-content-main table tr:nth-child(even) td, .mld-page-main table tr:nth-child(even) td { background: #f1f5fa; }

/* Blockquote / conclusion */
.mld-content-main blockquote {
  margin: 16px 0; padding: 12px 18px; background: #f3f8fc;
  border-left: 4px solid var(--mld-amber); border-radius: 0 10px 10px 0; color: #2a3550;
}

/* TOC */
.mld-toc-aside { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - 100px); overflow-y: auto; }
.mld-toc-panel { background: var(--mld-card); border: 1px solid #e3eaf3; border-radius: var(--mld-radius); padding: 14px 16px; box-shadow: var(--mld-shadow); }
.mld-toc-panel summary { font-weight: 700; color: var(--mld-navy); cursor: pointer; padding: 2px 0 8px; }
.mld-toc-panel summary::-webkit-details-marker { color: var(--mld-cyan); }
.mld-toc-list { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.mld-toc-list li { margin: 4px 0; }
.mld-toc-list li a { color: var(--mld-ink-soft); font-size: 14px; }
.mld-toc-list li a:hover { color: var(--mld-cyan); }
.mld-toc-l3 { padding-left: 14px; font-size: 13px; }

/* Breadcrumb alignment (M18c++) */
.mld-breadcrumb { font-size: 13px; color: var(--mld-ink-soft); margin: 0 0 14px; padding: 0; }
.mld-breadcrumb a { color: var(--mld-cyan); }
.mld-breadcrumb .sep { margin: 0 8px; color: #9fb0c8; }
.mld-breadcrumb .cur { color: var(--mld-ink); }

/* FAQ (bare details) */
.mld-faq { margin: 26px 0; border-top: 2px solid var(--mld-cyan); padding-top: 8px; }
.mld-faq details { border-bottom: 1px solid #e3eaf3; padding: 6px 0; }
.mld-faq details summary { cursor: pointer; font-weight: 600; color: var(--mld-navy); padding: 8px 4px; list-style: none; }
.mld-faq details summary::-webkit-details-marker { color: var(--mld-amber); margin-right: 8px; }
.mld-faq details[open] summary { color: var(--mld-cyan); }
.mld-faq-a { padding: 4px 4px 12px; color: var(--mld-ink-soft); }

/* Case study callout */
.mld-case { margin: 24px 0; padding: 16px 20px; background: linear-gradient(180deg,#f3f8fc,#eef6fb); border: 1px solid #d6e6f2; border-left: 4px solid var(--mld-cyan); border-radius: 10px; }
.mld-case-tag { display: inline-block; font-size: 12px; font-weight: 700; color: #fff; background: var(--mld-cyan); padding: 2px 10px; border-radius: 20px; margin-bottom: 8px; }
.mld-case p { margin: 0; color: #2a3550; }

/* Related links */
.mld-related { margin: 28px 0; padding: 18px 20px; background: var(--mld-bg-soft); border: 1px dashed #c7d6e8; border-radius: 10px; }
.mld-related h3 { margin-top: 0; color: var(--mld-navy); }
.mld-related ul { margin: 0; }

/* ===== List / Category ===== */
.mld-list-layout { background: var(--mld-card); border: 1px solid #e3eaf3; border-radius: var(--mld-radius); box-shadow: var(--mld-shadow); padding: 26px 30px; }
.mld-layout-grid.list-grid { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 32px; align-items: start; }
.mld-cat-aside { position: sticky; top: calc(var(--header-h) + 16px); }
.mld-cat-panel { background: var(--mld-bg-soft); border: 1px solid #e3eaf3; border-radius: 12px; padding: 12px 14px; }
.mld-cat-panel summary { font-weight: 700; color: var(--mld-navy); cursor: pointer; }
.mld-category-list { list-style: none; margin: 10px 0 0; padding: 0; }
.mld-category-list li { margin: 2px 0; }
.mld-category-list li a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--mld-ink-soft); }
.mld-category-list li a:hover, .mld-category-list li.active a { background: var(--mld-cyan); color: #fff; }
.mld-cat-content h1 { font-size: 28px; color: var(--mld-navy); margin: 4px 0 6px; }
.mld-cat-content .mld-cat-desc { color: var(--mld-ink-soft); margin: 0 0 18px; }
.mld-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.mld-card { background: var(--mld-card); border: 1px solid #e3eaf3; border-radius: 12px; padding: 18px; transition: transform .15s, box-shadow .15s; }
.mld-card:hover { transform: translateY(-3px); box-shadow: var(--mld-shadow); }
.mld-card h3 { margin: 0 0 8px; font-size: 17px; }
.mld-card h3 a { color: var(--mld-navy); }
.mld-card p { margin: 0; font-size: 14px; color: var(--mld-ink-soft); }
.mld-card .mld-card-meta { margin-top: 10px; font-size: 12px; color: #8aa0bd; }

/* ===== Page (about/services/etc) ===== */
.mld-page-main { background: var(--mld-card); border: 1px solid #e3eaf3; border-radius: var(--mld-radius); padding: 36px 48px; box-shadow: var(--mld-shadow); max-width: 920px; margin: 0 auto; }
.mld-page-main h1 { font-size: 30px; color: var(--mld-navy); margin-top: 0; }
.mld-page-main h2 { font-size: 22px; color: var(--mld-navy); margin: 30px 0 10px; padding-left: 12px; border-left: 4px solid var(--mld-amber); }
.mld-page-main h3 { font-size: 18px; color: #1c2c4d; margin: 20px 0 8px; }
.mld-page-main p, .mld-page-main li { color: var(--mld-ink-soft); }

/* ===== Home ===== */
.mld-home-hero { position: relative; overflow: hidden; border-radius: 18px; padding: 56px 48px; color: #fff;
  background: radial-gradient(120% 140% at 0% 0%, #142a4c 0%, #0b1020 55%, #0e8fb0 160%); box-shadow: var(--mld-shadow); }
.mld-home-hero h1 { font-size: 40px; margin: 0 0 14px; color: #fff; }
.mld-home-hero p { font-size: 17px; color: #cfe0f2; max-width: 720px; }
.mld-home-hero .mld-hero-cta { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; }
.mld-btn { display: inline-block; padding: 12px 26px; border-radius: 30px; font-weight: 700; font-size: 15px; }
.mld-btn-primary { background: var(--mld-cyan-bright); color: #06222b; }
.mld-btn-primary:hover { background: #fff; color: #0b1020; }
.mld-btn-ghost { border: 1px solid rgba(255,255,255,.5); color: #fff; }
.mld-btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.mld-home-section { margin-top: 38px; }
.mld-home-section > h2 { font-size: 24px; color: var(--mld-navy); margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
.mld-home-section > h2::before { content: ""; width: 6px; height: 22px; background: linear-gradient(var(--mld-cyan), var(--mld-amber)); border-radius: 3px; }
.mld-pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.mld-pill { background: var(--mld-card); border: 1px solid #dbe6f2; border-radius: 30px; padding: 8px 16px; font-size: 14px; color: var(--mld-ink); box-shadow: var(--mld-shadow); }
.mld-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 16px; }
.mld-stat { background: var(--mld-card); border: 1px solid #e3eaf3; border-radius: 12px; padding: 18px 20px; box-shadow: var(--mld-shadow); }
.mld-stat b { display: block; font-size: 22px; color: var(--mld-cyan); }
.mld-stat span { font-size: 13px; color: var(--mld-ink-soft); }
.mld-capsule-row { display: flex; flex-wrap: wrap; gap: 12px; }
.mld-capsule { background: linear-gradient(120deg,#0e8fb0,#2bd4e8); color: #fff; border-radius: 30px; padding: 10px 20px; font-size: 14px; font-weight: 600; }
.mld-capsule.alt { background: linear-gradient(120deg,#e08a1e,#f5a623); }

/* ===== Footer ===== */
.mld-footer { background: #0b1020; color: #c4d2e6; margin-top: 40px; }
.mld-footer-inner { max-width: 1240px; margin: 0 auto; padding: 40px 22px 24px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 24px; }
.mld-footer-logo { font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.mld-footer-desc { font-size: 13px; color: #93a6c2; max-width: 280px; }
.mld-footer-col h4 { color: #fff; font-size: 14px; margin: 0 0 10px; }
.mld-footer-col ul { list-style: none; margin: 0; padding: 0; }
.mld-footer-col li { margin: 6px 0; }
.mld-footer-col a { color: #a9bbd6; font-size: 13px; }
.mld-footer-col a:hover { color: var(--mld-cyan-bright); }
.mld-footer-bottom { border-top: 1px solid #1c2a47; padding: 16px 22px; text-align: center; font-size: 13px; color: #8295b3; }

/* ===== Float capsule ===== */
.mld-float { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 12px; z-index: 900; }
.mld-float-btn {
  display: flex; align-items: center; gap: 8px; width: 52px; height: 52px; justify-content: center;
  border: none; border-radius: 30px; cursor: pointer; color: #fff; font-size: 13px; font-weight: 700;
  background: linear-gradient(135deg, #0e8fb0, #2bd4e8); box-shadow: 0 6px 18px rgba(14,143,176,.45);
  transition: width .2s ease;
}
.mld-float-btn .mld-float-txt { display: none; }
.mld-float-btn:hover { width: 132px; justify-content: flex-start; padding-left: 16px; }
.mld-float-btn:hover .mld-float-txt { display: inline; }
.mld-float-card { background: linear-gradient(135deg, #e08a1e, #f5a623); box-shadow: 0 6px 18px rgba(224,138,30,.45); }
.mld-float-mail { background: linear-gradient(135deg, #142a4c, #0e8fb0); box-shadow: 0 6px 18px rgba(11,16,32,.4); }
.mld-float-ico { font-size: 19px; line-height: 1; }

/* Card popup */
.mld-card-mask { position: fixed; inset: 0; background: rgba(11,16,32,.7); display: flex; align-items: center; justify-content: center; z-index: 1100; }
.mld-card-mask[hidden] { display: none; }
.mld-card-pop { position: relative; background: #fff; border-radius: 12px; padding: 12px; }
.mld-card-img { display: block; width: 300px; height: 500px; object-fit: contain; }
.mld-card-close { position: absolute; top: -14px; right: -14px; width: 34px; height: 34px; border-radius: 50%; border: none; background: #0b1020; color: #fff; font-size: 20px; cursor: pointer; }

/* Pagination */
.mld-pagination { display: flex; gap: 14px; align-items: center; margin-top: 26px; }
.mld-pagination a, .mld-pagination .disabled { padding: 8px 16px; border: 1px solid #d6e0ee; border-radius: 8px; font-size: 14px; }
.mld-pagination a:hover { background: var(--mld-cyan); color: #fff; border-color: var(--mld-cyan); }
.mld-pagination .disabled { color: #aab8cc; }

/* 404 */
.mld-404 { text-align: center; padding: 80px 20px; }
.mld-404 h1 { font-size: 64px; color: var(--mld-cyan); margin: 0; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .mld-layout-grid, .mld-layout-grid.list-grid { grid-template-columns: 1fr; gap: 20px; }
  .mld-toc-aside, .mld-cat-aside { position: static; max-height: none; }
  .mld-content-main, .mld-list-layout, .mld-page-main { padding: 22px 18px; }
  .mld-page-main { padding: 26px 20px; }
  .mld-home-hero { padding: 40px 24px; }
  .mld-home-hero h1 { font-size: 30px; }
  .mld-footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .mld-nav-toggle { display: block; }
  .mld-nav { position: absolute; top: var(--header-h); left: 0; right: 0; background: #0b1020; max-height: 0; overflow: hidden; transition: max-height .25s ease; }
  .mld-nav.open { max-height: 80vh; overflow-y: auto; }
  .mld-nav-list { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; }
  .mld-nav-item > a { height: auto; padding: 12px 18px; border-bottom: none; }
  .mld-has-sub > .mld-sub-toggle { display: block; }
  .mld-nav-sub { position: static; display: none; background: #101a30; border: none; border-radius: 0; padding: 0 0 6px 14px; }
  .mld-has-sub.open > .mld-nav-sub { display: block; }
  .mld-float { right: 10px; }
  .mld-float-btn { width: 46px; height: 46px; }
  .mld-card-img { width: 240px; height: 400px; }
  .mld-footer-inner { grid-template-columns: 1fr; }
}
