/* ============================================================
   ransomware.css — 勒索软件研究专题页专属样式
   与 style.css 全局变量完全兼容，不修改全局样式
   ============================================================ */

/* ===== HERO ===== */
.ransomware-hero {
    position: relative;
    min-height: 720px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(180deg, #f0f5ff 0%, #ffffff 100%);
    padding-top: 72px;
}
#ransomwareCanvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}
.ransomware-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: radial-gradient(ellipse at 30% 50%, transparent 0%, rgba(240,245,255,0.2) 50%, rgba(255,255,255,0.5) 100%);
    pointer-events: none;
}
.ransomware-hero-content {
    position: relative;
    z-index: 3;
    max-width: 960px;
    text-align: center;
    padding: 48px 24px;
}
.breadcrumb-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--text-light);
}
.breadcrumb-nav a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}
.breadcrumb-nav a:hover { text-decoration: underline; }
.ransomware-hero-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: 8px 20px;
    border-radius: 100px;
    margin-bottom: 24px;
    border: 1px solid rgba(26, 110, 255, 0.15);
    animation: fadeInDown 0.8s ease-out;
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.ransomware-hero h1 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 900;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 20px;
    letter-spacing: -1px;
    animation: fadeInUp 0.8s ease-out 0.15s both;
}
.ransomware-hero h1 .highlight {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.ransomware-hero-content > p {
    font-size: clamp(15px, 2vw, 18px);
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto 32px;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}
.ransomware-hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 36px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}
.ransomware-hero-stats .stat-item { text-align: center; }
.ransomware-hero-stats .stat-number {
    font-size: 36px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.ransomware-hero-stats .stat-label {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 8px;
    font-weight: 500;
}

/* ===== THREAT CARDS ===== */
.threat-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}
.threat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.threat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    transition: var(--transition);
}
.threat-card.danger::before { background: linear-gradient(90deg, #dc2626, #ef4444); }
.threat-card.warning::before { background: linear-gradient(90deg, #ea580c, #f97316); }
.threat-card.info::before { background: linear-gradient(90deg, #1a6eff, #3b82f6); }
.threat-card.success::before { background: linear-gradient(90deg, #16a34a, #22c55e); }
.threat-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}
.threat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.threat-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.threat-card.danger .threat-icon { background: #fef2f2; color: #dc2626; }
.threat-card.warning .threat-icon { background: #fff7ed; color: #ea580c; }
.threat-card.info .threat-icon { background: #eff6ff; color: #1a6eff; }
.threat-card.success .threat-icon { background: #f0fdf4; color: #16a34a; }
.threat-icon svg { width: 22px; height: 22px; }
.threat-trend {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 100px;
}
.threat-trend.up {
    background: #fef2f2;
    color: #dc2626;
}
.threat-card.warning .threat-trend.up {
    background: #fff7ed;
    color: #ea580c;
}
.threat-card.success .threat-trend {
    background: #f0fdf4;
    color: #16a34a;
}
.threat-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.threat-number {
    font-size: 32px;
    font-weight: 900;
    color: var(--text);
    line-height: 1;
    margin-bottom: 8px;
}
.threat-number span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    margin-left: 4px;
}
.threat-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}
.threat-source {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 500;
}

/* ===== THREAT DETAIL ===== */
.threat-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.threat-detail-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}
.threat-detail-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}
.threat-detail-card h4 svg { color: var(--primary); }
.industry-bars { display: flex; flex-direction: column; gap: 12px; }
.industry-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}
.industry-name {
    font-size: 13px;
    color: var(--text-secondary);
    width: 100px;
    flex-shrink: 0;
}
.bar-wrap {
    flex: 1;
    height: 8px;
    background: var(--bg-warm);
    border-radius: 4px;
    overflow: hidden;
}
.bar {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 4px;
    transition: width 1.5s ease;
}
.industry-pct {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    width: 50px;
    text-align: right;
    flex-shrink: 0;
}
.attack-pie { display: flex; flex-direction: column; gap: 10px; }
.pie-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.pie-color {
    width: 12px; height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
}
.pie-label {
    font-size: 13px;
    color: var(--text-secondary);
    flex: 1;
}
.pie-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}
.detail-note {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

/* ===== FAMILY TABS ===== */
.family-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    justify-content: center;
}
.family-tab {
    padding: 10px 24px;
    border-radius: 100px;
    border: 1.5px solid var(--border);
    background: white;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}
.family-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.family-tab.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(26, 110, 255, 0.3);
}
.family-panels { position: relative; }
.family-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}
.family-panel.active { display: block; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== FAMILY CARD ===== */
.family-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
}
.family-card:hover {
    box-shadow: var(--shadow-hover);
}
.family-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.family-badge {
    font-size: 11px;
    font-weight: 900;
    padding: 6px 14px;
    border-radius: 100px;
    color: white;
    flex-shrink: 0;
}
.family-badge.rank-1 { background: linear-gradient(135deg, #dc2626, #ef4444); }
.family-badge.rank-2 { background: linear-gradient(135deg, #ea580c, #f97316); }
.family-badge.rank-3 { background: linear-gradient(135deg, #f59e0b, #fbbf24); color: var(--text); }
.family-badge.rank-4 { background: linear-gradient(135deg, #1a6eff, #3b82f6); }
.family-badge.rank-5 { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.family-badge.rank-6 { background: linear-gradient(135deg, #059669, #10b981); }
.family-title h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text);
}
.family-alias {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
}
.family-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.meta-tag {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    padding: 3px 10px;
    border-radius: 100px;
}
.family-stats-row {
    display: flex;
    gap: 32px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.fam-stat { text-align: center; }
.fam-stat-num {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}
.fam-stat-label {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
    font-weight: 500;
}
.family-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}
.family-desc p { margin-bottom: 10px; }
.family-desc p:last-child { margin-bottom: 0; }
.family-ttp h5 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}
.ttp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.ttp-tags span {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 100px;
    background: var(--bg-warm);
    color: var(--text-secondary);
}
.ttp-tags span:nth-child(odd) {
    background: var(--primary-light);
    color: var(--primary);
}
.family-more {
    text-align: center;
    margin-top: 32px;
}

/* ===== EVOLUTION TIMELINE ===== */
.evo-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 40px;
}
.evo-timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 50%, var(--border) 100%);
}
.evo-item {
    position: relative;
    padding-bottom: 40px;
}
.evo-item:last-child { padding-bottom: 0; }
.evo-dot {
    position: absolute;
    left: -34px;
    top: 4px;
    width: 18px; height: 18px;
    background: white;
    border: 3px solid var(--border);
    border-radius: 50%;
    transition: var(--transition);
}
.evo-item.active .evo-dot {
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: 0 0 0 5px rgba(26, 110, 255, 0.15);
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 5px rgba(26, 110, 255, 0.15); }
    50% { box-shadow: 0 0 0 8px rgba(26, 110, 255, 0.08); }
}
.evo-content {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
}
.evo-content:hover {
    border-color: rgba(26, 110, 255, 0.2);
    box-shadow: var(--shadow);
}
.evo-time {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-light);
    padding: 4px 12px;
    border-radius: 100px;
    display: inline-block;
    margin-bottom: 10px;
}
.evo-content h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}
.evo-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}
.evo-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.evo-tags span {
    font-size: 11px;
    color: var(--primary);
    background: var(--primary-light);
    padding: 3px 10px;
    border-radius: 100px;
    font-weight: 500;
}

/* ===== CASE STUDIES ===== */
.case-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.case-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.case-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}
.case-badge {
    position: absolute;
    top: 16px; right: 16px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 100px;
}
.case-badge.domestic {
    background: #fef2f2;
    color: #dc2626;
}
.case-badge.global {
    background: #eff6ff;
    color: #1a6eff;
}
.case-header {
    margin-bottom: 16px;
    padding-right: 60px;
}
.case-header h4 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 6px;
    color: var(--text);
}
.case-time {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
}
.case-body {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
}
.case-meta-row {
    display: flex;
    gap: 16px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.case-meta-row span {
    font-size: 12px;
    color: var(--text-light);
}
.case-body p {
    margin-bottom: 8px;
}
.case-lesson {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 14px;
    padding: 12px 14px;
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(26,110,255,0.05) 100%);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text);
}
.case-lesson svg {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ===== DECRYPTION TOOLS ===== */
.tool-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
    border: 1px dashed rgba(234, 88, 12, 0.3);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-bottom: 32px;
    font-size: 14px;
    color: #92400e;
}
.tool-notice svg {
    color: #ea580c;
    flex-shrink: 0;
    margin-top: 2px;
}
.decrypt-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.decrypt-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
    position: relative;
}
.decrypt-card:hover {
    border-color: rgba(26, 110, 255, 0.2);
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}
.decrypt-card.highlight {
    border-color: rgba(22, 163, 74, 0.3);
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}
.decrypt-card.highlight:hover {
    border-color: rgba(22, 163, 74, 0.5);
}
.decrypt-icon {
    width: 44px; height: 44px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.decrypt-card.highlight .decrypt-icon {
    background: #dcfce7;
}
.decrypt-icon svg {
    width: 22px; height: 22px;
    color: var(--primary);
}
.decrypt-card.highlight .decrypt-icon svg {
    color: #16a34a;
}
.decrypt-card h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}
.decrypt-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 14px;
}
.decrypt-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.decrypt-scope, .decrypt-count {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
}
.decrypt-scope {
    background: var(--primary-light);
    color: var(--primary);
}
.decrypt-count {
    background: var(--bg-warm);
    color: var(--text-light);
}
.decrypt-link {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.decrypt-link:hover { text-decoration: underline; }
.decrypt-more { text-align: center; margin-top: 32px; }

/* ===== DEFENSE FRAMEWORK ===== */
.defense-framework {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}
.defense-phase {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}
.defense-phase:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}
.phase-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    position: relative;
}
.phase-num {
    font-size: 32px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
    opacity: 0.3;
}
.phase-header h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
}
.phase-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-light);
    padding: 3px 10px;
    border-radius: 100px;
}
.phase-body {
    padding: 20px;
}
.phase-body ul {
    list-style: none;
    padding: 0;
}
.phase-body li {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 10px;
    padding-left: 16px;
    position: relative;
}
.phase-body li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px; height: 6px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.5;
}
.phase-body li:last-child { margin-bottom: 0; }
.phase-body li strong {
    color: var(--text);
    font-weight: 600;
}
.defense-standards {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    text-align: center;
}
.defense-standards h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
}
.std-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.std-tags span {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    padding: 5px 14px;
    border-radius: 100px;
}

/* ===== SUBTOPICS ===== */
.subtopic-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.subtopic-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    overflow: hidden;
}
.subtopic-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}
.subtopic-card:hover {
    border-color: rgba(26, 110, 255, 0.2);
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}
.subtopic-card:hover::before { transform: scaleX(1); }
.subtopic-num {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary);
    opacity: 0.15;
    line-height: 1;
    margin-bottom: 8px;
}
.subtopic-icon {
    width: 44px; height: 44px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.subtopic-icon svg {
    width: 22px; height: 22px;
    color: var(--primary);
}
.subtopic-card h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}
.subtopic-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}
.subtopic-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
.subtopic-status {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
}
.subtopic-status.ready {
    background: #e6f7ed;
    color: #2ea043;
}
.subtopic-card .arrow {
    width: 28px; height: 28px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(-8px);
    transition: var(--transition);
    font-size: 14px;
    color: var(--primary);
    font-weight: 700;
}
.subtopic-card:hover .arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    background: var(--primary-gradient);
    color: white;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 110, 255, 0.3);
}

/* ===== CONTACT BOX ===== */
.contact-box {
    background: var(--primary-gradient);
    border-radius: var(--radius);
    padding: 60px 48px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.contact-bg {
    position: absolute;
    top: -50%; right: -20%;
    width: 400px; height: 400px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}
.contact-content {
    position: relative;
    z-index: 1;
}
.contact-box h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
}
.contact-box p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 520px;
    margin: 0 auto 28px;
    line-height: 1.8;
}
.contact-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}
.contact-btn-primary {
    background: white;
    color: var(--primary);
}
.contact-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.contact-btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}
.contact-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* ===== MOBILE ===== */
@media (max-width: 1024px) {
    .threat-cards { grid-template-columns: repeat(2, 1fr); }
    .threat-detail-grid { grid-template-columns: 1fr; }
    .case-grid { grid-template-columns: 1fr; }
    .decrypt-grid { grid-template-columns: repeat(2, 1fr); }
    .defense-framework { grid-template-columns: repeat(2, 1fr); }
    .subtopic-grid { grid-template-columns: repeat(2, 1fr); }
    .family-stats-row { gap: 20px; }
    .footer-grid { grid-template-columns: 1fr 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);
    }
    .nav-links.active { display: flex; }
    .mobile-toggle { display: flex; }
    .ransomware-hero { min-height: 420px; padding-top: 96px; }
    .ransomware-hero h1 { font-size: clamp(26px, 7vw, 36px); }
    .ransomware-hero-stats { gap: 24px; margin-top: 28px; }
    .ransomware-hero-stats .stat-number { font-size: 28px; }
    .threat-cards { grid-template-columns: 1fr; }
    .decrypt-grid { grid-template-columns: 1fr; }
    .defense-framework { grid-template-columns: 1fr; }
    .subtopic-grid { grid-template-columns: 1fr; }
    .family-header { flex-direction: column; gap: 12px; }
    .family-stats-row { gap: 16px; }
    .contact-box { padding: 40px 24px; }
    .contact-box h3 { font-size: 22px; }
    .contact-actions { flex-direction: column; align-items: center; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .section { padding: 48px 0; }
    .evo-timeline { padding-left: 30px; }
    .evo-dot { left: -26px; }
}

/* ===== QUARTER BARS / REGION TAGS（威胁全景新增） ===== */
.quarter-bars { display: flex; flex-direction: column; gap: 12px; }
.quarter-bar { display: flex; align-items: center; gap: 12px; }
.quarter-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    width: 34px;
    flex-shrink: 0;
}
.quarter-note {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.region-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 4px;
}
.region-tag {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-warm);
    padding: 6px 16px;
    border-radius: 100px;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.region-tag:hover { transform: translateY(-2px); }
.region-tag.hot {
    background: linear-gradient(135deg, #fef2f2 0%, #fff7ed 100%);
    border-color: rgba(220, 38, 38, 0.25);
    color: #dc2626;
}

/* ===== GOLDEN HOUR SOP ===== */
#golden-hour { background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%); }
.sop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}
.sop-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.sop-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #dc2626, #ea580c, #f59e0b);
    opacity: 0.85;
}
.sop-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}
.sop-time {
    font-size: 12px;
    font-weight: 800;
    color: #dc2626;
    background: #fef2f2;
    padding: 4px 12px;
    border-radius: 100px;
    display: inline-block;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}
.sop-card h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}
.sop-card ul { list-style: none; padding: 0; }
.sop-card li {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 10px;
    padding-left: 16px;
    position: relative;
}
.sop-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px; height: 6px;
    background: #dc2626;
    border-radius: 50%;
    opacity: 0.55;
}
.sop-card li:last-child { margin-bottom: 0; }
.sop-card li strong { color: var(--text); font-weight: 600; }
.sop-warning {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: linear-gradient(135deg, #fef2f2 0%, #fff7ed 100%);
    border: 1px dashed rgba(220, 38, 38, 0.3);
    border-radius: var(--radius);
    padding: 18px 20px;
    font-size: 14px;
    color: #7f1d1d;
    line-height: 1.8;
}
.sop-warning svg {
    color: #dc2626;
    flex-shrink: 0;
    margin-top: 3px;
}
.sop-source {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 14px;
    text-align: center;
    font-weight: 500;
}

/* ===== MOBILE（新增区块响应式） ===== */
@media (max-width: 1024px) {
    .sop-grid { grid-template-columns: 1fr; }
}
