/* ============================================================
   内容列表卡片统一样式
   与商城列表同一套视觉语言：科技蓝 / 圆角 / 悬浮 / 编号 / 摘要 / 标签
   作用域：排除首页 body.is-index，避免覆盖官网设计稿
   ============================================================ */

/* ---------- 页面容器 ---------- */
body:not(.is-index) .page-wrap { padding-top: 30px; padding-bottom: 64px; }

/* ---------- 搜索框 ---------- */
body:not(.is-index) .search-box-wrap {
    display: flex; align-items: center; max-width: 680px; gap: 0; margin-bottom: 24px;
    border: 1px solid var(--border-strong); border-radius: 10px; overflow: hidden;
    background: var(--bg-card); transition: border-color .2s, box-shadow .2s;
}
body:not(.is-index) .search-box-wrap:focus-within {
    border-color: var(--primary); box-shadow: 0 0 0 3px rgba(8, 49, 203, .1);
}
body:not(.is-index) .search-box-wrap .search-ico {
    display: flex; align-items: center; padding: 0 14px; color: var(--text-muted); font-size: 16px;
}
body:not(.is-index) .search-box-wrap input {
    flex: 1; min-width: 0; border: 0; border-radius: 0; padding: 12px 8px;
    background: transparent; box-shadow: none; font-size: 15px;
}
body:not(.is-index) .search-box-wrap input:focus { outline: none; }
body:not(.is-index) .search-box-wrap .btn-primary {
    border-radius: 0; padding: 0 26px; height: 46px; flex-shrink: 0;
}

/* ---------- 网格 ---------- */
body:not(.is-index) .product-grid,
body:not(.is-index) .article-grid,
body:not(.is-index) .case-grid,
body:not(.is-index) .partner-grid {
    display: grid; gap: 22px; grid-template-columns: repeat(4, minmax(0, 1fr));
}
body:not(.is-index) .article-grid,
body:not(.is-index) .case-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- 卡片主体 ---------- */
body:not(.is-index) .content-card {
    display: flex; flex-direction: column; min-width: 0;
    border-radius: 14px; overflow: hidden; border: 1px solid var(--border);
    background: var(--bg-card); color: var(--text);
    transition: transform .25s cubic-bezier(.22, 1, .36, 1), box-shadow .25s, border-color .25s;
}
body:not(.is-index) .content-card:hover {
    transform: translateY(-5px); box-shadow: 0 16px 40px rgba(8, 49, 203, .14); border-color: transparent;
}

/* 封面 */
body:not(.is-index) .content-card-media {
    position: relative; height: 178px; overflow: hidden; background: var(--bg-subtle);
}
body:not(.is-index) .content-card-media::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, transparent 55%, rgba(6, 16, 44, .08));
}
body:not(.is-index) .content-card-media img {
    width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block;
    transition: transform .4s cubic-bezier(.22, 1, .36, 1);
}
body:not(.is-index) .content-card:hover .content-card-media img { transform: scale(1.05); }

body:not(.is-index) .content-card-no {
    position: absolute; left: 12px; top: 12px; z-index: 2;
    padding: 4px 9px; border-radius: 6px; font-size: 11px; font-weight: 700;
    letter-spacing: .06em; color: #fff; background: rgba(8, 49, 203, .88); backdrop-filter: blur(6px);
}
body:not(.is-index) .content-card-flag {
    position: absolute; right: 12px; top: 12px; z-index: 2;
    padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 700;
    color: #fff; background: rgba(230, 162, 60, .92); backdrop-filter: blur(6px);
}
body:not(.is-index) .content-card-media--plain {
    background: linear-gradient(135deg, #e8eefc 0%, #cfdcfa 50%, #e8eefc 100%);
}
body:not(.is-index) .content-card-media > .content-card-media--plain { width: 100%; height: 100%; }
html[data-theme="dark"] body:not(.is-index) .content-card-media--plain {
    background: linear-gradient(135deg, #16224a 0%, #24376e 50%, #16224a 100%);
}
body:not(.is-index) .content-card-flag.is-rec { background: rgba(8, 49, 203, .92); }
body:not(.is-index) .title mark { padding: 0 2px; border-radius: 3px; color: inherit; background: #ffe9a8; }

body:not(.is-index) .content-card-view {
    position: absolute; right: 12px; bottom: 12px; z-index: 2;
    width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
    color: #fff; background: rgba(8, 49, 203, .9);
    opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .25s;
}
body:not(.is-index) .content-card:hover .content-card-view { opacity: 1; transform: translateX(0); }

/* 内容 */
body:not(.is-index) .content-card .body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
body:not(.is-index) .content-card-cat {
    font-size: 11px; font-weight: 700; color: var(--primary); letter-spacing: .04em;
    margin-bottom: 6px; min-height: 15px;
}
body:not(.is-index) .content-card .title {
    font-size: 15.5px; font-weight: 700; line-height: 1.45; height: auto; min-height: 44px;
    overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
body:not(.is-index) .content-card-brief {
    margin-top: 8px; font-size: 12.5px; color: var(--text-muted); line-height: 1.55;
    min-height: 38px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
body:not(.is-index) .content-card-bottom {
    margin-top: auto; padding-top: 14px; display: flex; align-items: center;
    justify-content: space-between; gap: 8px;
}
body:not(.is-index) .content-card-meta {
    font-size: 11.5px; color: var(--text-muted); white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
body:not(.is-index) .content-card-more {
    font-size: 12.5px; color: var(--primary); font-weight: 600; white-space: nowrap;
}
body:not(.is-index) .content-card .price { margin: 0; font-size: 21px; color: #e6a23c; font-weight: 800; white-space: nowrap; }
body:not(.is-index) .content-card .price .cur { font-size: 14px; margin-right: 1px; }
body:not(.is-index) .content-card .market { font-size: 12px; }
body:not(.is-index) .content-card-tag {
    display: inline-block; padding: 3px 8px; margin: 8px 6px 0 0; border-radius: 5px;
    font-size: 11px; color: var(--primary); background: var(--primary-soft);
}

/* ---------- 资讯行列表（卡片化） ---------- */
body:not(.is-index) .news-row {
    display: flex; gap: 18px; align-items: stretch; padding: 14px; margin-bottom: 14px;
    border: 1px solid var(--border); border-radius: 14px; background: var(--bg-card);
    transition: transform .25s cubic-bezier(.22, 1, .36, 1), box-shadow .25s, border-color .25s;
}
body:not(.is-index) .news-row:hover {
    transform: translateY(-3px); box-shadow: 0 14px 34px rgba(8, 49, 203, .12); border-color: transparent;
}
body:not(.is-index) .news-row__cover {
    position: relative; width: 170px; height: 116px; flex-shrink: 0;
    border-radius: 10px; overflow: hidden; background: var(--bg-subtle);
}
body:not(.is-index) .news-row__cover img {
    width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s;
}
body:not(.is-index) .news-row:hover .news-row__cover img { transform: scale(1.05); }
body:not(.is-index) .news-row__cover .content-card-no { left: 8px; top: 8px; }
body:not(.is-index) .news-row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
body:not(.is-index) .news-row__title {
    font-size: 17px; font-weight: 700; line-height: 1.45; min-height: 25px;
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
body:not(.is-index) .news-row__summary {
    margin: 8px 0; font-size: 13px; color: var(--text-2); line-height: 1.6;
    overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
body:not(.is-index) .news-row__meta {
    margin-top: auto; display: flex; align-items: center; gap: 14px;
    font-size: 12px; color: var(--text-muted);
}
body:not(.is-index) .news-row__meta span + span::before { content: "·"; margin-right: 14px; opacity: .5; }
body:not(.is-index) .news-row-go {
    align-self: flex-end; font-size: 12.5px; color: var(--primary); font-weight: 600; white-space: nowrap;
}
body:not(.is-index) .news-flag {
    display: inline-block; padding: 2px 7px; border-radius: 5px;
    font-size: 11px; font-weight: 700; color: #fff; background: var(--primary);
}
body:not(.is-index) .news-flag--rec { background: #e6a23c; }

/* ---------- 侧栏卡片 ---------- */
body:not(.is-index) .sidebar-card {
    border: 1px solid var(--border); border-radius: 14px; background: var(--bg-card);
    padding: 18px; margin-bottom: 16px; box-shadow: var(--shadow-sm);
}
body:not(.is-index) .sidebar-title {
    font-size: 15px; font-weight: 700; margin-bottom: 14px;
    padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
body:not(.is-index) .side-cat-item {
    display: block; padding: 8px 12px; border-radius: 8px; margin-bottom: 4px;
    color: var(--text-2); font-size: 13.5px; transition: background .2s, color .2s;
}
body:not(.is-index) .side-cat-item:hover { background: var(--bg-hover); color: var(--primary); }
body:not(.is-index) .side-cat-item.is-active { background: var(--primary-soft); color: var(--primary); font-weight: 700; }
body:not(.is-index) .hot-list li {
    display: flex; align-items: center; gap: 10px; padding: 8px 0;
    border-bottom: 1px dashed var(--border); font-size: 13px;
}
body:not(.is-index) .hot-list li:last-child { border-bottom: 0; }
body:not(.is-index) .hot-list li::before {
    content: attr(data-no); flex-shrink: 0; width: 20px; height: 20px; border-radius: 5px;
    display: grid; place-items: center; font-size: 11px; font-weight: 700;
    color: var(--primary); background: var(--primary-soft);
}
body:not(.is-index) .hot-list a { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body:not(.is-index) .hot-list a:hover { color: var(--primary); }

/* ---------- 空状态 ---------- */
body:not(.is-index) .empty {
    padding: 72px 20px; text-align: center; color: var(--text-muted);
    border: 1px dashed var(--border-strong); border-radius: 16px; background: var(--bg-card);
}
body:not(.is-index) .empty .empty-icon {
    width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 18px;
    display: grid; place-items: center; font-size: 30px;
    color: var(--primary); background: var(--primary-soft);
}
body:not(.is-index) .empty p { color: var(--text-muted); font-size: 14px; }

/* ---------- 分页 ---------- */
body:not(.is-index) .search-more { margin-top: 16px; font-size: 14px; }
body:not(.is-index) .search-more a { color: var(--primary); font-weight: 600; }
body:not(.is-index) .pagination { margin-top: 34px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
    body:not(.is-index) .product-grid,
    body:not(.is-index) .article-grid,
    body:not(.is-index) .case-grid,
    body:not(.is-index) .partner-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    body:not(.is-index) .product-grid,
    body:not(.is-index) .article-grid,
    body:not(.is-index) .case-grid,
    body:not(.is-index) .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    body:not(.is-index) .news-list-layout { grid-template-columns: 1fr; }
    body:not(.is-index) .news-list-side { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
    body:not(.is-index) .sidebar-card { margin-bottom: 0; }
}
@media (max-width: 560px) {
    body:not(.is-index) .product-grid,
    body:not(.is-index) .article-grid,
    body:not(.is-index) .case-grid,
    body:not(.is-index) .partner-grid { grid-template-columns: 1fr; gap: 14px; }
    body:not(.is-index) .content-card-media { height: 190px; }
    body:not(.is-index) .news-list-side { grid-template-columns: 1fr; }
    body:not(.is-index) .news-row { gap: 12px; padding: 10px; }
    body:not(.is-index) .news-row__cover { width: 108px; height: 92px; }
    body:not(.is-index) .news-row__title { font-size: 15px; }
    body:not(.is-index) .news-row__summary { -webkit-line-clamp: 2; margin: 6px 0; }
    body:not(.is-index) .news-row-go { display: none; }
    body:not(.is-index) .subcat-row {
        display: flex; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px;
    }
    body:not(.is-index) .subcat-chip { flex-shrink: 0; }
    body:not(.is-index) .search-box-wrap input { font-size: 14px; }
    body:not(.is-index) .search-box-wrap .btn-primary { padding: 0 18px; }
}

/* h5.css 在窄屏把 .search-box-wrap 强制竖排，这里恢复带图标搜索框横排 */
@media (max-width: 560px) {
    body:not(.is-index) .search-box-wrap { flex-direction: row; }
    body:not(.is-index) .search-box-wrap .search-ico { padding: 0 10px; }
    body:not(.is-index) .search-box-wrap .btn-primary { padding: 0 16px; }
}
