* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", sans-serif;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
    outline: none !important;
}
html {
    height: 100%;
}
body {
    min-height: 100vh;
}
body {
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    /* 取消原来的body padding-top，改在.main里 */
    padding-top: 0 !important;
}
a {
    text-decoration: none;
    color: inherit;
}
ul, li {
    list-style: none;
}

/* 电脑端顶部悬浮 */
.header-fixed-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #f5f7fa;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.container {
    width: 770px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.site-footer {
    text-align: center;
    padding: 20px 0;
    font-size: 13px;
    color: #999;
    border-top: 1px solid #eee;
    background: #fff;
    flex-shrink: 0;
    width: 100%;
    margin-top: 20px;
}

.search-wrap {
    padding: 15px 0;
}
.search-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo-img {
    max-height: 44px !important;
    width: auto !important;
    display: inline-block !important;
}
.search-form {
    display: flex;
    width: 320px;
}
.search-input {
    flex: 1;
    height: 38px;
    border: 1px solid #ddd;
    padding: 0 12px;
    border-radius: 4px 0 0 4px;
    outline: none;
}
.search-btn {
    width: 70px;
    background: #007bff;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
}

.nav-wrap {
    background: #44a6fb;
    /* 取消底部间距（你要的效果） */
    margin-bottom: 0 !important;
    padding: 0;
}
.nav {
    width: 770px;
    margin: 0 auto;
    display: flex;
    position: relative;
    border-radius: 6px;
}
.nav > li > a {
    display: block;
    padding: 8px 16px;
    font-size: 15px;
    color: #fff;
    white-space: nowrap;
}
.nav > li.active > a,
.nav > li > a:hover {
    background: rgba(0,0,0,0.1);
    color: #fff;
    border-radius: 6px;
}

.nav > li {
    position: relative;
}
.nav li .sub {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 160px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-radius: 4px;
    display: none;
    z-index: 999;
    overflow: hidden;
}
.nav li .sub li a {
    display: block;
    padding: 8px 15px;
    font-size: 14px;
    color: #333;
}
.nav li .sub li a:hover {
    background: #f0f7ff;
    color: #007bff;
}
.nav li:hover .sub {
    display: block;
}

.main {
    flex: 1;
    /* 关键：给内容顶部加间距，避开固定导航 */
    padding-top: 135px;
    padding-bottom: 20px;
}

/* 列表样式 + 鼠标悬浮效果 */
.list-item {
    background: #fff;
    padding: 8px 16px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    cursor: pointer;
}
.list-item:hover {
    background: #f5f7fa !important;
    transform: translateX(2px);
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.1);
}

.item-cat {
    color: #ff5722;
    font-size: 12px;
    margin-right: 5px;
    min-width: 60px;
}
.item-title {
    flex: 1;
    font-size: 15px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 6px;
}
.item-time {
    color: #999;
    font-size: 13px;
    margin-left: 10px;
}

/* 列表图标统一样式 */
.item-title img {
    width: 23px !important;
    height: 23px !important;
    flex-shrink: 0;
    border-radius: 3px !important;
    object-fit: cover !important;
}

.detail {
    background: #fff;
    padding: 25px;
    border-radius: 6px;
}
.detail-title {
    font-size: 22px;
    margin-bottom: 15px;
    color: #222;
}
.detail-info {
    color: #666;
    font-size: 14px;
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}
.detail-pic {
    text-align: center;
    margin: 20px 0;
}
.detail-pic img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}
.detail-content {
    line-height: 2;
    font-size: 15px;
    margin: 20px 0;
}
.download {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin-top: 20px;
}
.download-title {
    font-weight: bold;
    margin-bottom: 12px;
}
.down-btn {
    display: inline-block;
    background: #007bff;
    color: #fff;
    padding: 9px 18px;
    border-radius: 4px;
    margin-right: 8px;
    margin-bottom: 8px;
}

#load-more {
    text-align: center;
    padding: 15px;
    color: #666;
    display: none;
}

/* ============================================== */
/* 手机端样式 - 完美修复版 */
/* ============================================== */
.mobile-header,
.mobile-search-wrap,
.mobile-sidebar,
.sidebar-mask {
    display: none !important;
}

@media (max-width: 770px) {
    .mobile-header{ display: flex !important; }
    .mobile-sidebar{ display: block !important; }
    .sidebar-mask{ display: block !important; }
    .header-fixed-wrap { display: none !important; }

    body {
        padding-top: 50px !important;
        margin-top: 10px;
        font-size: 14px;
    }
    .container {
        width: 100%;
        padding: 0 10px;
    }
    .search-wrap,
    .nav-wrap{ 
        display:none !important; 
    }

    /* 手机顶部导航栏 */
    .mobile-header {
        position: fixed;
        top:0; 
        left:0;
        width:100%; 
        height:50px;
        background:#ffffff;
        align-items:center;
        justify-content: space-between;
        padding:0 15px;
        z-index: 9999;
    }
    #menuBtn,
    #searchIcon{
        width:40px; 
        height:40px;
        display:flex; 
        align-items:center; 
        justify-content:center;
        color:#000000; 
        font-size:22px; 
        cursor:pointer;
    }
    .mobile-logo{ 
        height:34px; 
    }

    /* 手机搜索框 */
    .mobile-search-wrap {
        display: none;
        background:#fff; 
        padding:10px;
    }
    .mobile-search-wrap.show {
        display: block !important;
    }
    .mobile-search-form {
        display:flex; 
        width:100%;
    }
    .mobile-search-input {
        flex:1; 
        height:38px; 
        border:1px solid #ddd; 
        padding:0 12px; 
        border-radius:4px 0 0 4px;
    }
    .mobile-search-btn {
        width:70px; 
        background:#007bff; 
        color:#fff; 
        border:none; 
        border-radius:0 4px 4px 0;
    }

    /* 侧边栏 */
    .mobile-sidebar {
        position:fixed; 
        top:0; 
        left:-260px;
        width:260px; 
        height:100%;
        background:#fff; 
        z-index:10001;
        transition:all 0.3s;
        overflow-y:auto;
        box-shadow: 2px 0 10px rgba(0,0,0,0.2);
    }
    .mobile-sidebar.show{ 
        left:0; 
    }

    /* 遮罩层 */
    .sidebar-mask {
        position:fixed; 
        top:0; 
        left:0;
        width:100%; 
        height:100%;
        background:rgba(0,0,0,0.5);
        z-index:10000;
        display:none !important;
    }
    .sidebar-mask.show{ 
        display:block !important; 
    }

    .sidebar-header {
        padding:15px 15px; 
        background:#44a6fb; 
        color:#fff; 
        font-weight:bold;
    }
    .mobile-nav li a{
        display:block; 
        padding:12px 15px; 
        border-bottom:1px solid #f0f0f0;
        background-color: transparent !important;
    }
    .mobile-nav .sub li a{
        padding-left:25px; 
        background:#f9f9f9;
    }

    /* 手机列表样式 */
    .list-item {
        padding: 10px 12px;
        margin-bottom: 8px;
    }

    .list-item:hover {
        transform: none !important;
        box-shadow: none !important;
        background: #fff !important;
    }
    .item-cat {
        font-size: 12px;
        min-width: 55px;
    }
    .item-title {
        font-size: 14px;
    }
    .item-time {
        font-size: 12px;
    }
    .detail {
        padding: 15px;
    }
    .detail-title {
        font-size: 18px;
    }
    
    /* 手机端彻底取消点击高亮 */
    .mobile-nav li a:active,
    .mobile-nav li a:focus,
    .mobile-nav li a:hover {
        background-color: transparent !important;
    }
    #menuBtn:active, #menuBtn:focus,
    #searchIcon:active, #searchIcon:focus {
        background: transparent !important;
    }

    /* 手机端内容顶部间距重置 */
    .main {
        padding-top: 0 !important;
    }
}