:root {
    --matrix-primary: #3b82f6;
    --matrix-primary-rgb: 59, 130, 246;
    --matrix-radius: 12px;
}

/* Block: headers_id */
/* 核心修复：彻底禁止链接下划线和默认蓝色 */
.h5-link {
    text-decoration: none !important; /* 强制取消下划线 */
    color: #334155 !important;       /* 强制使用深灰色，拒绝默认蓝 */
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

/* 悬停状态：颜色变为主色，且依然不准有下划线 */
.h5-link:hover {
    color: var(--matrix-primary) !important;
    text-decoration: none !important;
    transform: translateY(-1px);
}

/* 进场按钮优化：增加一点阴影和缩放感 */
.h5-btn {
    background: #0f172a;
    color: #ffffff !important;
    padding: 8px 25px;
    border-radius: 50px;
    text-decoration: none !important;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.h5-btn:hover {
    background: var(--matrix-primary);
    color: #fff !important;
    transform: scale(1.05);
    box-shadow: 0 10px 15px -3px rgba(var(--matrix-primary-rgb), 0.3);
}

/* 兼容性处理：防止点击后出现蓝色轮廓 */
.h5-link:focus, .h5-btn:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Block: heroes_id */
.hero-s6 { min-height: 600px; background: url('{{ $site->hero_img_url }}') center/cover; position: relative; }
.hero-s6-card { background: #fff; max-width: 500px; border-radius: 30px; }
.hero-s6-title { color: var(--matrix-primary); font-weight: 800; font-size: 16px; border-left: 4px solid var(--matrix-primary); padding-left: 15px; }
.btn-s6-dark { background: #000; color: #fff; width: 100%; display: block; padding: 12px; text-align: center; border-radius: 8px; text-decoration: none; font-weight: 700; }
.btn-s6-light { background: #f1f5f9; color: #000; width: 100%; display: block; padding: 12px; text-align: center; border-radius: 8px; text-decoration: none; font-weight: 700; }

/* Block: footers_id */
.f-s2-wrapper { position: relative; }
.f-s2-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.9); }
.f-s2-logo { height: 45px; }
.f-s2-nav { color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; }
.f-s2-nav:hover { color: var(--matrix-primary); }

/* Block: about_id */
.a2-tag-card { background: #f8fafc; border: 1px solid #eee; padding: 15px; text-align: center; font-weight: 800; color: var(--matrix-primary); border-radius: 8px; }
.a2-main-body { font-size: 1.05rem; }
.a2-section .text-primary { color: var(--matrix-primary) !important; }

/* Block: stats_id */
.s-s2-section { background: #0f172a; }
.s-s2-title { color: var(--matrix-primary); }
.s-s2-box { background: rgba(255, 255, 255, 0.03); border-color: rgba(255, 255, 255, 0.1) !important; }
.s-s2-accent { color: var(--matrix-primary); }
.s-s2-box:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--matrix-primary) !important; }

/* Block: mission_id */
.m-s6-icon { font-size: 3rem; color: var(--matrix-primary); }
@media (min-width: 768px) {
    .m-s6-border { border-left: 1px solid #f0f0f0; border-right: 1px solid #f0f0f0; }
}

/* Block: why_us_id */
.w-s4-box { border-radius: var(--matrix-radius); }
.w-s4-box:hover { border-color: var(--matrix-primary) !important; background: #fafafa; }
.w-s4-num { font-size: 1.5rem; font-weight: 900; color: var(--matrix-primary); opacity: 0.3; }

/* Block: departments_id */
.d-s4-circle-img { width: 380px; height: 380px; border-radius: 50%; overflow: hidden; border: 8px solid #f8fafc; box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
.d-s4-circle-img img { width: 100%; height: 100%; object-fit: cover; }
.d-s4-callout { background: #f8fafc; border-left-color: var(--matrix-primary) !important; }

/* Block: security_id */
.sec-s5-inner { max-width: 850px; border-radius: 40px !important; }
.sec-s5-icon { font-size: 5rem; color: #198754; }
.sec-s5-inner h2 { letter-spacing: -1px; }

/* Block: judge_id */
.j-s7-img-box { width: 100px; height: 100px; padding: 5px; border: 2px dashed var(--matrix-primary); border-radius: 50%; }
.j-s7-item h6 { letter-spacing: 1px; }
.italic-style { font-style: italic; opacity: 0.8; line-height: 1.6; }

/* Block: app_id */
.app-s3 { background: #0f172a !important; }
.app-s3-dl-box { display: flex; align-items: center; gap: 20px; background: rgba(255,255,255,0.05); padding: 20px 30px; border-radius: 15px; border: 1px solid rgba(255,255,255,0.1); }
.app-s3-mockup { border: 10px solid #1e293b; border-radius: 40px; overflow: hidden; transform: rotate(5deg); }

/* Block: news_id */
.n-s7-num { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 900; background: #ddd; color: #fff; border-radius: 4px; }
.n-s7-num.active { background: var(--matrix-primary); }

/* Block: faq_id */
/* 容器背景改为纯白，符合您的设计偏好 */
.faq-s6-wrapper { background: #ffffff !important; }

/* 卡片样式：浅灰色描边 + 悬浮阴影 */
.bg-card-s6 { 
    background: #ffffff; 
    border: 1px solid #f1f5f9 !important; 
    transition: all 0.3s ease;
}

/* 标题：强制使用您的主色调 */
.text-accent-s6 { color: var(--matrix-primary) !important; font-size: 1.05rem; }

/* 正文：深灰色，确保高可读性 */
.text-muted { color: #475569 !important; }

/* 交互：悬停时边框变色并轻微浮起 */
.bg-card-s6:hover { 
    border-color: var(--matrix-primary) !important; 
    background: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(var(--matrix-primary-rgb), 0.1) !important;
}

/* Block: update_id */
/* Style 6 - Icon Blocks */
.up-s6 .bg-light { 
    background-color: #f1f5f9 !important; 
    transition: 0.3s; 
    border: 1px solid transparent !important;
}
.up-s6 .bg-light:hover { 
    background-color: #ffffff !important; 
    border-color: var(--matrix-primary) !important; 
    transform: scale(1.02);
}
.up-s6 .bg-primary { background-color: var(--matrix-primary) !important; }
.up-s6 h6 { font-size: 1rem; color: #0f172a !important; }
.up-s6 .text-muted { color: #64748b !important; }

