﻿/* ============================================
   平台公告条
   ============================================ */
.notice-bar {
    display: flex; align-items: center; gap: 12px;
    background: #fffbe6; border: 1px solid #ffe58f; border-radius: var(--radius);
    padding: 8px 14px; margin: 16px 0; font-size: 13px; color: #875a00;
}
.notice-bar .notice-tag {
    background: var(--primary); color: #fff; font-size: 12px; font-weight: 700;
    padding: 2px 10px; border-radius: 3px; flex-shrink: 0;
}
.notice-text { flex: 1; overflow: hidden; white-space: nowrap; }

/* ============================================
   首页主区：全分类 + 轮播 + 右侧面板
   ============================================ */
.portal-grid {
    display: grid; grid-template-columns: 210px 1fr 250px;
    gap: 14px; margin-top: 16px; align-items: stretch;
}

/* 左侧：全部分类 */
.cat-panel {
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.cat-panel-title {
    background: var(--primary); color: #fff; font-weight: 700; font-size: 15px;
    padding: 11px 16px; display: flex; align-items: center; gap: 8px;
}
.cat-panel-list li a {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 16px; font-size: 13.5px; color: var(--text-60);
    border-bottom: 1px solid #f2f2f2; transition: all 0.25s;
}
.cat-panel-list li:last-child a { border-bottom: none; }
.cat-panel-list li a .dot {
    width: 6px; height: 6px; border-radius: 50%; background: var(--border-strong); flex-shrink: 0;
}
.cat-panel-list li a:hover { background: var(--primary-soft); color: var(--primary); padding-left: 20px; }
.cat-panel-list li a:hover .dot { background: var(--primary); }

/* 中间：轮播 */
.carousel {
    position: relative; border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--border); background: var(--primary-deep);
}
.carousel-track { position: relative; height: 100%; min-height: 330px; }
.carousel-slide {
    position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s var(--ease);
}
.carousel-slide.active { opacity: 1; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-caption {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
    padding: 40px 24px 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.72)); color: #fff;
}
.carousel-caption h3 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.carousel-caption p { font-size: 13px; opacity: 0.85; }
.carousel-dots { position: absolute; right: 14px; bottom: 14px; z-index: 3; display: flex; gap: 6px; }
.carousel-dots button {
    width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.5); transition: all 0.3s;
}
.carousel-dots button.active { background: #fff; width: 22px; border-radius: 5px; }

/* 右侧：服务面板 */
.service-panel {
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
    display: flex; flex-direction: column; overflow: hidden;
}
.service-hotline {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; padding: 14px 16px; text-align: center;
}
.service-hotline small { display: block; font-size: 12px; opacity: 0.85; }
.service-hotline strong { display: block; font-size: 22px; letter-spacing: 0.5px; margin-top: 2px; }
.service-quick { display: grid; grid-template-columns: 1fr 1fr; }
.service-quick a {
    padding: 14px 8px; text-align: center; font-size: 12.5px; color: var(--text-60);
    border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
    transition: all 0.25s;
}
.service-quick a:nth-child(2n) { border-right: none; }
.service-quick a:hover { background: var(--primary-soft); color: var(--primary); }
.service-quick svg { width: 22px; height: 22px; display: block; margin: 0 auto 4px; fill: none; stroke: var(--primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* 右侧：热点资讯榜 */
.hot-news-panel { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.hot-news-panel .panel-tab-head { display: flex; border-bottom: 1px solid var(--border); }
.hot-news-panel .panel-tab-head a {
    flex: 1; text-align: center; padding: 9px 0; font-size: 13.5px; color: var(--text-60);
    border-bottom: 2px solid transparent;
}
.hot-news-panel .panel-tab-head a.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 700; }
.rank-list { padding: 8px 14px; flex: 1; }
.rank-list li a {
    display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 13px; color: var(--text-60);
}
.rank-list li a:hover { color: var(--primary); }
.rank-num {
    width: 17px; height: 17px; flex-shrink: 0; border-radius: 3px;
    background: #d4d4d4; color: #fff; font-size: 11px; font-weight: 800;
    display: grid; place-items: center;
}
.rank-list li:nth-child(1) .rank-num { background: #e13c3c; }
.rank-list li:nth-child(2) .rank-num { background: #f0733c; }
.rank-list li:nth-child(3) .rank-num { background: #f2a63c; }
.rank-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-hot { color: var(--primary); font-size: 11px; margin-left: auto; flex-shrink: 0; }

/* ============================================
   快捷服务入口（图标条）
   ============================================ */
.quick-entry-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
}
.quick-entry-grid a {
    display: flex; align-items: center; gap: 12px; padding: 18px 22px;
    border-right: 1px solid var(--border); transition: all 0.3s;
}
.quick-entry-grid a:last-child { border-right: none; }
.quick-entry-grid a:hover { background: var(--primary-soft); }
.quick-entry-icon {
    width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
    background: var(--primary-soft); display: grid; place-items: center;
}
.quick-entry-icon svg { width: 21px; height: 21px; fill: none; stroke: var(--primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.quick-entry-text strong { display: block; font-size: 15px; color: var(--text); }
.quick-entry-text small { font-size: 12px; color: var(--text-40); }

/* ============================================
   热门分类（分类快入）
   ============================================ */
.hot-cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hot-cat-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px;
    transition: all 0.3s;
}
.hot-cat-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.hot-cat-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.hot-cat-head h3 { font-size: 15.5px; font-weight: 700; }
.hot-cat-head h3 a:hover { color: var(--primary); }
.hot-cat-head .more { font-size: 12px; color: var(--text-40); }
.hot-cat-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.hot-cat-tags a {
    font-size: 12.5px; color: var(--text-60); padding: 3px 10px;
    background: var(--bg-light); border-radius: 3px; transition: all 0.25s;
}
.hot-cat-tags a:hover { background: var(--primary-soft); color: var(--primary); }

/* ============================================
   分类网格（category 页）
   ============================================ */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 22px 18px; transition: all 0.3s var(--ease); position: relative; overflow: hidden;
}
.cat-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.cat-icon {
    width: 48px; height: 48px; border-radius: var(--radius); background: var(--primary-soft); color: var(--primary);
    display: grid; place-items: center; margin-bottom: 14px;
}
.cat-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin:round; }
.cat-card h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; }
.cat-card p { font-size: 13px; color: var(--text-60); line-height: 1.7; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-more { font-size: 13px; color: var(--primary); font-weight: 600; }
.cat-more::after { content: " →"; }

/* ============================================
   产品卡片（平台风格）
   ============================================ */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.prod-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; transition: all 0.3s var(--ease);
    display: flex; flex-direction: column;
}
.prod-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.prod-img { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--bg-light); }
.prod-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s var(--ease); }
.prod-card:hover .prod-img img { transform: scale(1.06); }
.prod-tag {
    position: absolute; left: 0; top: 0; z-index: 2;
    background: var(--primary); color: #fff; font-size: 11px; padding: 3px 9px; font-weight: 600;
    border-radius: var(--radius) 0 var(--radius) 0;
}
.prod-body { padding: 12px; flex: 1; display: flex; flex-direction: column; }
.prod-body h3 {
    font-size: 14px; font-weight: 600; line-height: 1.5; margin-bottom: 6px; color: var(--text);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 42px;
}
.prod-model { font-size: 12.5px; color: var(--text-60); margin-bottom: 8px; }
/* 立即询价按钮（卡片内） */
.inquiry-btn {
    width: 100%; margin-top: auto; padding: 9px 0;
    border: 1px solid var(--primary); border-radius: var(--radius);
    background: #fff; color: var(--primary);
    font-size: 14px; font-weight: 700; cursor: pointer;
    transition: all 0.25s; line-height: 1.4;
}
.inquiry-btn:hover {
    background: var(--primary); color: #fff;
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.3);
}
/* 推荐列表中的小号询价按钮 */
.inquiry-btn-sm {
    width: auto; margin-top: 4px; padding: 4px 14px; font-size: 12px; border-radius: 14px;
}

/* 询价弹窗内：立即拨打电话（表单下方） */
.inquiry-call {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 4px; padding: 13px 0;
    border: 1px dashed var(--primary); border-radius: var(--radius);
    background: rgba(200, 16, 46, 0.04);
    color: var(--primary); font-size: 15px; font-weight: 700;
    transition: all 0.2s;
}
.inquiry-call:hover {
    background: var(--primary); color: #fff; border-style: solid;
}
.inquiry-call svg { flex-shrink: 0; }

@media (max-width: 640px) {
    .inquiry-call { font-size: 14px; }
}
.prod-supplier {
    margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border);
    font-size: 12px; color: var(--text-60);
    display: flex; align-items: center; gap: 4px;
}
.prod-supplier svg { width: 13px; height: 13px; flex-shrink: 0; fill: none; stroke: var(--text-40); stroke-width: 1.6; }
.prod-supplier .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prod-supplier .vip { color: #e8a028; font-weight: 700; margin-right: 3px; flex-shrink: 0; }



/* ============================================
   首页补充：紧凑区块 / 信息面板 / 文字列表 / 问答
   ============================================ */

/* 首页区块（容器内，高密度、不留大空场） */
.home-section { padding: 28px 0 2px; }
.home-section:last-of-type { padding-bottom: 26px; }

.section-head.text-left { justify-content: flex-start; }

/* 白底信息面板 */
.info-panel {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
}
.info-panel .panel-bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 11px 16px; border-bottom: 1px solid var(--border);
}
.info-panel .panel-bar h3 {
    font-size: 15.5px; font-weight: 700; color: var(--text);
    padding-left: 10px; border-left: 3px solid var(--primary); line-height: 1.25;
}
.info-panel .panel-bar .bar-more { font-size: 12.5px; color: var(--text-40); white-space: nowrap; }
.info-panel .panel-bar .bar-more:hover { color: var(--primary); }

/* 首页底部两栏 */
.portal-info-grid { display: grid; grid-template-columns: 1fr 370px; gap: 14px; align-items: start; }

/* 文字列表行 */
.text-list li a {
    display: flex; align-items: center; gap: 12px;
    padding: 10.5px 16px; border-bottom: 1px solid #f3f3f3;
    font-size: 13.5px; color: var(--text-60);
}
.text-list li:last-child a { border-bottom: none; }
.text-list li a .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-list li a .t::before { content: "·"; color: var(--primary); margin-right: 8px; font-weight: 800; }
.text-list li a .d { flex-shrink: 0; font-size: 12px; color: var(--text-40); }
.text-list li a:hover .t { color: var(--primary); }

/* 迷你问答 */
.faq-mini li { padding: 12px 16px; border-bottom: 1px solid #f3f3f3; }
.faq-mini li:last-child { border-bottom: none; }
.faq-mini .q {
    display: flex; gap: 7px; font-size: 13.5px; font-weight: 700; color: var(--text); line-height: 1.6;
}
.faq-mini .q::before {
    content: "Q"; flex-shrink: 0; width: 17px; height: 17px; margin-top: 2px;
    background: var(--primary); color: #fff; border-radius: 3px;
    font-size: 11px; font-weight: 800; display: grid; place-items: center;
}
.faq-mini .a { margin: 6px 0 0 24px; font-size: 12.5px; color: var(--text-60); line-height: 1.75; position: relative; }
.faq-mini .a::before {
    content: "A"; position: absolute; left: -24px; top: 0;
    width: 17px; height: 17px; background: var(--accent); color: #fff;
    border-radius: 3px; font-size: 11px; font-weight: 800; display: grid; place-items: center;
}