 /* 全局样式重置 - 完全复用原页面 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "Microsoft Yahei", Arial, sans-serif;
        }
        
        html, body {
            height: 100%;
            min-height: 100vh;
            background-color: #f5f5f5;
            color: #333;
            line-height: 1.6;
            min-width: 320px;
            display: flex;
            flex-direction: column;
            overflow-x: hidden;
        }
        
        /* 头部样式 - 核心修改：固定高度 + 防止重排 */
        .header {
            background-color: #fff;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            text-align: center;
            height: 170px;
            min-height: 170px;
            max-height: 285px;
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 12px 10px;
            margin-bottom: 20px; /* 桌面端保留20px，手机端会覆盖 */
            flex-shrink: 0;
        }
        
        .header-container {
            max-width: 1200px;
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 8px;
            height: 100%;
            flex-shrink: 0;
        }
        
        /* 图片Logo样式 */
        .logo {
            width: 100%;
            max-width: 280px;
            height: auto;
            flex: 0 0 auto;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 3px;
        }
        .logo a {
            display: block;
            width: 100%;
            height: 100%;
        }
        .logo-img {
            width: 100%;
            max-width: 260px;
            height: auto;
            max-height: 80px;
            object-fit: contain;
            border-radius: 8px;
            display: block;
        }
        
        /* 搜索框容器 */
        .search-wrapper {
            width: 100%;
            flex: 0 0 auto;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 3px 0 8px;
        }
        
        .search-box {
            flex: 1;
            max-width: 600px;
            min-width: 280px;
            position: relative;
            flex-shrink: 0;
        }
        
        /* 搜索框 */
        .search-input {
            width: 100%;
            padding: 10px 20px;
            border: 1px solid #ddd;
            border-radius: 30px;
            font-size: 16px;
            outline: none;
            transition: border-color 0.3s, box-shadow 0.3s;
            height: 50px;
            line-height: 24px;
        }
        
        .search-input:focus {
            border-color: #3498db;
            box-shadow: 0 0 8px rgba(52, 152, 219, 0.3);
        }
        
        /* 搜索按钮 */
        .search-btn {
            position: absolute;
            right: 8px;
            top: 50%;
            transform: translateY(-50%);
            background-color: #3498db;
            color: white;
            border: none;
            padding: 0 20px;
            border-radius: 25px;
            cursor: pointer;
            font-size: 15px;
            white-space: nowrap;
            font-weight: 500;
            height: 42px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        /* 主内容容器 */
        .main-container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto 20px;
            padding: 0 10px;
            flex: 1;
            overflow-y: auto;
        }

        /* 详情页容器 */
        .detail-container {
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
            padding: 20px;
            margin-bottom: 20px;
        }

        /* 详情页头部 */
        .detail-header {
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid #eee;
        }

        .detail-title {
            font-size: 20px;
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: 10px;
            line-height: 1.4;
        }

        .detail-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            font-size: 14px;
            color: #666;
        }

        /* 资源描述标题+下载按钮水平对齐 */
        .desc-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            width: 100%;
        }

        .desc-header h3 {
            margin: 0;
            color: #2c3e50;
        }

        /* 资源描述区域 */
        .detail-content {
            width: 100%;
            margin-bottom: 20px;
        }

        /* 资源描述滚动区域 - 新增回到顶部按钮容器 */
        .detail-desc-wrapper {
            position: relative;
            width: 100%;
        }
        
        .detail-desc {
            font-size: 16px;
            color: #333;
            line-height: 1.8;
            max-height: 400px;
            overflow-y: auto;
            padding: 10px 15px;
            border: 1px solid #eee;
            border-radius: 8px;
        }

        /* 回到顶部按钮样式 */
        .back-to-top-btn {
            position: absolute;
            bottom: 150px;
            right: 15px;
            background-color: #3498db;
            color: white;
            border: none;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: none;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
            transition: all 0.3s;
            z-index: 10;
        }

        .back-to-top-btn.visible {
            display: flex;
        }

        .back-to-top-btn:hover {
            background-color: #2980b9;
            transform: translateY(-2px);
        }

        /* 下载按钮样式 */
        .download-btn {
            background-color: #28a745;
            color: white;
            border: none;
            border-radius: 30px;
            padding: 10px 30px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            text-decoration: none;
            display: inline-block;
            white-space: nowrap;
        }

        .download-btn:hover {
            background-color: #218838;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
        }

        /* 文件行样式 */
        .file-row {
            display: flex;
            align-items: center;
            padding: 4px 0;
            border-bottom: 1px dashed #f0f0f0;
        }

        .file-row:last-child {
            border-bottom: none;
        }

        .file-icon {
            margin-right: 10px;
            font-size: 18px;
            width: 24px;
            text-align: center;
            color: #3498db;
        }

        .file-text {
            flex: 1;
            word-break: break-all;
        }

        /* 说明文本样式 */
        .resource-notice {
            background-color: #f8f9fa;
            border-radius: 8px;
            padding: 20px;
            margin-bottom: 20px;
            font-size: 15px;
            line-height: 1.8;
        }

        .resource-notice a {
            color: #3498db;
            text-decoration: none;
        }

        .resource-notice a:hover {
            text-decoration: underline;
        }

        /* 返回按钮 */
        .back-btn {
            background-color: #6c757d;
            color: white;
            border: none;
            border-radius: 6px;
            padding: 10px 20px;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s;
            text-decoration: none;
            display: inline-block;
            margin-bottom: 20px;
        }

        .back-btn:hover {
            background-color: #5a6268;
            color: white;
        }

        /* 加载动画样式 */
        .loading {
            width: 100%;
            text-align: center;
            padding: 60px 0;
            color: #666;
            font-size: 16px;
        }

        .loading::after {
            content: '';
            display: inline-block;
            width: 24px;
            height: 24px;
            border: 2px solid #f3f3f3;
            border-top: 2px solid #3498db;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-left: 10px;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* 错误信息样式 */
        .error {
            width: 100%;
            text-align: center;
            padding: 60px 20px;
            color: #dc3545;
            font-size: 16px;
        }

        /* 平板适配 */
        @media (max-width: 768px) {
            .header {
                height: 25.65vh;
                min-height: 144px;
                max-height: 256.5px;
                padding: 8px 10px 10px;
                margin-bottom: 5px !important; /* 核心修改：改为5px */
            }
        
            .header-container {
                gap: 0.6vh;
            }
        
            .logo {
                max-width: 250px;
                margin-bottom: 2px;
            }
        
            .logo-img {
                max-width: 230px;
                max-height: 7.5vh;
            }
        
            .search-wrapper {
                padding: 2px 0 6px;
            }
        
            .main-container {
                margin: 0 auto 6px;
                padding-bottom: 8px;
                margin-top: 0 !important;
            }
        
            .nav-left {
                flex: 0 0 clamp(108px, 22.5vw, 180px);
                max-height: calc(74.35vh - 20px);
            }
        
            .search-input {
                padding: 15px 20px;
                font-size: 15px;
                min-height: 50px;
            }
        
            .search-btn {
                padding: 12px 20px;
                font-size: 14px;
                min-height: 40px;
            }
        
            .nav-item {
                font-size: 15px;
                padding: 15px 14px;
            }
        
            .sub-nav-item {
                font-size: 14px;
                padding: 9px 15px;
            }
        
            .sub-nav-right {
                padding: 12px;
                max-height: calc(74.35vh - 20px);
                min-width: calc(100vw - clamp(108px, 22.5vw, 180px) - 30px);
            }

            /* 移动端折叠样式 */
            .filter-toggle-btn {
                display: flex !important;
            }
            .filter-content {
                max-height: 0;
                overflow: hidden;
                opacity: 0;
                transition: max-height 0.3s ease, opacity 0.3s ease;
            }
            .filter-content.expanded {
                max-height: 1000px;
                opacity: 1;
            }
			.desc-header h3 {
			    display: none;
			}
			.download-btn {
				display: flex;
				width:100% !important;
				align-items: center;
				justify-content: center;
				margin: 0;
			}
			.detail-title {
			    font-size: 18px;
			}
			.detail-desc {
			    font-size: 14px;
			}
        }
        
        /* 小屏手机适配 */
        @media (max-width: 480px) {
            .header {
                height: 23vh;
                min-height: 130px;
                max-height: 230px;
                padding: 6px 8px 8px;
                margin-bottom: 5px !important; /* 核心修改：改为5px */
            }
        
            .logo {
                max-width: 220px;
            }
        
            .logo-img {
                max-width: 200px;
                max-height: 6.5vh;
            }
        
            .search-input {
                min-height: 54px;
                padding: 16px 20px;
                font-size: 14px;
            }
        
            .search-btn {
                min-height: 42px;
                padding: 12px 18px;
                font-size: 13px;
            }
        
            .main-container {
                margin: 0 auto 4px;
                padding-bottom: 6px;
                gap: 8px;
                margin-top: 0 !important;
            }
        
            .nav-left {
                flex: 0 0 clamp(99px, 19.8vw, 162px);
            }
        
            .nav-item {
                font-size: 14px;
                padding: 13px 10px;
                line-height: 1.5;
            }
        
            .sub-nav-right {
                min-width: calc(100vw - clamp(99px, 19.8vw, 162px) - 25px);
                padding: 10px;
            }
        
            .sub-nav-item {
                font-size: 13px;
                padding: 8px 13px;
                min-height: 36px;
            }
        }
        
        /* 超小屏手机 */
        @media (max-width: 320px) {
            .header {
                height: 21vh;
                min-height: 120px;
                max-height: 210px;
                margin-bottom: 5px !important; /* 核心修改：改为5px */
            }
        
            .logo-img {
                max-width: 180px;
                max-height: 6vh;
            }
        
            .search-input {
                min-height: 50px;
                padding: 14px 18px;
                font-size: 13px;
            }
            
            .main-container {
                margin: 0 auto 3px;
                padding-bottom: 5px;
                margin-top: 0 !important;
            }
        
            .nav-item {
                font-size: 13px;
                padding: 12px 8px;
                letter-spacing: 0;
            }
            
            .sub-nav-item {
                font-size: 12px;
                padding: 7px 11px;
                gap: 8px;
            }
        }
        
        /* 桌面端折叠样式 */
        @media (min-width: 769px) {
            .filter-toggle-btn {
                display: none !important;
            }
            .filter-content {
                display: block !important;
                max-height: none !important;
                opacity: 1 !important;
            }
        }

        /* 微信付款二维码遮罩层样式 */
        .wechat-pay-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }

        .wechat-pay-content {
            background-color: white;
            border-radius: 12px;
            padding: 30px;
            text-align: center;
            max-width: 90%;
            width: 400px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }

        .wechat-pay-title {
            font-size: 20px;
            font-weight: 600;
            margin-bottom: 20px;
            color: #333;
        }

        .wechat-pay-qrcode {
            width: 250px;
            height: 250px;
            margin: 0 auto 20px;
            background-color: #f8f9fa;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            overflow: hidden;
        }

        .wechat-pay-qrcode img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .wechat-pay-status {
            font-size: 14px;
            margin: 15px 0;
            padding: 8px;
            border-radius: 6px;
        }

        .status-unpaid {
            color: #ffc107;
            background-color: #fff8e1;
        }

        .status-paid {
            color: #28a745;
            background-color: #e8f5e9;
        }

        .wechat-pay-desc {
            font-size: 14px;
            color: #666;
            margin-bottom: 20px;
            line-height: 1.6;
        }

        .wechat-pay-close {
            background-color: #6c757d;
            color: white;
            border: none;
            border-radius: 8px;
            padding: 10px 30px;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.3s;
        }

        .wechat-pay-close:hover {
            background-color: #5a6268;
        }