/* Theme Name:Custom Theme 432 Theme URI:https://example.com/ Description:Crazy uncle Author:Studio 58 Author URI:http://www.huitheme.com Version:2025.11 */

:root {
    --theme-primary: #d63638;
    --theme-primary-hover: #b02a2b;
    --theme-primary-light: rgba(214, 54, 56, 0.1);
    --bg-page: #f5f6f7;
    --border-light: #e5e5e5;
    --border-dashed: #f0f0f0;
    --text-main: #333333;
    --text-muted: #888888;
}

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Microsoft YaHei", Arial, sans-serif;
    margin: 0;
    line-height: 1.5;
}
.site-container{max-width:1200px;margin:0 auto}a{text-decoration:none;transition:all 0.2s;color:inherit}
.logo-area img{height:45px;margin-right:12px}.logo-area h1{font-size:26px;color:var(--text-main);font-weight:900;margin:0;font-style:italic;letter-spacing:-1px}.search-area{width:480px}.search-tabs{display:flex;list-style:none;margin:0 0 0 2px;padding:0}.search-tabs li{padding:4px 16px;font-size:13px;color:#666;background-color:#f5f5f5;border-radius:4px 4px 0 0;margin-right:4px;cursor:pointer;transition:0.2s}.search-tabs li.active{background-color:var(--theme-primary);color:#ffffff;font-weight:bold}.search-box{display:flex;border:2px solid var(--theme-primary);border-radius:0 4px 4px 4px;height:40px;overflow:hidden;background:#fff}.search-box input{flex:1;border:none;padding:0 15px;font-size:14px;outline:none}.search-box button{background-color:var(--theme-primary);border:none;width:60px;color:white;cursor:pointer;display:flex;justify-content:center;align-items:center}.search-box button:hover{background-color:var(--theme-primary-hover)}.search-box button svg{width:18px;height:18px;fill:currentColor}.header-nav-bar{background-color:var(--theme-primary);width:100%;border-bottom:2px solid var(--theme-primary-hover)}.header-nav-bar .site-container{display:flex;align-items:center}.header-menu-ul{display:flex;list-style:none;margin:0;padding:0}.header-menu-ul > li{position:relative}.header-menu-ul > li > a{display:block;padding:10px 24px;color:#ffffff;font-size:16px;font-weight:700}.header-menu-ul > li > a:hover,.header-menu-ul > li.current-menu-item > a{background-color:rgba(0,0,0,0.15)}.header-menu-ul .sub-menu{display:none;position:absolute;top:100%;left:0;background-color:#ffffff;min-width:130px;box-shadow:0 5px 15px rgba(0,0,0,0.1);border-top:2px solid var(--theme-primary);padding:5px 0;z-index:999}.header-menu-ul li:hover > .sub-menu{display:block}.header-menu-ul .sub-menu li{list-style:none}.header-menu-ul .sub-menu li a{display:block;padding:10px 20px;color:var(--text-main);font-size:14px;border-bottom:1px solid #f5f5f5;text-align:center}.header-menu-ul .sub-menu li a:hover{color:var(--theme-primary);background-color:#fcfaff;font-weight:bold}.header-subnav-bar{background-color:#f8f9fa;border-bottom:1px solid var(--border-light);width:100%}.header-subnav-bar .site-container{display:flex;align-items:center}.header-sub-ul{display:flex;list-style:none;margin:0;padding:0;flex-wrap:wrap}.header-sub-ul > li{position:relative}.header-sub-ul > li > a{display:block;padding:10px 18px;color:#555;font-size:14px;font-weight:500}.header-sub-ul > li > a:hover,.header-sub-ul > li.current-menu-item > a{color:var(--theme-primary);font-weight:bold;background:#fff}.mobile-menu-btn{display:none;background:none;border:none;color:var(--theme-primary);font-size:32px;padding:0;cursor:pointer}@media (max-width:768px){.search-area,.header-nav-bar{display:none}
.logo-area{padding-left:15px !important}.mobile-menu-btn{display:block}.header-subnav-bar{background:#fff;padding:8px 0;border-bottom:none;box-shadow:0 2px 4px rgba(0,0,0,0.02)}.header-subnav-bar .site-container{padding:0 10px}.header-subnav-bar{overflow:hidden}.header-sub-ul{flex-wrap:nowrap;overflow-x:auto;padding-bottom:2px;gap:8px;align-items:center;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}.header-sub-ul::-webkit-scrollbar{display:none}.header-sub-ul > li{flex-shrink:0}.header-sub-ul > li > a{padding:4px 12px;font-size:14px;border-radius:20px;color:#555;display:inline-block;background:transparent;font-weight:normal}.header-sub-ul > li.current-menu-item > a,.header-sub-ul > li.is-pill > a{background-color:var(--theme-primary) !important;color:#fff !important;font-weight:bold;border-color:var(--theme-primary)}}.banner-section{margin-top:15px}.banner-section img{width:100%;border-radius:6px;display:block}.custom-site-footer{background-color:#31445b;color:#ffffff;padding:40px 0;margin-top:30px;text-align:center;border-top:2px solid #1d2a3a}.footer-links-row{display:flex;justify-content:center;align-items:center;margin-bottom:20px;font-size:15px}.links-label{color:#fff;margin-right:15px;font-weight:normal}.links-grid{display:flex;gap:20px}.links-grid a{color:var(--theme-primary);text-decoration:none;font-weight:normal;transition:color 0.2s}.links-grid a:hover{text-decoration:underline}.footer-disclaimer{font-size:13px;color:#a0acbc;margin-bottom:15px;line-height:1.8;max-width:900px;margin-left:auto;margin-right:auto}.footer-copyright{font-size:13px;color:#a0acbc}@media (max-width:768px){.custom-site-footer{padding:30px 15px}.footer-links-row{flex-direction:column;align-items:center;margin-bottom:25px}.links-label{margin-bottom:12px;margin-right:0;font-size:16px;font-weight:bold}.links-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px 30px;width:100%;max-width:260px;margin:0 auto}.links-grid a{text-align:center;display:block;background:rgba(0,0,0,0.15);padding:8px 0;border-radius:4px}}#mobile_right_nav{background-color:#f5f6f7 !important;border-left:none !important;display:flex;flex-direction:column;height:100%}#mobile_right_nav > .p-4:nth-child(1){flex-shrink:0}#mobile_right_nav > .p-4:nth-child(2){flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:12px 15px 40px !important}#sjcldnav > ul{list-style:none;padding:0;margin:0}#sjcldnav > ul > li{background:#fff;padding:12px;margin-bottom:10px;border-radius:6px;box-shadow:0 1px 4px rgba(0,0,0,0.03)}#sjcldnav > ul > li > a{display:block;font-size:14px;font-weight:bold;color:#333;margin-bottom:12px;border-left:3px solid var(--theme-primary);padding-left:8px;line-height:1.1}#sjcldnav > ul > li > ul.sub-menu{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(2,1fr);gap:8px}#sjcldnav > ul > li > ul.sub-menu > li > a{display:block;text-align:center;padding:7px 4px;background:#f9f9fa;border:1px solid #eaeaea;border-radius:4px;font-size:12px;color:#666;transition:0.2s}#sjcldnav > ul > li > ul.sub-menu > li > a:hover,#sjcldnav > ul > li > ul.sub-menu > li.current-menu-item > a{border-color:var(--theme-primary);color:var(--theme-primary);background:#fffaf7;font-weight:bold}#sjcldnav > ul > li > ul.sub-menu > li > ul{display:none}

/* ====================================================
   全站蜘蛛网图谱模块 (全局生效)
   ==================================================== */
.jzt-global-spider-net {
    max-width: 1200px; /* 约束宽度，和全站对齐 */
    margin: 30px auto;
    background: #fff;
    border: 1px dashed var(--theme-primary, #d63638);
    border-radius: 8px;
    padding: 20px 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    clear: both;
}
.gsn-header {
    font-size: 16px;
    font-weight: bold;
    color: #222;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 12px;
}
.gsn-header i {
    color: var(--theme-primary, #d63638);
    font-size: 18px;
}
.gsn-body {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.gsn-body a {
    display: inline-block;
    padding: 6px 14px;
    background: #f8f9fa;
    color: #555;
    font-size: 13px;
    border-radius: 30px;
    text-decoration: none;
    border: 1px solid #eaeaea;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.gsn-body a:hover {
    background: var(--theme-primary, #d63638);
    color: #fff;
    border-color: var(--theme-primary, #d63638);
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}
@media (max-width: 768px) {
    .jzt-global-spider-net { margin: 15px; padding: 15px; border-radius: 0; border-left: none; border-right: none; }
    .gsn-body { gap: 8px; }
    .gsn-body a { font-size: 12px; padding: 5px 12px; }
}



/* ====================================================
   全站全局 UI 与基础架构补丁 (替代 Bootstrap)
   ==================================================== */

/* --- 1. 自研超轻量级栅格系统 --- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding-right: 15px; padding-left: 15px; box-sizing: border-box; }
.row { display: flex; flex-wrap: wrap; margin-right: -10px; margin-left: -10px; }
.row > * { box-sizing: border-box; padding-right: 10px; padding-left: 10px; }
.col-lg-8, .col-lg-4, .col-md-6 { width: 100%; }

@media (min-width: 992px) {
    .col-lg-8 { flex: 0 0 auto; width: 66.66666667%; }
    .col-lg-4 { flex: 0 0 auto; width: 33.33333333%; }
}
@media (min-width: 768px) {
    .col-md-6 { flex: 0 0 auto; width: 50%; }
}
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.text-center { text-align: center !important; }
.d-flex { display: flex !important; }
.justify-content-between { justify-content: space-between !important; }
.align-items-center { align-items: center !important; }

/* --- 2. 现代无边界卡片流 UI 升级 --- */
.side-match-item, .jzt-match-row, .m-row, .cat-news-item, .guess-like-list li {
    position: relative;
    border-bottom: none !important; 
    margin-bottom: 10px;
    background: #fff;
    border-radius: 8px; 
    padding: 15px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02); 
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.side-match-item:hover, .jzt-match-row:hover, .m-row:hover, .cat-news-item:hover, .guess-like-list li:hover {
    transform: translateY(-3px); 
    box-shadow: 0 8px 24px rgba(214, 54, 56, 0.08); 
    z-index: 2;
}
.side-card {
    border: none !important; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.04) !important; 
    border-radius: 12px !important;
}
.side-card-hd {
    border-bottom: 1px solid #f5f6f7 !important; 
    background: #fff !important;
}

/* --- 3. 修复脱离 Bootstrap 后的移动端菜单 --- */
@media (min-width: 769px) {
    /* PC端强制隐藏移动菜单 */
    #mobile_right_nav { display: none !important; }
}
@media (max-width: 768px) {
    /* 移动端手写 Offcanvas */
    #mobile_right_nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: #f8f9fa !important;
        z-index: 99999;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        display: flex;
    }
    #mobile_right_nav.is-open {
        transform: translateX(0);
    }
    
    /* 移动端卡片间距压缩 */
    .side-match-item, .jzt-match-row, .m-row, .cat-news-item {
        padding: 12px 10px !important;
        margin-bottom: 8px;
    }
}

/* ====================================================
   全新页头 Header 与页脚 Footer 防关联重构 UI
   ==================================================== */

/* --- Header 主导航层 (深色系) --- */
.jzt-global-header { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: relative; z-index: 100; }
.jzt-header-main { background: #1a1c20; padding: 0; }
.jzt-flex-between { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.jzt-logo-box { display: flex; align-items: center; height: 100%; margin: 0; padding: 0; }
.jzt-logo-box a { display: flex; align-items: center; text-decoration: none; height: 100%; }
.jzt-logo-box img { max-height: 42px; object-fit: contain; }

/* ====================================================
   文字 Logo 顶级视觉优化 (修复类名对齐版)
   ==================================================== */
.sp-logo-box { 
    display: flex !important; 
    align-items: center !important; 
    margin-right: 40px !important; 
    position: relative !important; 
    flex-shrink: 0 !important; /* 绝对不许缩小 */
    white-space: nowrap !important; /* 绝对不许换行 */
    width: max-content !important; 
    min-width: max-content !important; 
}

.sp-logo-box a {
    display: flex !important; 
    align-items: center !important;
    text-decoration: none !important;
    white-space: nowrap !important; 
    width: max-content !important;
}

/* 🚨 核心修复：类名对齐 HTML 里的 text-logo 🚨 */
.text-logo { 
    font-family: Impact, 'Arial Black', "Microsoft YaHei", sans-serif !important;
    font-size: 28px !important; 
    font-weight: 900 !important; 
    font-style: italic !important; 
    letter-spacing: 1px !important; 
    margin: 0 !important;
    line-height: 1.2 !important;
    color: #ffffff !important; /* 强制纯白 */
    text-shadow: 3px 3px 0px var(--sp-brand-color, #e11d48), 6px 6px 15px rgba(0,0,0,0.5) !important; /* 3D立体投影 */
    display: inline-block !important;
    position: relative !important;
    white-space: nowrap !important; /* 再次上锁 */
    word-break: keep-all !important; /* 严禁从中间打断 */
}

/* 呼吸灯保留 */
.text-logo::after {
    content: '';
    position: absolute;
    top: 4px;
    right: -10px;
    width: 8px;
    height: 8px;
    background-color: #10b981; 
    border-radius: 50%;
    box-shadow: 0 0 6px #10b981;
    animation: logoLivePulse 1.5s infinite;
}

@keyframes logoLivePulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* 移动端 Logo 压缩适配 */
@media (max-width: 992px) {
    .text-logo { font-size: 22px !important; }
    .sp-logo-box { margin-right: 15px !important; }
    .text-logo::after { width: 6px; height: 6px; right: -8px; }
}
/* 主菜单横向排版 */
.jzt-nav-primary { flex: 1; margin-left: 50px; height: 100%; }
.jzt-nav-primary ul { list-style: none; padding: 0; margin: 0; display: flex; height: 100%; }
.jzt-nav-primary ul li { position: relative; height: 100%; }
.jzt-nav-primary ul li a { display: flex; align-items: center; padding: 0 22px; height: 100%; color: rgba(255,255,255,0.85); font-size: 16px; font-weight: bold; text-decoration: none; transition: 0.3s; }
.jzt-nav-primary ul li a:hover, .jzt-nav-primary ul li.current-menu-item > a { color: #fff; background: var(--theme-primary, #d63638); }

/* ====================================================
   主菜单与下拉框 (Flexbox 高度自适应终极防溢出版)
   ==================================================== */

/* 1. 强制主导航文字绝对不准折行 */
.jzt-nav-primary ul li {
    position: relative;
    white-space: nowrap !important; 
}
.jzt-nav-primary ul li a {
    white-space: nowrap !important;
}

/* 2. 重塑下拉菜单底板，强制解除一切高度和溢出限制 */
nav.jzt-nav-primary ul li ul.sub-menu { 
    display: none; 
    position: absolute !important; 
    top: 100% !important; 
    left: 50% !important; 
    transform: translateX(-50%) !important;
    background-color: #ffffff !important; 
    min-width: 280px !important; 
    height: auto !important; /* 核心：强制高度自适应 */
    max-height: none !important; /* 核心：干掉原主题的最大高度限制 */
    overflow: visible !important; /* 核心：绝不隐藏内容 */
    box-shadow: 0 10px 40px rgba(0,0,0,0.25) !important; 
    border: 1px solid #f0f0f0 !important; 
    border-top: 3px solid var(--sp-brand-color, #d63638) !important; 
    border-radius: 0 0 8px 8px !important; 
    z-index: 999999 !important; 
    padding: 15px !important; 
    margin: 0 !important;
    list-style: none !important;
}

/* 向上的红色小三角 */
nav.jzt-nav-primary ul li ul.sub-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--sp-brand-color, #d63638);
}

/* 3. 悬停展示：改用 Flex 换行布局，100% 完美撑开父盒子高度 */
nav.jzt-nav-primary ul li:hover > ul.sub-menu { 
    display: flex !important; 
    flex-wrap: wrap !important; /* 允许换行 */
    gap: 10px !important; /* 按钮之间的间距 */
    align-content: flex-start !important;
}

/* 4. 双列核心：每个 li 占 50% 宽度减去间距 */
nav.jzt-nav-primary ul li ul.sub-menu li { 
    display: block !important;
    width: calc(50% - 5px) !important; /* 完美的双列计算 */
    height: auto !important; 
    margin: 0 !important; 
    padding: 0 !important; 
    float: none !important;
}

/* 5. 子菜单独立按钮卡片样式 */
nav.jzt-nav-primary ul li ul.sub-menu li a { 
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 38px !important; 
    padding: 0 10px !important; 
    color: #475569 !important; 
    font-size: 14px !important; 
    background-color: #f1f5f9 !important; 
    border: 1px solid #e2e8f0 !important; 
    border-radius: 4px !important; 
    font-weight: 500 !important; 
    transition: all 0.2s ease !important; 
    white-space: nowrap !important;
}

/* 按钮悬停效果 */
nav.jzt-nav-primary ul li ul.sub-menu li a:hover { 
    color: #ffffff !important; 
    background-color: var(--sp-brand-color, #d63638) !important; 
    border-color: var(--sp-brand-color, #d63638) !important;
    box-shadow: 0 3px 8px rgba(225,29,72,0.3) !important;
    transform: translateY(-2px) !important; 
}
/* 现代右侧搜索框 */
.jzt-header-tools { display: flex; align-items: center; }
.jzt-search-form { display: flex; background: rgba(255,255,255,0.1); border-radius: 30px; overflow: hidden; height: 36px; border: 1px solid rgba(255,255,255,0.1); transition: 0.3s; }
.jzt-search-form:focus-within { border-color: var(--theme-primary); background: #fff; }
.jzt-search-form:focus-within input { color: #333; }
.jzt-search-form input { border: none; background: transparent; padding: 0 15px; font-size: 13px; color: #fff; outline: none; width: 180px; }
.jzt-search-form input::placeholder { color: rgba(255,255,255,0.5); }
.jzt-search-form:focus-within input::placeholder { color: #999; }
.jzt-search-form button { background: transparent; border: none; padding: 0 15px; color: #fff; cursor: pointer; transition: 0.2s; }
.jzt-search-form:focus-within button { color: var(--theme-primary); }

/* --- Header 副导航层 (纯白底色) --- */
.jzt-header-sub { background: #fff; border-bottom: 1px solid #eee; }
.jzt-sub-menu { list-style: none; padding: 0; margin: 0; display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.jzt-sub-menu::-webkit-scrollbar { display: none; }
.jzt-sub-menu li a { display: block; padding: 12px 20px; font-size: 14px; color: #555; text-decoration: none; font-weight: 500; white-space: nowrap; transition: 0.2s; position: relative; }
.jzt-sub-menu li a:hover, .jzt-sub-menu li.current-menu-item > a { color: var(--theme-primary); font-weight: bold; }
/* 底部高亮滑块 */
.jzt-sub-menu li.current-menu-item > a::after { content: ''; position: absolute; bottom: -1px; left: 20px; right: 20px; height: 3px; background: var(--theme-primary); border-radius: 3px 3px 0 0; }

/* --- Footer 底部深色区域 --- */
.jzt-global-footer { background: #1d2a3a; color: #a0acbc; padding: 40px 0 30px; margin-top: 40px; text-align: center; border-top: 3px solid var(--theme-primary); }
.footer-seo-matrix { margin-bottom: 20px; display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; font-size: 15px; }
.footer-seo-matrix a { color: #fff; text-decoration: none; font-weight: bold; transition: 0.2s; }
.footer-seo-matrix a:hover { color: var(--theme-primary); }
.footer-seo-matrix .sep { color: rgba(255,255,255,0.2); }
.footer-disclaimer { font-size: 12px; line-height: 1.8; max-width: 900px; margin: 0 auto 20px; color: #8898aa; text-align: justify; }
.footer-copyright { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 15px; font-size: 13px; color: #8898aa; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px; }
.footer-copyright a { color: #a0acbc; text-decoration: none; display: inline-flex; align-items: center; transition: 0.2s; }
.footer-copyright a:hover { color: #fff; }
.footer-copyright img { width: 16px; height: 16px; margin-right: 5px; }

/* 移动端适配 */
.visible-sm { display: none; }
@media (max-width: 992px) {
    .hidden-sm { display: none !important; }
    .visible-sm { display: block; }
    .jzt-mobile-trigger { background: transparent; border: none; color: #fff; font-size: 28px; padding: 0; cursor: pointer; }
    .jzt-flex-between { height: 50px; }
    .jzt-logo-box img { max-height: 32px; }
    .jzt-sub-menu li a { padding: 10px 15px; font-size: 13px; }
    .jzt-sub-menu li.current-menu-item > a::after { left: 15px; right: 15px; }
    .footer-copyright { flex-direction: column; gap: 10px; }
}