/* ============================================================
   产品发现区 · 三栏信息流（开源精选 × 企慧产品 × 开源精选）
   风格：居中分区标题、白底卡片、公司产品卡以蓝点缀突出转化入口
   ============================================================ */
#products.catalog-discovery{width:min(1440px,calc(100% - 96px));padding-block:56px 80px}

/* 去除彩色渐变光斑 */
#products::before{content:none}

/* 分区标题：居中大字 + 简洁副题 */
#products .catalog-intro{display:block;margin-bottom:48px}

#products .catalog-intro h2{display:flex;align-items:center;justify-content:center;gap:12px;font-size:24px;font-weight:700;text-align:center;letter-spacing:-.5px;white-space:nowrap;color:var(--ink,#1f2329)}

#products .catalog-intro h2::before,#products .catalog-intro h2::after{content:none}

#products .catalog-intro h2 .icon{width:22px;height:22px;margin:0;color:var(--brand,#3370ff)}

#products .catalog-intro>p{display:block;text-align:center;font-size:14px;color:var(--muted,#646a73);margin-top:12px}

#products .waterfall-columns{grid-template-columns:repeat(3,minmax(0,1fr));gap:32px;align-items:stretch}

#products .waterfall-column{display:flex;flex-direction:column}

#products .waterfall-title{height:38px;justify-content:center;position:relative;margin-bottom:24px;padding:0}

#products .waterfall-title h3{font-size:16px;font-weight:600;justify-content:center;gap:9px;color:var(--ink,#1f2329)}

#products .waterfall-title h3 .icon{width:17px;height:17px;color:var(--faint,#8f959e)}

#products .waterfall-title>span{display:none}

#products .company-stream-column .waterfall-title h3{color:var(--brand-ink,#245bdb)}

#products .company-stream-column .waterfall-title h3 .icon{color:var(--brand,#3370ff)}

#products .filter-toggle{position:absolute;right:0;bottom:-4px;font-size:11px;color:var(--faint,#8f959e);padding:5px 8px;min-height:26px;border-radius:6px}

#products .waterfall-viewport{height:auto;max-height:none;overflow:visible;scrollbar-gutter:auto;padding:2px 2px 0;border-radius:0;flex:1}

/* 开源项目行（信息流） */
#products .oss-feed-row{min-height:78px;margin-bottom:10px;padding:14px 16px;background:#fff;border:1px solid var(--line,#e5e6eb);border-radius:10px;box-shadow:0 1px 2px rgba(31,35,41,.03);display:flex;flex-direction:column;justify-content:center;gap:7px;min-width:0;transition:border-color .18s,box-shadow .2s,transform .2s}

#products .oss-feed-row:last-child{margin-bottom:0}

#products .oss-feed-row:hover{border-color:#c4d6f7;box-shadow:0 4px 14px rgba(31,35,41,.06);transform:translateY(-1px)}

#products .oss-feed-row h4{margin:0;font-size:14px;line-height:1.35;font-weight:600;min-width:0;color:var(--ink,#1f2329)}

#products .oss-feed-row h4>a{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--ink,#1f2329);overflow-wrap:anywhere}

#products .oss-feed-row h4>a:hover{color:var(--brand-ink,#245bdb)}

#products .oss-feed-row h4>a>span{font-size:11px;color:#a9aeb9;opacity:0;transition:opacity .18s}

#products .oss-feed-row:hover h4>a>span,#products .oss-feed-row:focus-within h4>a>span{opacity:1}

#products .oss-feed-meta{display:flex;align-items:center;gap:7px;font-size:11px;line-height:1.35;color:var(--faint,#8f959e);flex-wrap:wrap}

#products .oss-feed-meta>.license-link{font-size:11px;color:var(--faint,#8f959e);text-decoration:none}

#products .oss-feed-meta>.license-link:hover{text-decoration:underline;color:var(--brand-ink,#245bdb)}

/* 企慧产品卡：白底 + 蓝点缀，突出但不过度 */
#products .company-stream-column .waterfall-viewport{display:flex;flex-direction:column}

#products .company-stream-column #product-grid{display:grid;grid-template-columns:minmax(0,1fr);grid-auto-rows:1fr;gap:14px;min-height:420px;flex:1}

#products .company-stream-column #product-grid:empty{display:none}

#products .company-feed-row{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;width:100%;min-height:205px;border-radius:14px;padding:22px 22px 20px;color:var(--ink,#1f2329);background:#fff;border:1px solid var(--line,#e5e6eb);box-shadow:0 1px 3px rgba(31,35,41,.05);transition:border-color .2s,box-shadow .25s,transform .25s;min-width:0;text-align:left}

#products .company-feed-row:hover{border-color:var(--brand,#3370ff);box-shadow:0 10px 28px rgba(51,112,255,.12);transform:translateY(-3px)}

#products .company-feed-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}

#products .company-feed-row .product-name{font-size:18px;font-weight:600;line-height:1.4;color:var(--ink,#1f2329);overflow-wrap:anywhere;letter-spacing:-.3px}

#products .company-feed-kind{font-size:10px;padding:3px 9px;border-radius:999px;background:var(--brand-soft,#eef4ff);border:1px solid var(--brand-line,#d6e4ff);color:var(--brand-ink,#245bdb);font-weight:500;flex-shrink:0}

#products .company-feed-summary{display:block;font-size:13px;line-height:1.7;color:var(--body,#4e5969);margin-top:8px;overflow-wrap:anywhere}

#products .company-card-features{display:grid;gap:8px;margin-top:14px;font-size:12px;color:var(--body,#4e5969);line-height:1.55}

#products .company-card-features>span{display:flex;align-items:center;gap:8px}

#products .company-card-features .icon{width:14px;height:14px;color:var(--brand,#3370ff)}

#products .company-card-action{display:flex;align-items:center;gap:7px;font-size:13px;font-weight:500;color:var(--brand-ink,#245bdb);padding-top:16px;margin-top:auto;border-top:1px solid var(--line-soft,#eff0f1)}

#products .company-card-action .icon{width:14px;height:14px;transition:transform .2s}

#products .company-feed-row:hover .company-card-action .icon{transform:translateX(4px)}

/* 列底部链接 */
#products .stream-foot{justify-content:center;position:relative;margin-top:26px;padding-inline:31px;min-height:32px}

#products .stream-foot>a,#products .column-bottom>button{font-size:13px;color:var(--muted,#646a73);line-height:1.6;padding:4px 2px;text-align:center;border-bottom:1px solid transparent;transition:color .15s,border-color .15s}

#products .stream-foot>a:hover,#products .column-bottom>button:hover{color:var(--brand-ink,#245bdb);border-color:var(--brand,#3370ff)}

#products .column-bottom{justify-content:center;flex-wrap:wrap;gap:8px}

#products .column-bottom>span{display:none}

#products .catalog-research-note{font-size:11px;margin-top:26px;color:var(--faint,#8f959e);line-height:1.8}

#products .catalog-research-note a{color:var(--muted,#646a73)}

#products .catalog-research-note a:hover{color:var(--brand-ink,#245bdb)}

#products .catalog-toolbar{padding:0 3px 14px}

/* ---------- 响应式 ---------- */
@media(min-width:1600px){#products .waterfall-columns{gap:40px}
}

@media(max-width:1100px){#products.catalog-discovery{width:calc(100% - 64px)}
#products .waterfall-columns{gap:22px}
#products .waterfall-title h3{font-size:15px}
#products .oss-feed-row h4{font-size:13px}
#products .company-feed-summary{font-size:12px}
#products .stream-foot{padding-inline:20px}
#products .stream-foot>a,#products .column-bottom>button{font-size:12px}
}

@media(max-width:800px){#products.catalog-discovery{width:calc(100% - 48px);padding-block:40px 56px}
#products .waterfall-columns{grid-template-columns:1fr;gap:36px}
#products .catalog-intro{margin-bottom:34px}
#products .catalog-intro h2{font-size:20px;gap:10px}
#products .waterfall-title{margin-bottom:16px}
#products .waterfall-title h3{font-size:17px}
#products .oss-feed-row h4{font-size:14px}
#products .company-feed-summary{font-size:13px}
#products .stream-foot{margin-top:18px}
#products .stream-foot>a,#products .column-bottom>button{font-size:13px}
#products .oss-feed-row h4>a>span{opacity:1}
#products .filter-toggle{bottom:2px}
#products .catalog-research-note{text-align:center}
}

@media(max-width:500px){#products.catalog-discovery{width:calc(100% - 40px)}
#products .catalog-intro h2{font-size:18px;gap:9px}
#products .catalog-intro h2 .icon{width:18px;height:18px}
#products .catalog-intro>p{font-size:12px}
#products .waterfall-title h3{font-size:16px}
#products .company-feed-row{padding:18px 16px}
#products .company-feed-row .product-name{font-size:16px}
#products .company-feed-summary{font-size:12px}
#products .oss-feed-row h4{font-size:13px}
#products .oss-feed-meta,#products .oss-feed-meta>.license-link{font-size:10px}
#products .stream-foot{padding-inline:24px}
#products .catalog-research-note{font-size:10px;line-height:1.9}
}

@media(max-width:360px){#products.catalog-discovery{width:calc(100% - 32px)}
#products .catalog-intro h2{font-size:16px;white-space:normal}
#products .waterfall-title h3{font-size:15px}
#products .company-feed-summary{font-size:11px}
#products .stream-foot>a,#products .column-bottom>button{font-size:12px}
}

@media(prefers-reduced-motion:reduce){#products .oss-feed-row,#products .company-feed-row{transition:none}
}
