: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 */
.a1-hero { height: 350px; background: center/cover no-repeat; position: relative; }
.a1-hero::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.4); }
.a1-hero-title { position: relative; z-index: 2; border-left: 5px solid var(--matrix-primary); padding-left: 20px; }
.a1-content-box { margin-top: -80px; position: relative; z-index: 3; border-radius: var(--matrix-radius); }
.a1-body-content { line-height: 2; font-size: 1.15rem; }

/* Block: stats_id */
.s-s6-circle { 
    width: 200px; height: 200px; 
    background: #fff; border: 2px solid #eee; 
    border-radius: 50%; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}
.s-s6-circle h3 { color: var(--matrix-primary); }
.s-s6-circle:hover { 
    border-color: var(--matrix-primary); 
    transform: scale(1.05); 
    box-shadow: 0 15px 40px rgba(0,0,0,0.08); 
}

/* 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-s6-circle { width: 85px; height: 85px; line-height: 85px; background: #f8fafc; color: var(--matrix-primary); border-radius: 50%; display: inline-block; font-size: 2rem; transition: 0.3s; }
.sec-s6-item:hover .sec-s6-circle { background: var(--matrix-primary); color: #fff; transform: rotateY(180deg); }

/* 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-s5-btn { background: #000; color: #fff; padding: 15px 40px; border-radius: 8px; text-decoration: none; font-weight: 700; display: inline-block; }
.app-s5-card { background: #fff; border: 1px solid #eee; padding: 30px; border-radius: 20px; transition: 0.3s; }
.app-s5-card:hover { border-color: var(--matrix-primary); transform: translateY(-5px); }
.app-s5-card .num { font-size: 30px; font-weight: 900; color: var(--matrix-primary); opacity: 0.2; display: block; margin-bottom: 10px; }
.app-s5-card h5 { font-weight: 800; color: #1e293b; }

/* 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-s2-card { transition: 0.3s; border: 1px solid transparent; }
.faq-s2-card:hover { border-color: var(--matrix-primary); transform: translateY(-5px); }
.faq-s2-num { width: 40px; height: 40px; background: var(--matrix-primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; flex-shrink: 0; }

/* Block: update_id */
/* Style 2 - Grid Cards */
.up-s2 { background: #f8fafc !important; }
.up-s2 .bg-white { 
    border: 1px solid #e2e8f0 !important; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
}
.up-s2 .bg-white:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05) !important;
    border-color: var(--matrix-primary) !important;
}
.up-s2 h6 { color: #0f172a !important; font-size: 1.1rem; }
.up-s2 p { color: #475569 !important; }

