/* 筛选区域 - 重新设计为更美观的样式 */
.filters {
    background:linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding:25px 30px;
    border-radius:12px;
    box-shadow:0 8px 25px rgba(0, 0, 0, 0.1);
    margin-bottom:30px;
    border:1px solid rgba(255, 255, 255, 0.8);
    position:relative;
    overflow:hidden;
}

.filters:before {
    content:'';
    position:absolute;
    top:0;
    left:0;
    right:0;
    height:4px;
    background:linear-gradient(90deg, #1a365d 0%, #0ea5e9 50%, #f97316 100%);
}

.filter-title {
    font-size:20px;
    color:#1a365d;
    margin-bottom:20px;
    font-weight:600;
    position:relative;
    padding-left:15px;
}

.filter-title:before {
    content:'';
    position:absolute;
    left:0;
    top:5px;
    bottom:5px;
    width:4px;
    background-color:#0ea5e9;
    border-radius:2px;
}

.filter-options {
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(250px, 1fr));
    gap:20px;
    margin-bottom:20px;
}

.filter-group {
    display:flex;
    flex-direction:column;
}

.filter-label {
    display:flex;
    align-items:center;
    font-weight:600;
    margin-bottom:8px;
    color:#475569;
}

.filter-label:after {
    content:':';
    margin-left:2px;
}

.filter-group select, .filter-group input {
    padding:12px 15px;
    border:1px solid #e2e8f0;
    border-radius:8px;
    font-size:14px;
    background-color:white;
    transition:all 0.3s;
    box-shadow:0 2px 5px rgba(0, 0, 0, 0.05);
}

.filter-group select:focus, .filter-group input:focus {
    outline:none;
    border-color:#0ea5e9;
    box-shadow:0 0 0 3px rgba(14, 165, 233, 0.2);
}

.filter-group select:hover, .filter-group input:hover {
    border-color:#cbd5e1;
}

.filter-actions {
    display:flex;
    gap:12px;
    justify-content:space-between; /* 改为两端对齐，实现左链接右按钮 */
    align-items:center; /* 垂直居中对齐 */
    margin-top:10px;
}

/* 新增：链接容器样式 */
.filter-links {
    display:flex;
    gap:12px; /* 与按钮间距保持一致 */
}

/* 新增：按钮组样式（保持原有间距） */
.filter-button-group {
    display:flex;
    gap:12px;
}

.filter-btn {
    padding:12px 28px;
    border:none;
    border-radius:8px;
    cursor:pointer;
    font-size:15px;
    font-weight:600;
    transition:all 0.3s;
    display:flex;
    align-items:center;
    justify-content:center;
    min-width:120px;
    text-decoration: none;
}

/* 新增：自定义链接样式 */
.link-btn {
    background:linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    color:white;
    box-shadow:0 4px 12px rgba(249, 115, 22, 0.3);
}

.link-btn:hover {
    transform:translateY(-2px);
    box-shadow:0 6px 16px rgba(249, 115, 22, 0.4);
    background:linear-gradient(135deg, #ea580c 0%, #f97316 100%);
}

.link-btn:active {
    transform:translateY(0);
}

.apply-btn {
    background:linear-gradient(135deg, #0ea5e9 0%, #1a8cff 100%);
    color:white;
    box-shadow:0 4px 12px rgba(14, 165, 233, 0.3);
}

.apply-btn:hover {
    transform:translateY(-2px);
    box-shadow:0 6px 16px rgba(14, 165, 233, 0.4);
    background:linear-gradient(135deg, #0d96d4 0%, #167ee0 100%);
}

.apply-btn:active {
    transform:translateY(0);
}

.reset-btn {
    background-color:white;
    color:#64748b;
    border:1px solid #e2e8f0;
    box-shadow:0 2px 5px rgba(0, 0, 0, 0.05);
}

.reset-btn:hover {
    background-color:#f8fafc;
    border-color:#cbd5e1;
    transform:translateY(-2px);
    box-shadow:0 4px 10px rgba(0, 0, 0, 0.1);
}

/* 统计板块 - 调整为更小尺寸 */
.stats-section {
    background-color:white;
    padding:15px;
    border-radius:8px;
    box-shadow:0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom:20px;
}

.stats-title {
    font-size:16px;
    color:#1a365d;
    margin-bottom:15px;
}

.stats-grid {
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(150px, 1fr));
    gap:12px;
}

.stat-card {
    background-color:#f8fafc;
    border-radius:6px;
    padding:15px;
    text-align:center;
    transition:transform 0.3s, box-shadow 0.3s;
    border:1px solid #e2e8f0;
}

.stat-card:hover {
    transform:translateY(-3px);
    box-shadow:0 4px 10px rgba(0, 0, 0, 0.08);
}

.stat-value {
    font-size:24px;
    font-weight:bold;
    color:#1a365d;
    display:block;
    margin-bottom:4px;
}

.stat-label {
    font-size:12px;
    color:#64748b;
}

/* 资料列表 */
.library-content {
    display:flex;
    gap:30px;
}

.sidebar {
    width:250px;
    flex-shrink:0;
}

.sidebar-widget {
    background-color:white;
    border-radius:8px;
    padding:20px;
    margin-bottom:20px;
    box-shadow:0 2px 10px rgba(0, 0, 0, 0.05);
}

.sidebar-widget h3 {
    font-size:16px;
    color:#1a365d;
    margin-bottom:15px;
    padding-bottom:10px;
    border-bottom:1px solid #e2e8f0;
}

.category-list, .brand-list {
    list-style:none;
}

.category-list li, .brand-list li {
    margin-bottom:8px;
}

.category-list a, .brand-list a {
    color:#475569;
    text-decoration:none;
    display:flex;
    justify-content:space-between;
    padding:5px 0;
    transition:color 0.3s;
}

.category-list a:hover, .brand-list a:hover {
    color:#0ea5e9;
}

.category-count, .brand-count {
    background-color:#f1f5f9;
    color:#64748b;
    padding:2px 8px;
    border-radius:10px;
    font-size:12px;
}

.main-content {
    flex:1;
}

.results-header {
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

.results-count {
    color:#64748b;
}

.sort-options {
    display:flex;
    align-items:center;
    gap:10px;
}

.sort-options select {
    padding:8px 12px;
    border:1px solid #cbd5e1;
    border-radius:4px;
    font-size:14px;
}

.docs-grid {
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(300px, 1fr));
    gap:30px;
    margin-bottom:40px;
}

.doc-card {
    background-color:white;
    border-radius:8px;
    overflow:hidden;
    box-shadow:0 3px 10px rgba(0, 0, 0, 0.08);
    transition:transform 0.3s;
    padding:20px;
}

.doc-card:hover {
    transform:translateY(-5px);
}

.doc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* 保持顶部对齐，不影响换行 */
  margin-bottom: 15px;
  /* 可选：给容器加最小宽度，避免挤压过窄 */
  min-width: 0;
}

.doc-title {
  flex: 1;
  /* 关键：允许子元素换行（解决flex容器下换行失效） */
  min-width: 0;
}

.doc-title h3 {
  /* 核心样式：强制换行 */
  word-wrap: break-word; /* 兼容旧浏览器，允许长单词/字符串换行 */
  word-break: break-all; /* 强制断字，即使是超长连续字符也换行 */
  white-space: normal; /* 恢复默认换行（覆盖可能的nowrap） */
  /* 可选：调整行高/边距，优化排版 */
  line-height: 1.5;
  margin: 0;
}

.doc-badge {
    background-color:#f97316;
    color:white;
    padding:4px 8px;
    border-radius:4px;
    font-size:12px;
    margin-left:10px;
}

.doc-content h3 {
    font-size:18px;
    margin-bottom:10px;
    color:#1a365d;
}

.doc-meta {
    display:flex;
    justify-content:space-between;
    color:#64748b;
    font-size:14px;
    margin-bottom:15px;
}

.doc-views {
    display:flex;
    align-items:center;
    gap:5px;
    color:#64748b;
    font-size:14px;
}

.doc-desc {
    color:#64748b;
    margin-bottom:15px;
    font-size:14px;
    line-height:1.5;
}

.doc-actions {
    display:flex;
    justify-content:center;
}

.doc-btn {
    padding:10px 25px;
    border-radius:4px;
    text-decoration:none;
    font-size:14px;
    transition:all 0.3s;
    text-align:center;
    width:100%;
}

.view-btn {
    background-color:#0ea5e9;
    color:white;
}

.doc-btn:hover {
    opacity:0.9;
    transform:translateY(-2px);
}

/* 响应式设计 */
@media (max-width:768px) {

    .library-content {
        flex-direction:column;
    }

    .sidebar {
        width:100%;
    }

    .filter-options {
        grid-template-columns:1fr;
    }

    .stats-grid {
        grid-template-columns:repeat(2, 1fr);
    }

    .results-header {
        flex-direction:column;
        align-items:flex-start;
        gap:15px;
    }

    .docs-grid {
        grid-template-columns:1fr;
    }

    .doc-actions {
        justify-content:center;
    }

    .doc-btn {
        width:auto;
        min-width:150px;
    }

    .doc-header {
        flex-direction:column;
        align-items:flex-start;
    }

    .doc-badge {
        margin-left:0;
        margin-top:10px;
    }

    .filter-actions {
        justify-content:center;
    }

    .filter-btn {
        width:100%;
    }
}

@media (max-width:480px) {
    .stats-grid {
        grid-template-columns:1fr;
    }

    .filter-actions {
        flex-direction:column;
    }
}










:root {
	--primary-color: #dc2626;
	--secondary-color: #b91c1c;
	--accent-color: #ef4444;
	--text-dark: #1e293b;
	--text-medium: #475569;
	--text-light: #64748b;
	--bg-light: #f8fafc;
	--bg-white: #ffffff;
	--border-color: #e2e8f0;
	--shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
	--shadow-md: 0 4px 6px rgba(0,0,0,0.1);
	--shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
	--gradient-red: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
	--gradient-dark-red: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}
/* 无结果内容样式 */
.no-results {
    background-color: var(--bg-white);
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.no-results:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-red);
}

.no-results-icon {
    font-size: 80px;
    color: #fee2e2;
    margin-bottom: 25px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.no-results-title {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.no-results-title:after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -5px;
    height: 3px;
    background: var(--gradient-red);
    border-radius: 3px;
}

.no-results-desc {
    color: var(--text-medium);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: 16px;
}

.search-suggestions {
    background-color: var(--bg-light);
    border-radius: 10px;
    padding: 25px;
    margin-top: 30px;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--border-color);
}

.search-suggestions h4 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-suggestions h4:before {
    content: '💡';
}

.search-suggestions ul {
    list-style-type: none;
}

.search-suggestions li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
}

.search-suggestions li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.contact-qrcode {
    margin-top: 40px;
    padding: 25px;
    background-color: var(--bg-light);
    border-radius: 10px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--border-color);
    text-align: center;
}

.contact-qrcode h4 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.contact-qrcode p {
    color: var(--text-medium);
    margin-bottom: 20px;
    font-size: 15px;
}

.qrcode-placeholder {
    width: 160px;
    height: 160px;
    margin: 15px auto;
    background-color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    border-radius: 10px;
    border: 1px dashed var(--border-color);
    box-shadow: var(--shadow-sm);
}

.contact-qrcode small {
    display: block;
    color: var(--text-light);
    font-size: 13px;
    margin-top: 15px;
}

/* 新增订阅板块样式 */
.subscribe-section {
    margin-top: 30px;
    padding: 25px;
    background-color: var(--bg-light);
    border-radius: 10px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--border-color);
    text-align: center;
}

.subscribe-section h4 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.subscribe-section p {
    color: var(--text-medium);
    margin-bottom: 20px;
    font-size: 15px;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.subscribe-form input {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
}

.subscribe-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.subscribe-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
    background: var(--gradient-red);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
    background: var(--gradient-dark-red);
}

.subscribe-btn:active {
    transform: translateY(0);
}

.search-again {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.search-btn {
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    background: var(--gradient-red);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    text-decoration: none;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
    background: var(--gradient-dark-red);
}

.search-btn:active {
    transform: translateY(0);
}
/* 响应式设计 */
@media (max-width: 768px) {

    .no-results {
        padding: 40px 20px;
    }
    
    .no-results-title {
        font-size: 24px;
    }

    .subscribe-form {
        width: 100%;
    }
}







/* 强制限定尺寸 */
.manual-banner {
    width:100%;
    height:45px;
    background:linear-gradient(90deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius:4px;
    display:flex;
    align-items:center;
    padding:0 20px;
    box-shadow:0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow:hidden;
    position:relative;
    border-left:4px solid #e11d48; /* 工业红点缀 */
    /* 兼容旧浏览器的flex */
    display:-webkit-flex;
    -webkit-align-items:center;
}

.label-tag {
    background-color:#e11d48; /* 红色标签 */
    color:white;
    font-size:12px;
    font-weight:bold;
    padding:2px 8px;
    border-radius:2px;
    margin-right:15px;
    white-space:nowrap;
    text-transform:uppercase;
}

.manual-title {
    color:#f3f4f6;
    font-size:14px;
    flex-grow:1;
    -webkit-flex-grow:1;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    margin-right:20px;
}

.manual-title a{
    text-decoration: none;
    color:#fff;
}

/* 调整为a链接的样式（替换原button样式） */
.action-btn {
    background-color:transparent;
    color:#fb7185; /* 较亮的红 */
    border:1px solid #e11d48;
    font-size:12px;
    padding:2px 14px;
    border-radius:20px;
    cursor:pointer;
    transition:all 0.3s ease;
    display:flex;
    -webkit-display:flex;
    align-items:center;
    -webkit-align-items:center;
    gap:5px;
    white-space:nowrap;
    /* 移除a链接默认样式 */
    text-decoration:none;
    outline:none;
    /* 保证点击区域大小 */
    display:inline-flex;
    -webkit-display:inline-flex;
}

.action-btn:hover {
    background-color:#e11d48;
    color:white;
    box-shadow:0 0 10px rgba(225, 29, 72, 0.4);
    /* 移除hover时的下划线（兜底） */
    text-decoration:none;
}

.icon-doc {
    fill:#e11d48; /* 图标改为红色 */
    width:16px;
    height:16px;
    margin-right:10px;
}

/* 装饰用光影效果 */
.manual-banner::after {
    content:"";
    position:absolute;
    top:0;
    left:-100%;
    width:50%;
    height:100%;
    background:linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transition:0.5s;
}

.manual-banner:hover::after {
    left:100%;
    transition:0.8s;
}

/* 响应式适配 */
@media (max-width:1566px) {
    .manual-banner {
        width:95vw;
        height:auto;
        min-height:45px;
        padding:10px;
        /* 移动端flex换行兼容 */
        flex-wrap:wrap;
        -webkit-flex-wrap:wrap;
        gap:8px;
    }

    .manual-title {
        margin-right:0;
        width:100%;
        margin-top:5px;
        margin-bottom:5px;
    }

    .action-btn {
        margin-left:auto;
        -webkit-margin-left:auto;
    }
}