/* ==========================================================================
   虫虫开发者社区 - 垂直频道与聚合页样式 (现代极客极简风 <= 300 行)
   覆盖: site/dianzishu, site/dianlutu, site/software, site/jisuanqi,
   site/jichuzhishi, site/app, site/news, site/article, site/article_user, eeworm/special
   ========================================================================== */.dzs-container, .soft-page-container, .calc-page-container, .jc-container, .news-page-container, .hub-container { max-width: var(--ee-width, 1220px); margin: 0 auto; padding: 8px 0 40px; }
/* 面包屑导航 */.dzs-breadcrumb, .breadcrumb, .soft-breadcrumb, .calc-breadcrumb, .jc-breadcrumb, .news-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--ee-color-muted, #64748b); margin-bottom: 14px; }.dzs-breadcrumb a, .breadcrumb a, .breadcrumb-link, .soft-breadcrumb a, .calc-breadcrumb a, .jc-breadcrumb a, .news-breadcrumb a { color: var(--ee-color-muted, #64748b); text-decoration: none; transition: color 0.2s; }.dzs-breadcrumb a:hover, .breadcrumb a:hover, .breadcrumb-link:hover, .soft-breadcrumb a:hover, .calc-breadcrumb a:hover, .jc-breadcrumb a:hover, .news-breadcrumb a:hover { color: var(--ee-color-brand, #1e6fff); }
.breadcrumb-current, .dzs-breadcrumb-current { color: var(--ee-color-ink, #0f172a); font-weight: 600; }
/* 频道顶部通栏看板卡片 */
.dzs-banner, .page-header, .page-header-card,
.soft-hero-card, .calc-hero-card, .jc-hero-card, .news-hero-card, .special-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 60%, #eef2ff 100%);
    border: 1px solid #dbeafe;
    border-radius: 12px; padding: 22px 26px; margin-bottom: 18px;
    color: var(--ee-color-ink, #0f172a);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    position: relative; overflow: hidden;
}
.special-hero { text-align: center; }.dzs-banner-title, .page-title, .page-header h1, .page-header-card h1, .soft-hero-title, .calc-hero-title, .jc-hero-title, .news-hero-title, .special-hero h1 { font-size: 24px; font-weight: 800; color: var(--ee-color-ink, #0f172a); margin: 0 0 8px; display: flex; align-items: center; gap: 10px; line-height: 1.3; }
.special-hero h1 { justify-content: center; }
.dzs-banner-title i, .page-icon i, .soft-hero-title i,
.calc-hero-title i, .jc-hero-title i, .news-hero-title i { color: var(--ee-color-brand, #1e6fff); }.dzs-banner-desc, .description, .page-header p, .soft-hero-desc, .calc-hero-desc, .jc-hero-desc, .news-hero-desc, .special-hero p { font-size: 13.5px; color: var(--ee-color-muted, #64748b); line-height: 1.65; margin: 0; }
.special-hero p { max-width: 680px; margin: 0 auto; }.dzs-stats-row, .page-stats, .special-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; font-size: 13px; }
.special-stats { justify-content: center; }.dzs-stat-chip, .stat-badge, .special-stat-item { display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #eff6ff; border: 1px solid #bfdbfe; color: var(--ee-color-brand, #1e6fff); }
/* 频道快捷切换胶囊 */
.calc-tab-bar, .news-tab-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }.calc-tab-item, .news-tab-item { padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; background: #fff; border: 1px solid var(--ee-color-line, #e2e8f0); color: var(--ee-color-text, #334155); text-decoration: none; transition: all 0.2s; }.calc-tab-item:hover, .calc-tab-item.active, .news-tab-item:hover, .news-tab-item.active { background: var(--ee-color-brand, #1e6fff); border-color: var(--ee-color-brand, #1e6fff); color: #fff; }
/* 折叠式分类筛选矩阵 */.dzs-category-box, .category-section { background: #fff; border: 1px solid var(--ee-color-line, #e2e8f0); border-radius: 12px; padding: 18px 22px; margin-bottom: 18px; box-shadow: var(--ee-shadow-sm); }.dzs-category-head, .category-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 12px; }.dzs-category-head h2, .category-title { font-size: 15.5px; font-weight: 700; color: var(--ee-color-ink, #0f172a); margin: 0; padding-left: 10px; border-left: 3px solid var(--ee-color-brand, #1e6fff); }.dzs-toggle-btn, .category-toggle { background: #f8fafc; border: 1px solid var(--ee-color-line, #cbd5e1); color: var(--ee-color-text, #475569); font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 8px; cursor: pointer; transition: all 0.2s; }.dzs-toggle-btn:hover, .category-toggle:hover { border-color: var(--ee-color-brand, #1e6fff); color: var(--ee-color-brand, #1e6fff); }.dzs-category-grid, .category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }.dzs-cat-link, .category-link { display: block; padding: 7px 10px; background: #f8fafc; border: 1px solid var(--ee-color-line, #e2e8f0); border-radius: 8px; text-align: center; text-decoration: none; font-size: 13px; font-weight: 500; color: var(--ee-color-text, #334155); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: all 0.18s; }.dzs-cat-link:hover, .dzs-cat-link.active, .category-link:hover, .category-link.active { background: var(--ee-color-brand, #1e6fff); border-color: var(--ee-color-brand, #1e6fff); color: #fff; }
.dzs-all-cats, .category-all { display: none; margin-top: 8px; }
.dzs-all-cats.open, .category-all.open { display: block; }
/* 频道聚合网格 (EDA软件 / 在线计算器 / 基础知识 / 行业资讯) */.soft-category-grid, .calc-grid, .jc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.news-channel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }.soft-cat-card, .calc-card, .jc-card, .channel-card { background: #fff; border-radius: 12px; border: 1px solid var(--ee-color-line, #e2e8f0); box-shadow: var(--ee-shadow-sm); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }.soft-cat-card:hover, .calc-card:hover, .jc-card:hover, .channel-card:hover { transform: translateY(-2px); border-color: #93c5fd; box-shadow: 0 8px 22px rgba(30, 111, 255, 0.08); }.soft-cat-head, .calc-card-head, .jc-card-head, .channel-card-head { padding: 13px 18px; background: #f8fafc; border-bottom: 1px solid #f1f5f9; display: flex; justify-content: space-between; align-items: center; }.soft-cat-title, .calc-card-title, .jc-card-title, .channel-card-title { font-size: 15.5px; font-weight: 700; color: var(--ee-color-ink, #0f172a); margin: 0; display: flex; align-items: center; gap: 8px; }
.soft-cat-title i, .calc-card-title i, .jc-card-title i, .channel-card-title i { color: #1e6fff; }.soft-cat-more, .calc-card-more, .jc-card-more, .channel-card-more, .channel-card-foot a { font-size: 12.5px; color: var(--ee-color-brand, #1e6fff); text-decoration: none; font-weight: 600; }.soft-cat-list, .calc-card-list, .jc-card-list, .channel-card-list { list-style: none; padding: 14px 18px; margin: 0; display: flex; flex-direction: column; gap: 9px; flex: 1; }.soft-cat-item, .calc-card-item, .jc-card-item { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.channel-card-item { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13.5px; }.soft-cat-link, .calc-card-link, .jc-card-link, .channel-card-link { color: var(--ee-color-text, #334155); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; transition: color 0.15s; }
.calc-card-link { display: flex; align-items: center; gap: 8px; }.soft-cat-link:hover, .calc-card-link:hover, .jc-card-link:hover, .channel-card-link:hover { color: var(--ee-color-brand, #1e6fff); }
.channel-card-date { font-size: 12px; color: #94a3b8; white-space: nowrap; }
.channel-card-foot { padding: 10px 18px; background: #f8fafc; border-top: 1px solid #f1f5f9; text-align: right; }
/* 双栏主从布局与列表卡片 */.dzs-layout, .soft-layout, .jc-category-layout, .news-category-layout, .hub-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.dzs-list-box { background: #fff; border-radius: 12px; padding: 20px; border: 1px solid var(--ee-color-line, #e2e8f0); }.dzs-list-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #f1f5f9; }
.dzs-list-head h2 { font-size: 17px; font-weight: 700; margin: 0; }.dzs-item-card, .soft-item-card, .calc-item-card, .jc-article-item, .article-row-card { background: #fff; border-radius: 10px; border: 1px solid var(--ee-color-line, #e2e8f0); padding: 16px 18px; margin-bottom: 12px; transition: border-color 0.2s, box-shadow 0.2s; }
.dzs-item-card { display: flex; gap: 16px; }.dzs-item-card:hover, .soft-item-card:hover, .calc-item-card:hover, .jc-article-item:hover, .article-row-card:hover { border-color: #93c5fd; box-shadow: 0 6px 18px rgba(30, 111, 255, 0.07); }.dzs-book-icon { width: 44px; height: 56px; background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%); border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; font-size: 11px; font-weight: 700; }
.dzs-item-content, .article-row-main { flex: 1; min-width: 0; }.dzs-item-title, .soft-item-title, .calc-item-title, .jc-article-title, .article-row-title { font-size: 16px; font-weight: 700; margin: 0 0 8px; line-height: 1.45; }.dzs-item-title a, .soft-item-title a, .calc-item-title a, .jc-article-title a, .article-row-title a { color: var(--ee-color-ink, #0f172a); text-decoration: none; }.dzs-item-title a:hover, .soft-item-title a:hover, .calc-item-title a:hover, .jc-article-title a:hover, .article-row-title a:hover { color: var(--ee-color-brand, #1e6fff); }
.article-row-body { display: flex; gap: 16px; }
.article-row-pic { width: 132px; height: 88px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: #f1f5f9; }
.article-row-pic img { width: 100%; height: 100%; object-fit: cover; }.dzs-item-desc, .soft-item-desc, .calc-item-desc, .jc-article-desc, .article-row-desc { font-size: 13px; color: var(--ee-color-muted, #64748b); line-height: 1.65; margin: 0 0 10px; }.dzs-item-meta, .soft-item-meta, .calc-item-meta, .jc-article-meta, .article-row-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: #94a3b8; align-items: center; }
.dzs-item-meta a { color: inherit; text-decoration: none; }
.dzs-item-tags, .hub-pill-cloud { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }.dzs-tag-pill, .hub-pill-link { font-size: 12px; padding: 3px 10px; background: #f1f5f9; color: #475569; border-radius: 6px; text-decoration: none; }.dzs-tag-pill:hover, .hub-pill-link:hover { background: #eff6ff; color: var(--ee-color-brand, #1e6fff); }
/* 右侧边栏榜单与推荐挂件 */.dzs-sidebar-widget, .side-widget { background: #fff; border-radius: 12px; padding: 16px 18px; border: 1px solid var(--ee-color-line, #e2e8f0); margin-bottom: 16px; }.dzs-widget-title, .side-widget-title { font-size: 15px; font-weight: 700; color: var(--ee-color-ink, #0f172a); margin: 0 0 12px; padding-bottom: 10px; border-bottom: 2px solid var(--ee-color-brand, #1e6fff); display: flex; align-items: center; gap: 8px; }
.dzs-widget-title i, .side-widget-title i { color: #1e6fff; }.dzs-rank-list, .side-widget-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }.dzs-rank-row, .side-widget-list li { display: flex; align-items: center; gap: 8px; font-size: 13px; overflow: hidden; }.dzs-rank-badge { width: 20px; height: 20px; border-radius: 5px; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; background: #f1f5f9; color: #64748b; flex-shrink: 0; }
.dzs-rank-badge.top-1 { background: #ef4444; color: #fff; }
.dzs-rank-badge.top-2 { background: #f97316; color: #fff; }
.dzs-rank-badge.top-3 { background: #f59e0b; color: #fff; }.dzs-rank-link, .side-widget-list a { color: var(--ee-color-text, #334155); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.dzs-rank-link:hover, .side-widget-list a:hover { color: var(--ee-color-brand, #1e6fff); }.hub-cta-btn { display: block; text-align: center; padding: 10px; background: var(--ee-color-brand, #1e6fff); color: #fff; border-radius: 8px; text-decoration: none; font-size: 13px; font-weight: 600; }
/* 视觉卡片网格 (电路原理图 / 技术专辑 / 深度文章) */.circuit-grid, .special-grid, .hub-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }.circuit-card, .special-card, .hub-article-card { background: #fff; border-radius: 12px; border: 1px solid var(--ee-color-line, #e2e8f0); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.hub-article-card { padding: 20px; }.circuit-card:hover, .special-card:hover, .hub-article-card:hover { transform: translateY(-3px); border-color: #93c5fd; box-shadow: 0 10px 24px rgba(30, 111, 255, 0.09); }
.circuit-link, .hub-article-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; flex: 1; }.circuit-image, .circuit-placeholder, .special-card__thumb, .special-placeholder { height: 170px; background: #f8fafc; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; overflow: hidden; color: #94a3b8; }
.circuit-image img, .special-card__image { width: 100%; height: 100%; object-fit: cover; }.special-card__category { position: absolute; top: 10px; left: 10px; background: rgba(30, 111, 255, 0.9); color: #fff; padding: 3px 10px; border-radius: 6px; font-size: 11px; font-weight: 600; }
.circuit-info, .special-card__content { padding: 16px; flex: 1; display: flex; flex-direction: column; }.circuit-title, .special-card__title, .hub-article-card h2 { font-size: 15.5px; font-weight: 700; color: var(--ee-color-ink, #0f172a); margin: 0 0 8px; line-height: 1.45; }
.special-card__title a { color: inherit; text-decoration: none; }.special-card__desc, .hub-article-desc { font-size: 13px; color: var(--ee-color-muted, #64748b); line-height: 1.65; margin: 0 0 12px; flex: 1; }.circuit-meta, .special-card__meta, .hub-article-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid #f1f5f9; font-size: 12px; color: #94a3b8; margin-top: auto; }
.circuit-action, .special-card__link, .hub-read-more { color: var(--ee-color-brand, #1e6fff); font-weight: 700; text-decoration: none; }.soft-disclaimer-card, .hub-empty-box { background: #fff; border-radius: 12px; border: 1px solid var(--ee-color-line, #e2e8f0); padding: 18px; margin-top: 20px; color: var(--ee-color-muted, #64748b); font-size: 13px; }
.hub-empty-box { text-align: center; padding: 44px 20px; }.dzs-pagination-wrapper, .circuit-pagination-box, .special-pager-wrapper, .hub-pager { margin-top: 24px; display: flex; justify-content: center; }
.special-pager, .pagination-wrapper { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; gap: 6px; }.special-pager li a, .special-pager li span, .pagination-wrapper li a, .pagination-wrapper li span { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--ee-color-line, #e2e8f0); background: #fff; color: var(--ee-color-text, #475569); font-size: 13px; font-weight: 600; text-decoration: none; }.special-pager li.active span, .pagination-wrapper li.active span { background: var(--ee-color-brand, #1e6fff); border-color: var(--ee-color-brand, #1e6fff); color: #fff; }
@media (max-width: 960px) {
    .dzs-layout, .soft-layout, .jc-category-layout, .news-category-layout, .hub-layout, .news-channel-grid,
    .soft-category-grid, .calc-grid, .jc-grid, .circuit-grid, .special-grid, .hub-card-grid { grid-template-columns: 1fr; }
}
.breadcrumb-separator, .news-breadcrumb-sep { color: var(--ee-color-subtle); }
.stat-primary, .stat-secondary { background: #eff6ff; border-color: #bfdbfe; color: var(--ee-color-brand); }
.dzs-list, .hub-list { display: flex; flex-direction: column; }
.dzs-sidebar, .hub-main, .hub-side, .jc-category-main, .jc-category-side, .news-category-main, .news-category-side, .soft-layout-main, .soft-layout-side { min-width: 0; }
