: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-s5-line { width: 80px; height: 6px; background: var(--matrix-primary); }
.btn-s5 { background: var(--matrix-primary); color: #fff; padding: 18px 45px; font-weight: 900; text-decoration: none; display: inline-block; box-shadow: 10px 10px 0 #000; transition: 0.3s; }
.btn-s5:hover { transform: translate(5px, 5px); box-shadow: 0 0 0 #000; }
.hero-s5-img { background: url('{{ $site->hero_img_url }}') center/cover; clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%); min-height: 650px; }

/* Block: footers_id */
.f-s1-wrapper { background: #0f172a; color: #fff; }
.f-s1-title { color: var(--matrix-primary); }
.f-s1-link { color: #fff; text-decoration: none; display: block; margin-bottom: 8px; transition: 0.3s; }
.f-s1-link:hover { color: var(--matrix-primary); padding-left: 5px; }
.f-s1-bottom { border-color: rgba(255,255,255,0.05) !important; color: rgba(255,255,255,0.4); }

/* Block: about_id */
.a5-section { background: #0f172a !important; }
.a5-accent-text { color: var(--matrix-primary); }
.a5-main-content { line-height: 1.8; letter-spacing: 0.5px; }

/* 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-s3-img-circle { width: 320px; height: 320px; border-radius: 50%; overflow: hidden; border: 10px solid #f8fafc; box-shadow: 0 15px 35px rgba(0,0,0,0.1); }
.m-s3-img-circle img { width: 100%; height: 100%; object-fit: cover; }
.m-s3-tag { background: rgba(var(--matrix-primary-rgb), 0.1); color: var(--matrix-primary); font-size: 14px; font-weight: 700; }
.m-s3-quote { border-left: 5px solid var(--matrix-primary); padding-left: 25px; }

/* 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-s5-tile { border-radius: var(--matrix-radius); box-shadow: 0 4px 10px rgba(0,0,0,0.02); }
.d-s5-tile:hover { background: var(--matrix-primary); }
.d-s5-tile:hover .d-s5-icon, .d-s5-tile:hover h6, .d-s5-tile:hover p { color: #fff !important; }
.d-s5-icon { font-size: 2rem; color: var(--matrix-primary); }

/* Block: security_id */
.sec-s1-title { letter-spacing: -1px; }
.sec-s1-card { background: #fcfcfc; border: 1px solid #f0f0f0 !important; }
.sec-s1-icon { font-size: 3rem; color: var(--matrix-primary); }
.sec-s1-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.08) !important; border-color: var(--matrix-primary) !important; }

/* Block: judge_id */
.j-s1-section { background: #0f172a; }
.j-s1-card { background: rgba(255, 255, 255, 0.03); border-color: rgba(255, 255, 255, 0.1) !important; border-radius: var(--matrix-radius); }
.j-s1-card:hover { border-color: var(--matrix-primary) !important; background: rgba(255, 255, 255, 0.06); transform: translateY(-5px); }
.j-s1-avatar { width: 45px; height: 45px; border: 2px solid var(--matrix-primary); }
.j-s1-date { font-size: 10px; }

/* Block: app_id */
.app-s6-bg { position: absolute; top: 0; right: 0; width: 50%; height: 100%; background: var(--matrix-light); clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%); }
.app-s6-btn { background: var(--matrix-primary); color: #fff; padding: 15px 50px; border-radius: 4px; text-decoration: none; font-weight: 900; box-shadow: 10px 10px 0 #000; }
.app-s6-img-stack { filter: drop-shadow(20px 20px 40px rgba(0,0,0,0.1)); }

/* Block: news_id */
.bg-dark-gradient { background: linear-gradient(transparent, rgba(0,0,0,0.8)); }
.n-s4-sublink:hover p { color: 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 3 - Terminal Mode */
.up-s3 .terminal-box { 
    border: 1px solid #334155 !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3) !important;
}
.up-s3 .terminal-body { 
    font-family: 'Fira Code', 'Courier New', monospace; 
    line-height: 1.8;
}
.up-s3 .text-primary { color: var(--matrix-primary) !important; }
.up-s3 .text-success { color: #10b981 !important; }
.up-s3 p { margin-bottom: 0.5rem; }

