/* 数字基建集合页 /digital/ 专用样式（独立文件，零污染）
   为什么独立：页面内 <style is:global> 会被 Astro 并入全站公共 CSS，
   导致每个页面多背一份用不上的样式、且全站 CSS 哈希变化。
   字号全部 clamp（移动端适配规范 §25）。 */
    * { box-sizing: border-box; }
    body { margin: 0; background: #F5F2ED; color: #1F1F1F;
      font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
      -webkit-font-smoothing: antialiased; }
    a { color: inherit; }
    .dl-top { border-bottom: 1px solid #E3DED7; background: #F5F2ED; }
    .dl-top .in { max-width: 1420px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
    .dl-top .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; }
    .dl-top .brand img { height: 20px; width: auto; }
    .dl-top nav { display: flex; gap: 16px; font-size: 14px; margin-left: auto; flex-wrap: wrap; }
    .dl-top nav a { text-decoration: none; color: #55524E; }
    .dl-top nav a:hover { color: #D2622B; }
    .dl-top nav a.on { color: #D2622B; font-weight: 600; border-bottom: 2px solid #D2622B; padding-bottom: 3px; }

    .dl-wrap { display: flex; gap: 28px; max-width: 1420px; margin: 0 auto; padding: 26px 20px 60px; }
    /* ── 左侧：知识导航地图 ── */
    aside.dl-nav { width: 232px; flex: 0 0 232px; position: sticky; top: 20px; align-self: flex-start;
      max-height: calc(100vh - 40px); overflow-y: auto; font-size: 14px; }
    .dl-nav h2 { font-size: 13px; letter-spacing: .06em; color: #A8A29A; margin: 0 0 8px; font-weight: 600; }
    .dl-nav .sec { margin-bottom: 20px; }
    .dl-nav .grp { display: block; padding: 7px 10px; text-decoration: none; color: #3C3835; border-left: 2px solid #E3DED7; line-height: 1.4; }
    .dl-nav .grp:hover { border-color: #D2622B; color: #D2622B; background: #FBF8F4; }
    .dl-nav .grp.on { border-color: #D2622B; color: #D2622B; font-weight: 600; }
    .dl-nav .grp small { display: block; color: #A8A29A; font-size: 12px; font-weight: 400; }
    .dl-nav .q { width: 100%; padding: 8px 10px; border: 1px solid #E3DED7; border-radius: 8px; background: #fff;
      font: inherit; font-size: 13.5px; margin-bottom: 10px; }
    .dl-nav .q:focus { outline: 2px solid #D2622B33; border-color: #D2622B; }
    .dl-nav .cl { display: block; padding: 5px 10px; text-decoration: none; color: #55524E; border-left: 2px solid transparent; font-size: 13.5px; }
    .dl-nav .cl:hover { color: #D2622B; }
    .dl-nav .cl.hide { display: none; }

    main.dl-main { flex: 1; min-width: 0; }
    .dl-hero h1 { font-size: clamp(27px, 4.4vw, 46px); line-height: 1.2; letter-spacing: -.02em; margin: 0 0 12px; }
    .dl-hero .lede { font-size: clamp(14px, 1.6vw, 17px); color: #55524E; line-height: 1.8; max-width: 44em; }
      border-radius: 999px; font-size: 13px; color: #55524E; background: #fff; }

    .dl-grp { margin-top: 42px; }
    .dl-grp > header { display: flex; align-items: baseline; gap: 12px; padding-bottom: 9px; border-bottom: 1px solid #E3DED7; }
    .dl-grp > header h2 { font-size: clamp(19px, 2.4vw, 25px); margin: 0; }
    .dl-grp > header span { color: #8A857E; font-size: 13.5px; }
    .dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-top: 18px; }
    .dl-card { background: #fff; border: 1px solid #E9E4DD; border-radius: 14px; overflow: hidden;
      display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease; }
    .dl-card:hover { box-shadow: 0 10px 30px rgba(31,31,31,.09); transform: translateY(-2px); }
    .dl-card.hide { display: none; }
    .dl-shot { height: clamp(190px, 22vw, 250px); overflow: hidden; background: #EDE9E3; border-bottom: 1px solid #E9E4DD; }
    .dl-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
    .dl-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
    .dl-body h3 { font-size: 17px; margin: 0; }
    .dl-body .ind { font-size: 12.5px; color: #8A857E; }
    .dl-body .dv { font-size: 13.5px; color: #3C3835; line-height: 1.65; flex: 1;
      word-break: normal; overflow-wrap: break-word; }
    .dl-body .go { font-size: 13.5px; color: #D2622B; text-decoration: none; font-weight: 600; }
    .dl-body .go:hover { text-decoration: underline; }
    .dl-empty { display: none; padding: 40px 0; color: #8A857E; }
    @media (max-width: 900px) {
      .dl-wrap { flex-direction: column; gap: 6px; padding: 18px 16px 48px; }
      aside.dl-nav { width: auto; flex: none; position: static; max-height: none; }
      .dl-nav .cl-list { display: flex; flex-wrap: wrap; gap: 4px; }
      .dl-nav .cl { border-left: 0; padding: 4px 10px; background: #fff; border: 1px solid #E9E4DD; border-radius: 999px; }
      .dl-nav .grp { border-left: 0; border-bottom: 2px solid #E3DED7; padding: 6px 4px; }
      .dl-nav .sec:last-of-type { display: none; }
    }
