 /* 暗黑模式全局变量 */
        :root{
            --bg-color:#f7f8fa;
            --card-bg:#ffffff;
            --text-color:#303133;
            --text-second:#86909c;
            --border-color:#eee;
            --border-light:#e5e7eb;
            --primary:#409eff;
            --hover-bg:#ecf5ff;
        }
        html.dark{
            --bg-color:#17181c;
            --card-bg:#23252b;
            --text-color:#e5e7eb;
            --text-second:#a1a1aa;
            --border-color:#33363f;
            --border-light:#33363f;
            --hover-bg:#2b384c;
        }
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "Microsoft Yahei", system-ui, -apple-system, sans-serif;
        }
        body {
            background-color: var(--bg-color);
            color: var(--text-color);
            line-height: 1.6;
            transition: background 0.3s, color 0.3s;
        }
        .container {
            width: 1700px;
            margin: 0 auto;
            padding: 0 15px;
        }

        /* ========== 整体头部 单层蓝色栏 ========== */
        .header {
            background: #409eff;
            position: sticky;
            top: 0;
            z-index: 99;
        }
        .header-top{
            display:flex;
            align-items:center;
            justify-content:space-between;
            padding:12px 0;
        }
        .logo a {
            color: #fff;
            font-size: 24px;
            font-weight: 600;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .header-right-bar{
            display:flex;
            align-items:center;
            gap:12px;
        }
        .btn-submit {
            background: #ffffff;
            color: #409eff;
            padding: 6px 14px;
            border-radius: 20px;
            text-decoration: none;
            font-weight: 500;
            border: none;
            transition: all 0.25s ease;
        }
        .btn-submit:hover {
            background: #f0f7ff;
        }
        #modeToggle{
            border:none;
            padding: 6px 14px;
            border-radius:20px;
            cursor:pointer;
            background:#fff;
            color:#409eff;
            font-size:14px;
        }

        /* 一级分类导航 头部内部下方 */
        .nav-main{
            display: flex;
            gap: 10px;
            /*padding-bottom:8px;*/
        }
        .nav-main .container{
            display:flex;
        }
        .nav-item{
            position:relative;
            padding:10px 16px;
            color:#fff;
            cursor:pointer;
            white-space:nowrap;
            font-size:15px;
        }
        .nav-item:hover{
            background:rgba(255,255,255,0.15);
        }
        .nav-child-box{
            position:absolute;
            top:100%;
            left:0;
            min-width:90px;
            background:var(--card-bg);
            border:1px solid var(--border-color);
            border-radius:1px;
            box-shadow:0 4px 12px rgba(0,0,0,0.08);
            display:none;
            z-index:100;
        }
        .nav-child-box a{
            display:block;
            padding:9px 15px;
            color:var(--text-color);
            text-decoration:none;
        }
        .nav-child-box a:hover{
            background:var(--hover-bg);
            color:var(--primary);
        }
        .nav-item:hover .nav-child-box{
            display:block;
        }

        /* ========== 深色搜索横幅区域 ========== */
        .search-banner-wrap {
            width: 100%;
            background: #1a233a;
            padding: 50px 0;
            text-align: center;
        }
        .search-title {
            font-size: 26px;
            margin-bottom: 22px;
            color: #ffffff;
        }
        .search-input-row {
            display: flex;
            max-width: 620px;
            margin: 0 auto 25px;
        }
        .search-input {
            flex: 1;
            padding: 14px 20px;
            border: none;
            border-radius: 30px 0 0 30px;
            font-size: 16px;
            outline: none;
            background: #fff;
            color: var(--text-color);
        }
        .search-btn {
            padding: 0 26px;
            background: #409eff;
            color: #fff;
            border: none;
            border-radius: 0 30px 30px 0;
            cursor: pointer;
            font-size: 16px;
        }
        .search-btn:hover {
            background: #337ecc;
        }

        /* 搜索下方热门搜索 */
        .hot-word-list{
            display:flex;
            flex-wrap:wrap;
            gap:10px;
            justify-content:center;
        }
        .hot-word-list a{
            padding:8px 16px;
            background:rgba(255,255,255,0.15);
            color:#fff;
            border-radius:25px;
            text-decoration:none;
            font-size:14px;
        }
        .hot-word-list a:hover{
            background:rgba(255,255,255,0.3);
        }

        /* 内容区块通用样式 */
        .main {
            padding: 10px 0;
        }
        .cate-section {
            margin-bottom: 35px;
            background:var(--card-bg);
            border-radius:10px;
            padding:16px;
            box-shadow:0 2px 8px rgba(0,0,0,0.04);
        }
        .cate-tab-head{
            display:flex;
            align-items:center;
            justify-content:space-between;
            border-bottom:1px solid var(--border-color);
            margin-bottom:16px;
            gap:10px;
            overflow-x:auto;
            padding-bottom:6px;
        }
        .cate-tab-head::-webkit-scrollbar{height:3px;}
        .cate-tab-item{
            background: #cbcdcf2e;
            padding:2px 10px;
            border-radius:20px;
            white-space:nowrap;
            cursor:pointer;
            font-size:14px;
            flex-shrink:0;
            border:1px solid transparent;
        }
        .cate-tab-item.active{
            background:var(--primary);
            color:#fff;
            border-color:var(--primary);
        }
        .cate-tab-item:not(.active):hover{
            border-color:var(--primary);
            color:var(--primary);
        }
        .more-link{
            flex-shrink:0;
            color:var(--primary);
            text-decoration:none;
            font-size:14px;
            padding:4px 8px;
        }
        .site-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
            gap: 18px;
        }
        .site-card {
            display: flex;
            gap: 12px;
            background: var(--bg-color);
            padding: 16px;
            border-radius: 10px;
            text-decoration: none;
            border: 1px solid var(--border-color);
            transition: all 0.28s ease;
        }
        .site-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 22px rgba(64, 158, 255, 0.12);
            border-color: #c6e1fc;
        }
        .site-icon {
            width: 42px;
            height: 42px;
            flex-shrink: 0;
            border-radius: 6px;
            overflow: hidden;
            background: #f2f3f5;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .site-icon img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }
        .site-info {
            flex: 1;
            overflow: hidden;
        }
        .site-name {
            font-size: 15px;
            color: var(--text-color);
            font-weight: 500;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            margin-bottom: 4px;
        }
        .site-desc {
            font-size: 12px;
            color: var(--text-second);
            display: -webkit-box;
            -webkit-line-clamp: 1;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        /* 友情链接 */
        .friend-link-wrap{
            margin:0 auto 20px;
            background:var(--card-bg);
            border-radius:10px;
            padding:18px;
            max-width:1860px;
        }
        .friend-title{
            font-size:16px;
            font-weight:600;
            margin-bottom:12px;
            display:flex;
            align-items:center;
            gap:6px;
        }
        .friend-link-list{
            display:flex;
            flex-wrap:wrap;
            gap:10px;
        }
        .friend-link-list a{
            color:var(--text-second);
            text-decoration:none;
            font-size:14px;
        }
        .friend-link-list a:hover{
            color:var(--primary);
        }
        .warn-tip{
            background:#d9f7e8;
            color:#e53e3e;
            padding:10px 16px;
            border-radius:6px;
            margin:0 auto 20px;
            max-width:1240px;
            font-weight:500;
        }
        html.dark .warn-tip{
            background:#1f3830;
        }

        /* 页脚 */
        .footer {
            background: var(--card-bg);
            padding: 30px 0;
            border-top: 1px solid var(--border-light);
            margin-top:50px;
        }
        .footer-main{
            display:flex;
            justify-content:space-between;
            gap:30px;
            margin-bottom:25px;
        }
        .footer-left{
            flex:1;
        }
        .footer-logo{
            display:flex;
            align-items:center;
            gap:8px;
            font-size:20px;
            font-weight:bold;
            margin-bottom:10px;
            color:var(--text-color);
        }
        .footer-desc{
            color:var(--text-second);
            font-size:14px;
            line-height:1.7;
            margin-bottom:15px;
        }
        .footer-contact{
            display:flex;
            gap:12px;
        }
        .footer-contact span{
            width:32px;
            height:32px;
            background:var(--hover-bg);
            border-radius:50%;
            display:flex;
            align-items:center;
            justify-content:center;
            color:var(--primary);
        }
        .footer-mid a{
            display:block;
            color:var(--text-second);
            text-decoration:none;
            margin:8px 0;
            font-size:14px;
        }
        .footer-mid a:hover{
            color:var(--primary);
        }
        .footer-right{
            display:flex;
            gap:25px;
        }
        .qr-item{
            text-align:center;
        }
        h4 {
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
}
      .qqq{
          width: 82px;
         height: 82px;
      }
        .qr-box{
            width:90px;
            height:90px;
            background:#eee;
            border-radius:6px;
            margin-bottom:8px;
            display:flex;
            align-items:center;
            justify-content:center;
            font-size:12px;
            color:#999;
        }
        .qr-text{
            font-size:13px;
            color:var(--text-second);
        }
        .footer-bottom{
            text-align:center;
            font-size:13px;
            color:var(--text-second);
            padding-top:15px;
            border-top:1px solid var(--border-color);
        }
        .footer-bottom a{
            color:var(--text-second);
            text-decoration:none;
        }

        /* 移动端适配 */
        @media (max-width: 1260px) {
            .container {
                width: 100%;
            }
            .footer-main{
                flex-direction:column;
            }
        }
        @media (max-width: 768px) {
            .site-grid {
                grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
            }
            .logo a {
                font-size: 20px;
            }
            .header-right-bar{
                gap:8px;
            }
            .nav-main .container{
                overflow-x:auto;
            }
            .nav-item{
                padding:8px 12px;
            }
            .footer-right{
                flex-wrap:wrap;
                justify-content:center;
            }
            .search-title{
                font-size:22px;
            }
            .search-input-row{
                padding:0 15px;
            }
            .search-banner-wrap{
                padding:35px 0;
            }
        }
        #backTop {
    position: fixed;
    right: 30px;
    bottom: 40px;
    width: 44px;
    height: 44px;
    background: #409eff;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 44px;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: none;
    z-index: 999;
    user-select: none;
}
#backTop:hover {
    background: #337ecc;
}
/* 移动端适配 */
@media (max-width: 768px) {
    #backTop {
        right: 15px;
        bottom: 25px;
        width: 40px;
        height: 40px;
        line-height: 40px;
    }
}