/* ============================================================
   防雷网 - 首页（内容驱动改版）专用样式
   复用 fanglei.css 母版设计令牌（--primary 等）
   ============================================================ */

/* ===== Hero ===== */
.hp-hero {
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 55%, #1976d2 100%);
    color: #fff;
    padding: 38px 0 30px;
    position: relative;
    overflow: hidden;
}
.hp-hero::after {
    content: '';
    position: absolute;
    right: -80px; top: -80px;
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(255,255,255,.12), transparent 70%);
    pointer-events: none;
}
.hp-hero-inner { position: relative; z-index: 1; }
.hp-hero h1 {
    font-size: 34px; font-weight: 800; line-height: 1.25; margin-bottom: 10px;
    letter-spacing: 1px;
}
.hp-hero h1 .accent { color: #ffd54f; }
.hp-hero p.lead {
    font-size: 16px; color: rgba(255,255,255,.88); max-width: 720px; line-height: 1.7;
}
.hp-hero-tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.hp-hero-tags a {
    display: inline-block; padding: 5px 14px; border-radius: 20px;
    background: rgba(255,255,255,.14); color: #fff; font-size: 13px;
    border: 1px solid rgba(255,255,255,.2); transition: all .15s;
}
.hp-hero-tags a:hover { background: rgba(255,255,255,.28); color: #fff; }
.hp-stats {
    margin-top: 22px; display: flex; flex-wrap: wrap; gap: 14px;
}
.hp-stat {
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
    border-radius: 10px; padding: 12px 20px; min-width: 120px;
}
.hp-stat .num { font-size: 24px; font-weight: 800; color: #fff; line-height: 1.1; }
.hp-stat .num span { font-size: 14px; font-weight: 500; opacity: .8; }
.hp-stat .lbl { font-size: 12px; color: rgba(255,255,255,.8); margin-top: 2px; }

/* ===== 区块通用 ===== */
.hp-section { padding: 34px 0; }
.hp-section.gray { background: var(--bg); }
.section-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 18px; border-left: 4px solid var(--primary); padding-left: 12px;
}
.section-head h2 { font-size: 22px; font-weight: 700; color: var(--text); }
.section-head .more {
    font-size: 13px; color: var(--primary); font-weight: 500;
}
.section-head .more:hover { color: var(--primary-dark); }

/* ===== 频道导航网格 ===== */
.channel-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.channel-card {
    background: #fff; border: 1px solid var(--border); border-radius: 10px;
    padding: 18px; display: flex; gap: 14px; align-items: flex-start;
    transition: all .18s; text-decoration: none; color: inherit;
}
.channel-card:hover {
    border-color: var(--primary); box-shadow: 0 6px 20px rgba(21,101,192,.12);
    transform: translateY(-2px);
}
.channel-card .c-icon {
    width: 46px; height: 46px; border-radius: 10px; flex-shrink: 0;
    background: var(--primary-light); color: var(--primary);
    display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.channel-card .c-body h3 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.channel-card .c-body p { font-size: 12.5px; color: var(--text-2); line-height: 1.5; }

/* ===== 两栏布局 ===== */
.hp-2col { display: grid; grid-template-columns: 1fr 340px; gap: 26px; align-items: start; }

/* ===== 列表项 ===== */
.news-list .ni {
    display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--border-light);
}
.news-list .ni:last-child { border-bottom: none; }
.ni-thumb {
    width: 120px; height: 80px; border-radius: 8px; flex-shrink: 0; object-fit: cover;
    background: linear-gradient(135deg, #1565c0, #0d47a1);
    display: flex; align-items: center; justify-content: center; color: #fff; font-size: 28px;
}
.ni-body { flex: 1; min-width: 0; }
.ni-body h4 { font-size: 16px; font-weight: 600; line-height: 1.45; margin-bottom: 6px; }
.ni-body h4 a { color: var(--text); }
.ni-body h4 a:hover { color: var(--primary); }
.ni-meta { font-size: 12px; color: var(--text-3); display: flex; gap: 12px; flex-wrap: wrap; }
.ni-meta .kw { color: var(--primary); }

/* ===== 侧栏卡片 ===== */
.side-card {
    background: #fff; border: 1px solid var(--border); border-radius: 10px;
    padding: 16px; margin-bottom: 18px;
}
.side-card h3 {
    font-size: 15px; font-weight: 700; margin-bottom: 12px;
    padding-bottom: 8px; border-bottom: 2px solid var(--primary-light); color: var(--text);
}
.mini-list li { padding: 7px 0; font-size: 13.5px; border-bottom: 1px dashed var(--border-light); }
.mini-list li:last-child { border-bottom: none; }
.mini-list li a { color: var(--text-2); }
.mini-list li a:hover { color: var(--primary); }
.mini-list .dot { color: var(--primary); margin-right: 6px; }

/* ===== 产品/企业卡片网格 ===== */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.prod-card {
    background: #fff; border: 1px solid var(--border); border-radius: 10px;
    overflow: hidden; transition: all .18s;
}
.prod-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); transform: translateY(-2px); }
.prod-card a { text-decoration: none; color: inherit; display: block; }
.prod-thumb {
    height: 140px; background: linear-gradient(135deg, #1565c0, #0d47a1);
    display: flex; align-items: center; justify-content: center; color: #fff; font-size: 40px;
}
.prod-thumb img { width: 100%; height: 100%; object-fit: cover; }
.prod-info { padding: 12px 14px; }
.prod-info h4 { font-size: 14.5px; font-weight: 600; margin-bottom: 6px; color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prod-info .brand { font-size: 12px; color: var(--text-3); }
.prod-info .price { color: var(--danger); font-weight: 700; font-size: 16px; margin-top: 4px; }
.prod-info .price small { color: var(--text-3); font-weight: 400; font-size: 12px; }

.cert-badge {
    display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700;
    color: #fff; background: linear-gradient(135deg,#2e7d32,#1b5e20);
    padding: 2px 7px; border-radius: 4px; margin-left: 6px; vertical-align: middle;
}
.cert-badge.flagship { background: linear-gradient(135deg,#ef6c00,#e65100); }

/* ===== 问答列表 ===== */
.mini-qa li { display: flex; gap: 8px; align-items: baseline; }
.mini-qa .q { color: var(--primary); font-weight: 700; flex-shrink: 0; }

/* ===== 招聘条目 ===== */
.job-mini {
    display: flex; justify-content: space-between; align-items: center;
    padding: 11px 0; border-bottom: 1px dashed var(--border-light); gap: 10px;
}
.job-mini:last-child { border-bottom: none; }
.job-mini .jt { font-size: 14.5px; font-weight: 600; color: var(--text); }
.job-mini .jt a { color: var(--text); }
.job-mini .jt a:hover { color: var(--primary); }
.job-mini .jm { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.job-mini .js { color: var(--danger); font-weight: 700; font-size: 13px; white-space: nowrap; }

/* ===== 题库 CTA ===== */
.exam-box {
    background: linear-gradient(135deg,#1565c0,#0d47a1); color: #fff; border-radius: 12px;
    padding: 26px 30px; display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 20px;
}
.exam-box .eb-left h3 { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.exam-box .eb-left p { color: rgba(255,255,255,.85); font-size: 14px; }
.exam-box .eb-stats { display: flex; gap: 26px; }
.exam-box .eb-stats .s { text-align: center; }
.exam-box .eb-stats .s .n { font-size: 26px; font-weight: 800; }
.exam-box .eb-stats .s .l { font-size: 12px; color: rgba(255,255,255,.8); }
.exam-box .btn-white {
    background: #fff; color: var(--primary-dark); padding: 11px 26px; border-radius: 6px;
    font-weight: 700; text-decoration: none; transition: all .15s;
}
.exam-box .btn-white:hover { background: #ffd54f; }

/* ===== 保险 CTA 条 ===== */
.insure-cta {
    background: linear-gradient(135deg,#00897b,#00695c); color: #fff; border-radius: 12px;
    padding: 24px 30px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.insure-cta .ic-icon { font-size: 40px; }
.insure-cta h3 { font-size: 19px; font-weight: 800; }
.insure-cta p { color: rgba(255,255,255,.88); font-size: 14px; flex: 1; min-width: 220px; }
.insure-cta .btn-cta {
    background: #ffd54f; color: #004d40; padding: 11px 26px; border-radius: 6px;
    font-weight: 700; text-decoration: none;
}
.insure-cta .btn-cta:hover { background: #ffe082; }

/* ===== 响应式 ===== */
@media (max-width: 980px) {
    .hp-2col { grid-template-columns: 1fr; }
    .channel-grid { grid-template-columns: repeat(2, 1fr); }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .hp-hero h1 { font-size: 27px; }
}
@media (max-width: 560px) {
    .channel-grid, .card-grid { grid-template-columns: 1fr; }
    .hp-stat { min-width: calc(50% - 7px); }
    .ni-thumb { width: 90px; height: 64px; font-size: 22px; }
}
