/*
 * p-enterprise.css — 企业定制、教育合作的两个总览和 8 个产品页（v0.25「配方」，2026-10-23）。
 * 页面由 tools/entgen.py 生成（数据 src/data/enterprise.json），body 带 .ent-page。
 * 版式照 v0.25 原型（首页与库原型的「企业定制」「产品卡」「产品页」「校企合作」几段），在 fyro.css 的基础上只加新的：
 *   页头 .ent-head（面包屑 .ent-crumbs、小标 .ent-tagline、四格 .prod-facts）、产品卡 .pcards/.pcard、
 *   常见的情形 .ent-problems、模块 .ent-mods、平台说明 .ent-platform、做完拿到 .ent-delivers、产品页页尾的同组其他几项 .ent-others-sec > .ent-others。
 * 获取档、产品线小标 .acc .acc-concerto .acc-symphony .acc-school 在 fyro.css（全站共用）。
 * 原型和 fyro.css 的几处不同，只在这几页里照原型：章节间距收紧一点。
 * 10-27 删废话（Leon「小标、总数、过度解释、过度讨好的措辞和说法，全部删掉改掉」）：各节编号小标、总览页头的小标和导语、各组导语、
 *   企业定制卡片上的产品线小标、卡片底下「看××」、页尾咨询卡的说明都删了，对应的样式一起删；标题顶格（产品线小标下面的标题照旧空 14px）。
 * v0.26 第 5 段之七（10-29）Leon「页底不用重复 CTA」：页尾咨询卡连样式一起拿掉；
 *   产品页的「其他项目」小签原来在卡下面，现在单独一块（.ent-others-sec）跟在常见问题后面：离常见问题近一点（上面那节底边距减半），离页脚照常。
 */

/* ---------- 章节：照原型的间距，相邻两节只算一份留白 ---------- */
.ent-page .sec { padding-block: clamp(64px, 7.5vw, 104px); }
.ent-page .sec + .sec:not(.sec-tint) { padding-top: 0; }
.ent-page .sec-tint + .sec:not(.sec-tint) { padding-top: clamp(64px, 7.5vw, 104px); }
.ent-page .sec-head { margin-bottom: clamp(28px, 3.5vw, 44px); }
.ent-page .sec-head > div { min-width: 0; max-width: 720px; }
.ent-page .sec-title { margin-top: 0; font-size: clamp(24px, 2.6vw, 34px); }
.ent-page .ent-tagline + .sec-title { margin-top: 14px; }
.ent-page .sec-title.is-small { font-size: clamp(22px, 2.3vw, 29px); }

/* ---------- 页头 ---------- */
.ent-head { padding-block: clamp(28px, 4vw, 48px) 8px; }
.ent-head.is-overview { padding-bottom: clamp(40px, 5vw, 64px); }
.ent-head h1 { font-family: var(--head); font-size: clamp(28px, 3.4vw, 42px); font-weight: var(--w-title); line-height: 1.25; letter-spacing: var(--track-title); color: var(--ink); text-wrap: balance; }
.ent-head .page-lead { max-width: 40em; margin-top: 12px; font-size: 15.5px; }
.ent-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.prod-head .ent-actions { margin-top: 26px; }
.ent-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; color: var(--muted); }
.ent-crumbs a { transition: color 160ms ease-out; }
.ent-crumbs a:hover { color: var(--ink); }
.ent-crumbs .sep { color: var(--line-3); }
.ent-crumbs [aria-current] { max-width: 100%; overflow: hidden; color: var(--ink-2); text-overflow: ellipsis; white-space: nowrap; }
.ent-tagline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.prod-head .ent-tagline { margin-top: 22px; }
.prod-head h1 { margin-top: 10px; }
.ent-head .page-lead.prod-value { font-size: clamp(16px, 1.4vw, 18px); color: var(--ink-2); }
.prod-who { max-width: 44em; margin-top: 12px; font-size: 14.5px; line-height: 1.8; color: var(--ink-soft); text-wrap: pretty; }
.prod-who b { margin-right: 10px; font-size: 12.5px; font-weight: 500; letter-spacing: 0.04em; color: var(--muted); }
.prod-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 26px; border-top: 1px solid var(--line-2); }
.prod-facts > div { min-width: 0; margin-right: 20px; padding: 12px 20px 0 0; border-right: 1px solid var(--line); }
.prod-facts > div:last-child { margin-right: 0; border-right: 0; }
.prod-facts dt { font-size: 12px; letter-spacing: 0.06em; color: var(--muted); }
.prod-facts dd { margin-top: 2px; font-size: 15px; font-weight: 600; line-height: 1.55; }
@media (max-width: 899px) {
  .prod-facts { grid-template-columns: minmax(0, 1fr); }
  .prod-facts > div { display: grid; grid-template-columns: 3.5em minmax(0, 1fr); gap: 12px; align-items: baseline; margin-right: 0; padding: 10px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .prod-facts dd { margin-top: 0; }
}
.ent-page .ent-first { padding-top: clamp(40px, 5vw, 64px); }

/* ---------- 产品卡（两个总览）：整张可点 ---------- */
.ent-page .ent-head + .ent-group { padding-top: 0; }
.pcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pcards.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pcard { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--sheet); box-shadow: var(--sheet-shadow); transition: border-color 160ms ease-out, box-shadow 220ms ease-out; }
.pcard-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pcard h3 { margin-top: 14px; font-family: var(--head); font-size: 19px; font-weight: 600; line-height: 1.4; }
.pcard > h3:first-child { margin-top: 0; }   /* 企业定制的卡片不写产品线小标（组名写着） */
.pcard-link::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.pcard-link:focus-visible { outline: none; }
.pcard:has(.pcard-link:focus-visible) { outline: 2px solid var(--ink-2); outline-offset: 2px; }
.pcard-value { margin-top: 8px; font-size: 14.5px; line-height: 1.8; color: var(--ink-soft); text-wrap: pretty; }
.pcard-facts { margin-top: 14px; border-top: 1px solid var(--line); }
.pcard-facts > div { display: grid; grid-template-columns: 3em minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.65; }
.pcard-facts dt { color: var(--muted); }
.pcard-facts dd { color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) { .pcard:hover { border-color: var(--line-2); box-shadow: var(--sheet-shadow-lift); } }
@media (max-width: 1023px) { .pcards, .pcards.is-2 { grid-template-columns: minmax(0, 1fr); } }
.ent-more { margin-top: 36px; }

/* ---------- 左右两栏（常见的情形、常见问题） ---------- */
.ent-two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 56px; align-items: start; }
@media (max-width: 899px) { .ent-two-col { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 01 常见的情形 ---------- */
.ent-problems { border-top: 1px solid var(--ink); }
.ent-problems li { position: relative; padding: 16px 0 16px 28px; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.8; color: var(--ink-2); text-wrap: pretty; }
.ent-problems li::before { content: ""; position: absolute; left: 2px; top: 1.65em; width: 12px; height: 1.5px; background: var(--ink-soft); }

/* ---------- 02 模块 ---------- */
.ent-mods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ent-mods li { min-width: 0; padding: 20px 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.ent-mod-no { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.ent-mods h3 { margin-top: 6px; font-family: var(--head); font-size: 16.5px; font-weight: 600; line-height: 1.5; }
.ent-mods p { margin-top: 6px; font-size: 14px; line-height: 1.8; color: var(--ink-soft); text-wrap: pretty; }
@media (max-width: 1023px) { .ent-mods { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .ent-mods { grid-template-columns: minmax(0, 1fr); } }
.ent-platform { max-width: 56em; margin-top: 18px; padding: 14px 18px; border-left: 2px solid var(--ink-2); border-radius: 0 10px 10px 0; background: var(--paper); font-size: 14.5px; line-height: 1.8; color: var(--ink-2); text-wrap: pretty; }
.ent-platform b { display: block; margin-bottom: 2px; font-size: 13px; font-weight: 600; }

/* ---------- 合作流程：用 fyro.css 的 .flow；四步时字小一档 ---------- */
.ent-page .flow-step h3 { font-size: clamp(17px, 1.6vw, 19px); }
.ent-page .flow-step p { font-size: 14.5px; }

/* ---------- 04 做完拿到 ---------- */
.ent-delivers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; border-top: 1px solid var(--ink); }
.ent-delivers li { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.75; }
.ent-delivers b { font-weight: 600; }
.ent-delivers span { color: var(--ink-soft); }
@media (max-width: 899px) { .ent-delivers { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 639px) { .ent-delivers li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* ---------- 06 常见问题：用 fyro.css 的 .faq ---------- */
.ent-page .faq summary { padding-block: 18px; }
.ent-page .faq summary::after { top: 25px; }

/* ---------- 产品页页尾：同组其他几项 ---------- */
.ent-page .sec:has(+ .ent-others-sec) { padding-bottom: clamp(32px, 3.75vw, 52px); }
.ent-page .ent-others-sec { padding-top: 0; }
.ent-others { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ent-others .fine { margin-right: 6px; }
.ent-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 2px 12px 2px 4px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--sheet); font-size: 12.5px; line-height: 24px; color: var(--ink-2); transition: border-color 160ms ease-out; }
.ent-chip .acc { font-size: 11px; line-height: 20px; }
@media (hover: hover) and (pointer: fine) { .ent-chip:hover { border-color: var(--line-3); } }

@media (prefers-reduced-motion: reduce) {
  .pcard, .ent-chip { transition: none; }
}
