/* 产品页共用样式（/enterprise 对比页、/tide、/pulse）。
 *
 * 原先这几十行内联在 enterprise.html 里。拆产品页时如果照抄三份，
 * 迟早有一页的样式跟另外两页对不上——那种错只在某个页面上出现，最难发现。
 */
/* 页面专属样式。复用 style.css 的设计令牌（--accent / --line / --text-dim 等），
   只补这一页需要的排版——不改动全站样式，避免影响首页。 */
.ent-hero { padding: 56px 0 32px; }
.ent-hero h1 { font-size: clamp(28px, 4.4vw, 42px); line-height: 1.2; margin: 0 0 14px; letter-spacing: -.02em; }
.ent-hero .lede { font-size: 17px; line-height: 1.7; color: var(--text-dim); max-width: 62ch; margin: 0 0 22px; }
.ent-tag { display: inline-block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 12px; }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 28px 0 8px; }
.pillar { background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 18px 16px; min-width: 0; }
.pillar h3 { margin: 0 0 8px; font-size: 15.5px; }
.pillar p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--text-dim); }
.ent-sec { padding: 34px 0; border-top: 1px solid var(--line); }
.ent-sec h2 { font-size: 21px; margin: 0 0 8px; }
.ent-sec .sub { color: var(--text-dim); font-size: 14.5px; line-height: 1.7; margin: 0 0 18px; max-width: 68ch; }
/* 下限 340 而不是 280：内容区约 920px 宽时，280 会算出 3 列，
   而这里的分组都是 4 项——排成 3+1，第四张孤零零占一行。
   340 算出 2 列，4 项排成 2+2；2 项的分组不受影响（auto-fit 仍是 2 列）。 */
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.ent-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ent-table th, .ent-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ent-table th { color: var(--text-dim); font-weight: 600; font-size: 12.5px; }
.ent-table td.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* 第一列是行标签。不禁止换行的话它会被右侧的长文案挤成「它替贵方回/答」
   这种断词，对比表最需要的横向扫读反而最先被破坏。
   表格外层有 overflow-x:auto，窄屏上会横向滚，不会撑破页面。 */
.ent-table td:first-child { white-space: nowrap; color: var(--text-dim); }
.tbl-wrap { overflow-x: auto; }
.honest { background: color-mix(in srgb, var(--accent) 6%, var(--bg-card));
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 12px; padding: 16px 18px; margin-top: 16px; }
.honest h3 { margin: 0 0 8px; font-size: 15px; color: var(--accent); }
.honest p { margin: 0 0 8px; font-size: 14px; line-height: 1.7; color: var(--text-dim); }
.honest p:last-child { margin-bottom: 0; }
.apply-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; max-width: 560px; }
.apply-card .field textarea {
  width: 100%; padding: 11px 13px; font-size: 15px; font-family: inherit; line-height: 1.6;
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); resize: vertical;
}
.apply-card .field textarea:focus, .apply-card .field select:focus { outline: none; border-color: var(--accent); }
.apply-card .field select {
  width: 100%; padding: 11px 13px; font-size: 15px; border: 1.5px solid var(--line);
  border-radius: 10px; background: var(--bg); color: var(--text);
}
.apply-note { font-size: 13px; color: var(--text-faint); line-height: 1.6; margin: 12px 0 0; }
.apply-state { margin-bottom: 14px; padding: 10px 12px; border-radius: 9px; font-size: 13.5px; line-height: 1.6; }
.apply-state.ok { background: color-mix(in srgb, var(--ok) 12%, var(--bg-card)); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); }
.apply-state.err { background: color-mix(in srgb, var(--critical) 12%, var(--bg-card)); border: 1px solid color-mix(in srgb, var(--critical) 35%, transparent); }
/* 两个产品的分叉卡。放在最前面：读者的第一个问题是「我要哪个」，
   不是「这个产品有什么功能」。 */
.prod-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.prod-card { background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 14px; padding: 20px 22px; display: flex; flex-direction: column; }
/* 主推的那个描边强调一点，但不用填充色——两张卡填不同的底色会读成
   「一个可选、一个不可选」，而它们是并列的两个产品 */
.prod-card.is-flagship { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.prod-kind { font-size: 11.5px; letter-spacing: 0.04em; color: var(--text-faint); }
.prod-card h3 { margin: 6px 0 10px; font-size: 19px; }
.prod-card p { margin: 0 0 10px; font-size: 14px; line-height: 1.7; color: var(--text-dim); }
.prod-when { font-size: 13.5px !important; }
.prod-when strong { color: var(--text); }
/* 价格 + CTA 作为一块锚在卡底：两张卡文字长短不一，
   不锚底的话价格行错位，并列比较时要来回找。 */
.prod-price { margin: auto 0 10px !important; font-size: 13px !important;
  padding-top: 12px; border-top: 1px solid var(--line); }
.prod-cta { font-size: 14px; color: var(--accent); }
/* 章节归属标签：交付形态/参考规格这些只属于 Tide，不标清楚会被当成两个产品共用 */
.sec-jump { margin: 0 0 14px; font-size: 13px; color: var(--text-faint); }
.sec-of { display: inline-block; font-size: 11.5px; letter-spacing: 0.04em;
  color: var(--text-faint); margin-bottom: 2px; }
.ent-foot { padding: 30px 0 60px; color: var(--text-faint); font-size: 13px; line-height: 1.7; }

/* 部署流程步骤条 */
.steps { counter-reset: s; list-style: none; margin: 0; padding: 0; }
.steps li {
  counter-increment: s; position: relative;
  padding: 0 0 18px 42px; border-left: 2px solid var(--line); margin-left: 13px;
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  content: counter(s); position: absolute; left: -14px; top: -2px;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-card); border: 1.5px solid var(--line);
  font-size: 12.5px; font-weight: 600; color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}
.steps b { display: block; font-size: 15px; margin-bottom: 5px; }
.steps p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--text-dim); }
.steps code { font-family: var(--font-mono); font-size: 13px; }

/* ---- 图表 ----
   全部内联 SVG、零依赖：站点 CSP 只放行 self，引图表库这条路本来就走不通；
   而这几张图都是静态的，也确实不需要运行时。
   颜色一律走站点 token，深色模式自动跟随——写死颜色的话暗色下会瞎。 */
.chart-svg { width: 100%; height: auto; display: block; }
.chart-box { background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 14px; padding: 20px 18px; margin-top: 16px; }
.chart-cap { margin: 0 0 14px; font-size: 13px; color: var(--text-dim); line-height: 1.7; }

.chart-svg .grid { stroke: var(--line); stroke-width: 1; }
.chart-svg .ax { font-size: 11px; fill: var(--text-faint); }
.chart-svg .ax-r { text-anchor: end; }
.chart-svg .ax-c { text-anchor: middle; }
.chart-svg .ax-dim { fill: var(--text-faint); }
.chart-svg .ax-h { font-size: 12.5px; fill: var(--text-dim); font-weight: 600; }
.chart-svg .em { font-weight: 700; fill: var(--text); }
.chart-svg .ln { fill: none; stroke-width: 2.2; stroke-linejoin: round; }
.chart-svg .ln-static { stroke: var(--text-faint); stroke-width: 2; stroke-dasharray: 6 4; }
.chart-svg .lg { font-size: 11.5px; font-weight: 600; }
.chart-svg .lg-c { text-anchor: middle; }
.chart-svg .lg-static { fill: var(--text-faint); }

.chart-svg .bar-lb { font-size: 13px; fill: var(--text); font-weight: 600; }
/* 高亮段用黑色半透明而不是另一种色相：它是同一根条的一部分，
   换色相会读成两个并列的量 */
.chart-svg .bar-hi { fill: rgba(0,0,0,.30); }
.chart-svg .bar-in { font-size: 12px; fill: #fff; text-anchor: middle; font-weight: 600; }
.chart-svg .bar-n { font-size: 15px; font-weight: 700; dominant-baseline: middle; }
.chart-svg .bar-bad { fill: var(--critical); opacity: .85; }
.chart-svg .thr { stroke: var(--high); stroke-width: 1.5; stroke-dasharray: 5 4; }

.chart-svg .fx { fill: var(--bg-card); stroke: var(--line); stroke-width: 1.5; }
.chart-svg .fx-them { fill: color-mix(in srgb, var(--text-faint) 14%, var(--bg-card)); }
.chart-svg .fx-t { font-size: 12.5px; fill: var(--text); font-weight: 600; }
.chart-svg .arr { stroke: var(--text-faint); stroke-width: 1.5; }
.chart-svg .arr-h { fill: var(--text-faint); }
.chart-svg .arr2 { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 5 3; }
.chart-svg .arr2-h { fill: var(--accent); }
.chart-svg .zone { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 6 4; opacity: .55; }
.chart-svg .bad-note { fill: var(--critical); font-weight: 600; }

@media (max-width: 560px) {
  /* 窄屏上 SVG 里的文字会缩得读不了，让图自己横向滚 */
  .chart-box { overflow-x: auto; }
  .chart-svg { min-width: 560px; }
}
