/* ---------- 焦点区 ---------- */
.hero { display: flex; margin-top: 20px; }
.hero-middle { flex: none; display: flex; flex-direction: column; }
.hero-row1 { display: flex; height: 370px; }

/* 分类侧栏 */
.cat-aside { position: relative; flex: none; display: flex; flex-direction: column; width: 280px; height: 500px; margin-right: 20px; background: #fff; box-shadow: 0 2px 12px rgba(15,23,42,.06); border-radius: 6px; }
.cat-aside.panel-open { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.cat-list { display: flex; flex: 1; flex-direction: column; padding: 5px; }
.cat-list > .cat-item + .cat-item { margin-top: 5px; }  /* 对齐原版 gap-[5px] */
.cat-item { flex: 1; }
.cat-item-inner { display: flex; height: 100%; padding: 14px 24px 0; align-items: flex-start; border-radius: 4px; }
.cat-item.active .cat-item-inner { background: #4267B5; }
.cat-item-icon { position: relative; flex: none; width: 20px; height: 20px; }
.cat-item-icon img { position: absolute; left: 0; top: 0; width: 20px; height: 20px; transition: opacity .2s; }
.cat-item-icon .ic-white { opacity: 0; }
.cat-item.active .cat-item-icon .ic { opacity: 0; }
.cat-item.active .cat-item-icon .ic-white { opacity: 1; }
.cat-item-text { flex: 1; min-width: 0; margin-left: 8px; }
.cat-item-title { display: block; font-size: 16px; line-height: 20px; color: #000; }
.cat-item.active .cat-item-title { color: #fff; }
.cat-item-desc { margin-top: 6px; max-height: 40px; overflow: hidden; font-size: 13px; line-height: 20px; color: #666; } /* 最多两行（40px），超长词截断 */
/* 塑料机械子类词最多（17 个），只显示一行，超出省略 */
.cat-item[data-key="machine"] .cat-item-desc { max-height: 20px; white-space: nowrap; text-overflow: ellipsis; }
.cat-item-desc a { margin-right: 8px; color: #666; }
.cat-item-desc a:hover { text-decoration: underline; }
.cat-item.active .cat-item-desc, .cat-item.active .cat-item-desc a { color: rgba(255,255,255,.9); }
.cat-item-arrow { flex: none; width: 8px; height: 8px; margin-top: 4px; color: #999; }
.cat-item.active .cat-item-arrow { color: #fff; }

/* 分类二级面板 */
.cat-panel { display: none; position: absolute; left: 100%; top: 0; z-index: 40; width: 900px; height: 100%; background: #fff; border-top-right-radius: 6px; border-bottom-right-radius: 6px; box-shadow: 0 4px 20px rgba(15,23,42,.12); overflow-y: auto; }
.cat-aside.panel-open .cat-panel { display: block; }
.cat-panel-group { display: none; padding: 20px; }
.cat-panel-group.active { display: block; }
.cat-letters { display: flex; flex-wrap: wrap; align-items: center; padding-bottom: 8px; border-bottom: 1px solid #f0f0f0; }
.cat-letter { margin-right: 20px; font-size: 14px; font-weight: 500; line-height: 20px; color: #333; }
.cat-letter:hover, .cat-letter.active { color: #4267B5; }
.cat-panel-sub { margin: 10px 0 10px; padding-bottom: 8px; border-bottom: 1px solid #f0f0f0; font-size: 14px; font-weight: bold; line-height: 20px; color: #333; }
.cat-panel-words { display: flex; flex-wrap: wrap; margin-top: 10px; }
.cat-panel-words a { margin: 0 20px 8px 0; font-size: 13px; line-height: 20px; color: #666; white-space: nowrap; }
.cat-panel-words a:hover { color: #4267B5; }
.cat-panel-more { margin-top: 8px; font-size: 13px; line-height: 20px; color: #666; text-align: right; }
.cat-panel-more a { margin-left: 8px; color: #666; }
.cat-panel-more a:hover { color: #4267B5; }
.cat-addon-tabs { display: flex; width: auto; height: 36px; padding: 2px; background: #f7f7f7; border-radius: 18px; }
.cat-addon-tab { height: 32px; min-width: 88px; padding: 0 16px; font-size: 14px; font-weight: 500; line-height: 32px; color: #666; border-radius: 16px; }
.cat-addon-tab:hover { color: #4267B5; }
.cat-addon-tab.active { color: #fff; background: #4267B5; }

/* 焦点图轮播 */
.hero-carousel { position: relative; flex: none; width: 640px; height: 370px; margin-right: 20px; overflow: hidden; border-radius: 6px; }
.hero-slide img { width: 100%; height: 100%; }
.carousel-arrow { position: absolute; top: 50%; z-index: 10; display: none; width: 36px; height: 32px; margin-top: -16px; align-items: center; justify-content: center; background: rgba(0,0,0,.4); opacity: 0; transition: opacity .2s; }
.carousel-arrow svg { width: 24px; height: 24px; color: #fff; }
.carousel-arrow.prev { left: 0; border-top-right-radius: 16px; border-bottom-right-radius: 16px; }
.carousel-arrow.next { right: 0; border-top-left-radius: 16px; border-bottom-left-radius: 16px; }
.carousel-arrow:hover { background: rgba(0,0,0,.6); }
.group:hover .carousel-arrow { display: flex; opacity: 1; }
.hero-carousel-caption { position: absolute; left: 0; bottom: 0; z-index: 10; display: flex; width: 100%; padding: 10px 20px; align-items: center; background: rgba(0,0,0,.3); }
.hero-carousel-title { flex: 1; min-width: 0; font-size: 16px; color: #fff; }
.hero-carousel-dots { position: static; flex: none; margin-left: 12px; }
.hero-carousel-dots .hero-dot { display: inline-block; width: 8px; height: 8px; margin-left: 10px; border-radius: 50%; background: #AEAEAE; cursor: pointer; }
.hero-carousel-dots .hero-dot.active { background: #fff; }

/* 台历 */
.hero-calendar { position: relative; flex: none; width: 220px; height: 370px; overflow: hidden; background: #fff; border-radius: 6px; }
.hero-calendar-img { display: block; width: 100%; height: 100%; }
.hero-calendar img { width: 100%; height: 100%; }
.hero-calendar-more, .hero-calendar-more:hover {
  position: absolute; left: 50%; bottom: 8px; z-index: 10; display: flex; height: 28px;
  padding: 0 12px; transform: translateX(-50%); align-items: center; font-size: 12px;
  color: #fff; background: rgba(0,0,0,.4); border-radius: 14px; opacity: 0; transition: opacity .2s;
}
.hero-calendar-more svg { width: 14px; height: 14px; margin-left: 2px; }
.group-cal:hover .hero-calendar-more { opacity: 1; }

/* 焦点图下广告 */
.hero-ads { display: flex; height: 110px; margin-top: 20px; }
.hero-ad { position: relative; width: 280px; height: 110px; margin-right: 20px; overflow: hidden; background: #fff; border-radius: 6px; }
.hero-ad:last-child { margin-right: 0; }
.hero-ad img { width: 100%; height: 100%; }

/* 右列：线索卡 + 快捷入口 */
.hero-right { flex: none; display: flex; width: 300px; margin-left: 20px; flex-direction: column; }
.hero-lead-card { height: 188px; overflow: hidden; background: #fff; box-shadow: 0 2px 12px rgba(15,23,42,.06); border-radius: 6px; }
.hero-lead-card + .hero-lead-card { margin-top: 20px; }
.hero-lead-card .card-head { padding: 20px 20px 0; }
.hero-lead-list { position: relative; margin-top: 10px; padding: 0 20px 12px; overflow: hidden; }
.hero-lead-track { position: relative; }
.hero-lead-item { height: 32px; overflow: hidden; }
.hero-lead-link { display: flex; height: 32px; align-items: center; justify-content: space-between; font-size: 14px; line-height: 20px; color: #333; }
.hero-lead-link:hover { color: #4267B5; }
.hero-lead-link > span:first-child { flex: 1; min-width: 0; }
.hero-lead-loc { flex: none; margin-left: 8px; font-size: 12px; color: #999; }
.hero-lead-empty { position: absolute; left: 0; top: 0; width: 100%; text-align: center; font-size: 14px; color: #999; }
.hero-shortcuts { display: flex; height: 84px; margin-top: 20px; overflow: hidden; background: #fff; box-shadow: 0 2px 12px rgba(15,23,42,.06); border-radius: 6px; }
.hero-shortcuts a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hero-shortcuts a:hover { opacity: .8; }
.hero-shortcuts img { width: 32px; height: 30px; }
.hero-shortcuts span { margin-top: 4px; font-size: 14px; line-height: 20px; color: #333; }
.hero-shortcuts a:hover span { color: #4267B5; }
