/* ============================================================
   supply-chain.css — 勒索软件研究·供应链攻击专项研究专题样式
   与学院全局 style.css 变量完全兼容；含完整移动端适配
   ============================================================ */

/* ===== 页面头部 ===== */
.sc-page-header {
    text-align: center;
    padding: 140px 0 56px;
    background: linear-gradient(180deg, #f0f5ff 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}
.sc-page-header::after {
    content: '';
    position: absolute;
    right: -120px; top: -120px;
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(26,110,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.sc-breadcrumb {
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
    gap: 8px; margin-bottom: 18px; font-size: 13px; color: var(--text-light);
}
.sc-breadcrumb a { color: var(--primary); text-decoration: none; font-weight: 500; }
.sc-breadcrumb a:hover { text-decoration: underline; }
.sc-page-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(26,110,255,0.08); color: var(--primary);
    font-size: 13px; font-weight: 600; padding: 6px 18px;
    border-radius: 100px; border: 1px solid rgba(26,110,255,0.15); margin-bottom: 18px;
}
.sc-page-header h1 {
    text-align: center;
    font-size: clamp(26px, 4vw, 40px); font-weight: 900; color: var(--text);
    line-height: 1.25; margin-bottom: 14px; letter-spacing: -0.5px;
}
.sc-page-header h1 em {
    font-style: normal;
    background: var(--primary-gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.sc-page-header .sc-lead {
    font-size: clamp(14px, 1.8vw, 16px); color: var(--text-secondary);
    max-width: 760px; margin: 0 auto; line-height: 1.9;
}
.sc-page-indicator {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 26px;
}
.sc-page-dot {
    font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 100px;
    background: var(--bg-warm); color: var(--text-light); border: 1px solid var(--border);
    text-decoration: none; transition: var(--transition);
}
a.sc-page-dot:hover { border-color: var(--primary); color: var(--primary); }
.sc-page-dot.current {
    background: var(--primary-gradient); color: #fff; border-color: transparent;
    box-shadow: 0 4px 14px rgba(26,110,255,0.3);
}

/* ===== 通用容器 ===== */
.sc-abstract {
    background: white; border: 1px solid var(--border); border-left: 4px solid var(--primary);
    border-radius: var(--radius); padding: 26px 30px; margin-bottom: 28px;
    font-size: 14px; color: var(--text-secondary); line-height: 1.95;
}
.sc-abstract strong { color: var(--text); }
.sc-abstract .abs-label {
    display: inline-block; font-size: 12px; font-weight: 800; color: var(--primary);
    letter-spacing: 2px; margin-bottom: 10px;
}

/* ===== 网格卡片 ===== */
.sc-grid { display: grid; gap: 20px; }
.sc-grid-2 { grid-template-columns: repeat(2, 1fr); }
.sc-grid-3 { grid-template-columns: repeat(3, 1fr); }
.sc-grid-4 { grid-template-columns: repeat(4, 1fr); }
.sc-card {
    background: white; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 26px; transition: var(--transition); position: relative; overflow: hidden;
}
.sc-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.sc-card-topline::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--primary-gradient);
}
.sc-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.sc-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.sc-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.85; }
.sc-card p + p { margin-top: 8px; }
.sc-card .sc-card-sub { font-size: 12px; color: var(--text-light); margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); }

/* JS绘制图标 */
.ico { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ico svg { display: block; }
.sc-ico-box {
    width: 46px; height: 46px; border-radius: 12px;
    background: var(--primary-light); color: var(--primary);
    display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.sc-ico-box.red { background: #fef2f2; color: #dc2626; }
.sc-ico-box.orange { background: #fff7ed; color: #ea580c; }
.sc-ico-box.green { background: #f0fdf4; color: #16a34a; }
.sc-ico-box.purple { background: #f5f3ff; color: #7c3aed; }

/* ===== 数据指标条 ===== */
.sc-metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-bottom: 28px; }
.sc-metric {
    background: white; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px; text-align: center; transition: var(--transition);
}
.sc-metric:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.sc-metric .m-num { font-size: 30px; font-weight: 900; color: var(--primary); line-height: 1.1; font-variant-numeric: tabular-nums; }
.sc-metric .m-num small { font-size: 14px; font-weight: 700; }
.sc-metric .m-label { font-size: 12px; color: var(--text-light); margin-top: 8px; font-weight: 500; line-height: 1.5; }
.sc-metric.red .m-num { color: #dc2626; }
.sc-metric.orange .m-num { color: #ea580c; }
.sc-metric.green .m-num { color: #16a34a; }

/* ===== 时间线 ===== */
.sc-timeline { position: relative; max-width: 860px; margin: 0 auto; padding-left: 34px; }
.sc-timeline::before {
    content: ''; position: absolute; left: 10px; top: 6px; bottom: 6px; width: 2px;
    background: linear-gradient(180deg, #dc2626 0%, var(--primary) 45%, var(--primary-light) 100%);
}
.sc-tl-item { position: relative; padding-bottom: 26px; }
.sc-tl-item:last-child { padding-bottom: 0; }
.sc-tl-dot {
    position: absolute; left: -31px; top: 4px; width: 14px; height: 14px;
    background: white; border: 3px solid var(--primary); border-radius: 50%;
}
.sc-tl-item.hot .sc-tl-dot { border-color: #dc2626; background: #dc2626; box-shadow: 0 0 0 4px rgba(220,38,38,0.15); }
.sc-tl-card {
    background: white; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 18px 22px; transition: var(--transition);
}
.sc-tl-card:hover { border-color: rgba(26,110,255,0.25); box-shadow: var(--shadow); }
.sc-tl-year {
    display: inline-block; font-size: 12px; font-weight: 800; color: #dc2626;
    background: #fef2f2; padding: 3px 12px; border-radius: 100px; margin-bottom: 8px;
}
.sc-tl-card h4 { font-size: 15px; font-weight: 800; margin-bottom: 6px; }
.sc-tl-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.8; }

/* ===== 表格 ===== */
.sc-table-wrap { overflow-x: auto; background: white; border: 1px solid var(--border); border-radius: var(--radius); }
.sc-table { width: 100%; border-collapse: collapse; min-width: 680px; font-size: 13px; }
.sc-table th {
    text-align: left; padding: 14px 16px; background: var(--bg-warm);
    color: var(--text); font-weight: 700; white-space: nowrap; border-bottom: 2px solid var(--border);
}
.sc-table td { padding: 13px 16px; border-bottom: 1px solid var(--border); color: var(--text-secondary); line-height: 1.7; vertical-align: top; }
.sc-table tr:last-child td { border-bottom: none; }
.sc-table tr:hover td { background: rgba(26,110,255,0.03); }
.sc-table td strong { color: var(--text); }
.sc-table .tag {
    display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 10px;
    border-radius: 100px; margin: 2px 4px 2px 0; white-space: nowrap;
}
.tag-red { background: #fef2f2; color: #dc2626; }
.tag-blue { background: var(--primary-light); color: var(--primary); }
.tag-orange { background: #fff7ed; color: #ea580c; }
.tag-green { background: #f0fdf4; color: #16a34a; }
.tag-gray { background: var(--bg-warm); color: var(--text-light); }

/* ===== 步骤/流程 ===== */
.sc-steps { counter-reset: step; display: grid; gap: 14px; }
.sc-step {
    display: flex; gap: 16px; background: white; border: 1px solid var(--border);
    border-radius: var(--radius); padding: 18px 22px; transition: var(--transition);
}
.sc-step:hover { border-color: rgba(26,110,255,0.25); box-shadow: var(--shadow); }
.sc-step-no {
    counter-increment: step; flex-shrink: 0; width: 40px; height: 40px;
    background: var(--primary-gradient); color: white; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 900;
}
.sc-step-no::before { content: counter(step, decimal-leading-zero); }
.sc-step h4 { font-size: 14px; font-weight: 800; margin-bottom: 4px; }
.sc-step p { font-size: 13px; color: var(--text-secondary); line-height: 1.8; }
.sc-step p code, .sc-card code {
    font-family: 'SFMono-Regular', Consolas, monospace; font-size: 12px;
    background: var(--bg-warm); padding: 2px 7px; border-radius: 6px;
    border: 1px solid var(--border); color: var(--primary-dark);
}

/* ===== 案例卡 ===== */
.sc-case {
    background: white; border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; transition: var(--transition); margin-bottom: 24px;
}
.sc-case:hover { box-shadow: var(--shadow-hover); }
.sc-case-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 20px 26px; background: linear-gradient(135deg, #f8faff 0%, #f0f5ff 100%);
    border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.sc-case-head h3 { font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.sc-case-body { padding: 22px 26px; }
.sc-case-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.sc-case-block { font-size: 13px; color: var(--text-secondary); line-height: 1.85; }
.sc-case-block h5 {
    font-size: 13px; font-weight: 800; color: var(--text); margin-bottom: 6px;
    display: flex; align-items: center; gap: 6px;
}
.sc-case-block h5 .ico { color: var(--primary); }
.sc-case-block ul { list-style: none; padding: 0; }
.sc-case-block li { padding-left: 16px; position: relative; margin-bottom: 5px; }
.sc-case-block li::before {
    content: ''; position: absolute; left: 2px; top: 9px; width: 5px; height: 5px;
    background: var(--primary); border-radius: 50%; opacity: 0.55;
}
.sc-case-lesson {
    margin-top: 16px; padding: 14px 18px; border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(26,110,255,0.05) 100%);
    font-size: 13px; line-height: 1.85; color: var(--text);
    display: flex; gap: 10px; align-items: flex-start;
}
.sc-case-lesson .ico { color: var(--primary); margin-top: 3px; }
.sc-src { font-size: 11px; color: var(--text-light); margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--border); }

/* ===== 引用参考文献 ===== */
.sc-refs { counter-reset: ref; }
.sc-ref {
    counter-increment: ref; display: flex; gap: 12px; padding: 12px 0;
    border-bottom: 1px dashed var(--border); font-size: 13px; color: var(--text-secondary); line-height: 1.75;
}
.sc-ref:last-child { border-bottom: none; }
.sc-ref::before {
    content: '[' counter(ref) ']'; flex-shrink: 0; font-weight: 800; color: var(--primary);
    font-variant-numeric: tabular-nums;
}
.sc-ref a { color: var(--primary); text-decoration: none; word-break: break-all; }
.sc-ref a:hover { text-decoration: underline; }
.sc-ref .ref-title { font-weight: 700; color: var(--text); }

/* 文内引用角标 */
.sc-cite {
    display: inline-block; font-size: 10px; font-weight: 800; color: var(--primary);
    vertical-align: super; line-height: 1; margin-left: 2px;
}

/* ===== 警示框 ===== */
.sc-alert {
    display: flex; gap: 12px; align-items: flex-start; border-radius: var(--radius);
    padding: 18px 20px; font-size: 13.5px; line-height: 1.85; margin-bottom: 24px;
}
.sc-alert .ico { flex-shrink: 0; margin-top: 2px; }
.sc-alert.warn { background: linear-gradient(135deg,#fff7ed,#fef3c7); border: 1px dashed rgba(234,88,12,0.35); color: #92400e; }
.sc-alert.danger { background: linear-gradient(135deg,#fef2f2,#fff1f2); border: 1px dashed rgba(220,38,38,0.3); color: #7f1d1d; }
.sc-alert.info { background: linear-gradient(135deg,#eff6ff,#f0f9ff); border: 1px dashed rgba(26,110,255,0.3); color: #1e3a8a; }
.sc-alert strong { font-weight: 800; }

/* ===== 风险评估模型 ===== */
.sc-model-band {
    background: white; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px; margin-bottom: 14px;
}
.sc-model-band h4 {
    font-size: 14px; font-weight: 800; margin-bottom: 12px;
    display: flex; align-items: center; gap: 8px;
}
.sc-score { display: flex; align-items: center; gap: 10px; }
.sc-score-bar { flex: 1; height: 10px; background: var(--bg-warm); border-radius: 5px; overflow: hidden; }
.sc-score-fill { height: 100%; border-radius: 5px; transition: width 1.2s cubic-bezier(0.4,0,0.2,1); }
.sc-score-num { font-size: 13px; font-weight: 900; color: var(--text); width: 42px; text-align: right; }

/* ===== 分页导航 ===== */
.sc-pager {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    background: white; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 22px 26px; margin-top: 40px; flex-wrap: wrap;
}
.sc-pager-btn {
    display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
    padding: 13px 22px; border-radius: 12px; font-size: 14px; font-weight: 700;
    transition: var(--transition); border: 1.5px solid var(--border); color: var(--text-secondary);
    background: white; max-width: 48%;
}
.sc-pager-btn:hover { border-color: var(--primary); color: var(--primary); box-shadow: var(--shadow); }
.sc-pager-btn.primary {
    background: var(--primary-gradient); color: white; border-color: transparent;
}
.sc-pager-btn.primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,110,255,0.3); }
.sc-pager-btn .pp { display: flex; flex-direction: column; line-height: 1.4; }
.sc-pager-btn .pp small { font-size: 11px; font-weight: 500; opacity: 0.75; }
.sc-pager-btn.next { margin-left: auto; text-align: right; }

/* ===== TOC ===== */
.sc-toc {
    display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 auto 32px;
}
.sc-toc a {
    font-size: 12.5px; font-weight: 600; color: var(--text-secondary);
    background: white; border: 1px solid var(--border); padding: 7px 16px;
    border-radius: 100px; text-decoration: none; transition: var(--transition);
}
.sc-toc a:hover { color: var(--primary); border-color: var(--primary); box-shadow: var(--shadow); }

/* ===== 小节标签 ===== */
.sc-kicker {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: fit-content; margin: 0 auto 10px;
    font-size: 13px; font-weight: 800; color: var(--primary);
    letter-spacing: 1px;
}
.sc-kicker::before { content: ''; width: 22px; height: 2px; background: var(--primary); border-radius: 2px; }
.sc-h2 { text-align: center; font-size: clamp(20px, 2.6vw, 27px); font-weight: 900; color: var(--text); margin-bottom: 10px; line-height: 1.35; }
.sc-h2-desc { text-align: center; font-size: 14px; color: var(--text-secondary); line-height: 1.85; max-width: 780px; margin: 0 auto 28px; }

/* ===== 移动端导航（与学院站一致） ===== */
@media (max-width: 1024px) {
    .sc-grid-4 { grid-template-columns: repeat(2,1fr); }
    .sc-grid-3 { grid-template-columns: repeat(2,1fr); }
    .sc-metrics { grid-template-columns: repeat(2,1fr); }
    .sc-case-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .nav-links {
        display: none; position: absolute; top: 72px; left: 0; right: 0;
        background: white; flex-direction: column; padding: 16px 24px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.08); gap: 4px;
        border-bottom: 1px solid var(--border); list-style: none;
    }
    .nav-links.active { display: flex; }
    .mobile-toggle { display: flex !important; }
    .sc-page-header { padding: 116px 0 40px; }
    .sc-grid-2, .sc-grid-3, .sc-grid-4 { grid-template-columns: 1fr; }
    .sc-metrics { grid-template-columns: repeat(2,1fr); gap: 12px; }
    .sc-metric .m-num { font-size: 24px; }
    .section { padding: 52px 0; }
    .sc-pager { flex-direction: column; align-items: stretch; }
    .sc-pager-btn { max-width: 100%; justify-content: center; }
    .sc-pager-btn.next { margin-left: 0; }
    .sc-pager-mid { text-align: center; order: -1; }
    .sc-case-head { padding: 16px 18px; }
    .sc-case-body { padding: 18px; }
    .sc-abstract { padding: 20px; }
    .sc-timeline { padding-left: 26px; }
    .sc-tl-dot { left: -23px; width: 12px; height: 12px; border-width: 2.5px; }
    .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 28px !important; }
}
@media (max-width: 480px) {
    .sc-metrics { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr !important; }
}
