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

/* Block: headers_id */
/* 头部背景：深色渐变并支持毛玻璃 */
.h3-header {
    background: rgba(15, 23, 42, 0.9) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* 胶囊容器 */
.h3-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 导航链接：强制干掉蓝色 */
.h3-link {
    color: rgba(255, 255, 255, 0.85) !important; /* 强制覆盖 */
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

/* 悬停动画：底部线条绘制 */
.h3-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--matrix-primary);
    transition: width 0.3s ease;
}

.h3-link:hover {
    color: #ffffff !important;
}

.h3-link:hover::after {
    width: 100%;
}

/* 进入官网按钮 */
.h3-btn {
    background: var(--matrix-primary);
    color: #ffffff !important;
    padding: 8px 22px;
    border-radius: 50px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.h3-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--matrix-primary-rgb), 0.4);
    filter: brightness(1.1);
}

/* Logo 简单优化 */
.main-logo {
    transition: opacity 0.3s;
}
.main-logo:hover {
    opacity: 0.8;
}

/* Block: heroes_id */
.hero-s1 { min-height: 100vh; background: url('{{ $site->hero_img_url }}') center/cover no-repeat fixed; }
.hero-s1-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.8)); }
.hero-s1-badge { background: var(--matrix-primary); color: #fff; padding: 5px 20px; border-radius: 50px; font-size: 14px; font-weight: 700; }
.hero-s1 h1 { letter-spacing: -2px; }
.hero-s1-desc { max-width: 650px; font-size: 1.25rem; }
.btn-s1-primary { background: var(--matrix-primary); color: #fff; padding: 15px 40px; border-radius: var(--matrix-radius); text-decoration: none; font-weight: 800; }
.btn-s1-outline { border: 2px solid #fff; color: #fff; padding: 13px 38px; border-radius: var(--matrix-radius); text-decoration: none; font-weight: 800; transition: 0.3s; }
.btn-s1-outline:hover { background: #fff; color: #000; }

/* 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 */
.a4-step { border-top: 4px solid var(--matrix-primary); }
.a4-body-card { border-radius: 40px !important; }
.a4-text { font-size: 1.1rem; line-height: 2; text-align: justify; }

/* Block: stats_id */
.s-s4-wrapper { border-radius: var(--matrix-radius) !important; }
.s-s4-icon { color: var(--matrix-primary); }
@media (max-width: 767px) { .border-end-sm { border-right: 1px solid #dee2e6; } }

/* Block: mission_id */
.m-s1-list li { display: flex; align-items: start; margin-bottom: 20px; }
.m-s1-list li i { color: var(--matrix-primary); margin-right: 15px; margin-top: 5px; font-size: 1.1rem; }
.m-s1-list li strong { color: #1e293b; display: block; margin-bottom: 2px; }
.m-s1-img-box img { border-radius: var(--matrix-radius) !important; }

/* Block: why_us_id */
.w-s2-card { border-radius: var(--matrix-radius); transition: 0.3s; border: 1px solid transparent; }
.w-s2-card:hover { transform: translateY(-5px); border-color: var(--matrix-primary); }
.w-s2-icon { font-size: 2.5rem; color: var(--matrix-primary); }

/* Block: departments_id */
.d-s1-card { background: #f8fafc; border-radius: var(--matrix-radius); }
.d-s1-card:hover { transform: translateY(-8px); box-shadow: 0 12px 25px rgba(0,0,0,0.06) !important; }
.d-s1-icon { font-size: 2.5rem; color: var(--matrix-primary); }
.d-s1-title { letter-spacing: -1px; }

/* 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-s3-box { border-radius: var(--matrix-radius); }
.j-s3-box:hover { box-shadow: 0 15px 30px rgba(0,0,0,0.08) !important; border-top: 3px solid var(--matrix-primary) !important; }
.j-s3-avatar { width: 40px; height: 40px; object-fit: cover; }
.j-s3-section .border-primary { border-color: var(--matrix-primary) !important; }

/* Block: app_id */
.app-s2 { background: #f8fafc; }
.app-s2-deco { position: absolute; width: 400px; height: 400px; background: var(--matrix-primary); filter: blur(150px); opacity: 0.1; top: -100px; right: -100px; }
.app-s2-glass { background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.4); border-radius: 40px; }
.app-s2-feature { padding: 20px; background: #fff; border-radius: 20px; transition: 0.3s; }
.app-s2-feature i { font-size: 24px; color: var(--matrix-primary); margin-bottom: 10px; }
.app-s2-feature h6 { margin: 0; font-weight: 800; color: #334155; }
.app-s2-cta { background: #000; color: #fff; padding: 15px 50px; border-radius: 100px; text-decoration: none; font-weight: 800; display: inline-block; }

/* Block: news_id */
.n-s2-img { width: 180px; height: 110px; }
.n-s2-item:hover { transform: translateX(8px); border-color: var(--matrix-primary) !important; }
@media (max-width: 576px) { .n-s2-img { width: 100px; height: 75px; } }

/* 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; }

