/* Module scope: home-components. Common design tokens/layouts are in style.css. */

:where([data-module-type="home-components"]).rtype-grid,:where([data-module-type="home-components"]) .rtype-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:30px}
:where([data-module-type="home-components"]).rtype,:where([data-module-type="home-components"]) .rtype{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:16px;overflow:hidden;
  background:#fff;transition:all .3s var(--ease)}
:where([data-module-type="home-components"]).rtype:hover,:where([data-module-type="home-components"]) .rtype:hover{transform:translateY(-3px);box-shadow:0 22px 38px -30px rgba(109,40,217,.85);border-color:rgba(109,40,217,.3)}
:where([data-module-type="home-components"]).rtype-img,:where([data-module-type="home-components"]) .rtype-img{aspect-ratio:16/10;overflow:hidden;background:#f4f2fa}
:where([data-module-type="home-components"]).rtype-img img,:where([data-module-type="home-components"]) .rtype-img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s var(--ease)}
:where([data-module-type="home-components"]).rtype:hover .rtype-img img,:where([data-module-type="home-components"]) .rtype:hover .rtype-img img{transform:scale(1.04)}
:where([data-module-type="home-components"]).rtype-b,:where([data-module-type="home-components"]) .rtype-b{padding:16px 16px 18px;display:flex;flex-direction:column;gap:8px;flex:1}
:where([data-module-type="home-components"]).rtype-b h3,:where([data-module-type="home-components"]) .rtype-b h3{font-family:var(--font-display);font-size:15px;font-weight:700;margin:0}
:where([data-module-type="home-components"]).rtype-b p,:where([data-module-type="home-components"]) .rtype-b p{margin:0;font-size:12.5px;line-height:1.55;color:var(--muted);
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
:where([data-module-type="home-components"]).rtype-go,:where([data-module-type="home-components"]) .rtype-go{margin-top:auto;padding-top:10px;font-family:var(--font-display);font-size:10px;font-weight:700;
  letter-spacing:.09em;text-transform:uppercase;color:var(--violet);display:inline-flex;align-items:center;gap:6px}
:where([data-module-type="home-components"]).rtype-go svg,:where([data-module-type="home-components"]) .rtype-go svg{width:12px;height:12px;transition:transform .22s}
:where([data-module-type="home-components"]).rtype:hover .rtype-go svg,:where([data-module-type="home-components"]) .rtype:hover .rtype-go svg{transform:translateX(3px)}
/* 9 个核心部件领域：3×3，避免第 9 张单独一行 */
:where([data-module-type="home-components"]):is(#domains,[data-module-type="home-components"]) .cat-grid,:where([data-module-type="home-components"]) :is(#domains,[data-module-type="home-components"]) .cat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:1120px){:where([data-module-type="home-components"]):is(#domains,[data-module-type="home-components"]) .cat-grid,:where([data-module-type="home-components"]) :is(#domains,[data-module-type="home-components"]) .cat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1120px){:where([data-module-type="home-components"]).rtype-grid,:where([data-module-type="home-components"]) .rtype-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){:where([data-module-type="home-components"]).rtype-grid,:where([data-module-type="home-components"]) .rtype-grid{grid-template-columns:1fr;gap:12px}}
