/* 行业资讯页面特定样式 */

/* 头部样式调整 */
.site-header {
    position: sticky;
    top: 0;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

/* 滚动时的导航栏样式效果 */
.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    position: relative;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: #3498db;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: #333;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-links a.active {
    color: #3498db;
}

.user-actions {
    display: flex;
    gap: 10px;
}

.login-btn {
    background-color: transparent;
    color: #3498db;
    border: 1px solid #3498db;
}

.login-btn:hover {
    background-color: #f0f7fc;
}

.register-btn {
    background-color: #3498db;
}

.register-btn:hover {
    background-color: #2980b9;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

/* 搜索区域样式 */
.search-container {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.search-box {
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-box input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-btn:hover {
    background: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 响应式设计 - 搜索区域 */
@media (max-width: 576px) {
    .search-box {
        flex-direction: column;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .search-btn {
        width: 100%;
    }
}

/* 文章列表容器 */
.article-list {
    flex: 1;
}

/* 文章项样式 */
.articles-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.article-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    gap: 20px;
    padding: 20px;
}

.article-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}



/* 文章内容区域 */
.article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 文章元信息 */
.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #7f8c8d;
}

.article-category {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    color: white;
    background-color: #3498db;
}

/* 不同分类的颜色标识 */
.article-item[data-category="news"] .article-category {
    background-color: #3498db;
}

.article-item[data-category="contribute"] .article-category {
    background-color: #2ecc71;
}

.article-item[data-category="publish"] .article-category {
    background-color: #e74c3c;
}

.article-item[data-category="find"] .article-category {
    background-color: #f39c12;
}

.article-item[data-category="knowledge"] .article-category {
    background-color: #9b59b6;
}

/* 文章标题 */
.article-title {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
}

.article-title a {
    color: #2c3e50;
    transition: color 0.3s;
}

.article-title a:hover {
    color: #3498db;
}

/* 文章摘要 */
.article-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 0;
}

/* 响应式导航 */
/* 中等屏幕尺寸 - 当导航开始可能显示不完整时提前切换到更紧凑的布局 */
@media (max-width: 1024px) {
    .nav-links {
        gap: 20px;
    }
    
    .logo a {
        font-size: 20px;
    }
}

/* 平板和移动设备 - 完全切换到汉堡菜单 */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 99;
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .user-actions {
        display: none;
        position: absolute;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 98;
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-links.show {
        display: flex;
    }
    
    .user-actions.show {
        display: flex;
    }
    
    .site-header .container {
        height: auto;
        padding: 15px 0;
    }
    
    /* 确保导航项在移动菜单中完整显示 */
    .nav-links a {
        width: 100%;
        padding: 8px 0;
        border-bottom: none;
    }
    
    /* 调整.site-header容器样式，确保汉堡菜单正常工作 */
    .site-header .container {
        position: relative;
        justify-content: space-between;
    }
}

/* 分页样式覆盖 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination ul {
    display: flex;
    gap: 8px;
    background: white;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    list-style: none;
    margin: 0;
}

.pagination li {
    transition: all 0.3s ease;
}

.pagination li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    color: #666;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination li:hover:not(.disabled) a {
    background: #f0f0f0;
    color: #667eea;
}

.pagination li.active a {
    background: #667eea;
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.pagination li.disabled a {
    opacity: 0.4;
    cursor: not-allowed;
}

/* 文章详情页样式 */
.article-detail {
    flex: 1;
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

/* 文章标题样式 */
.detail-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* 文章元信息样式 */
.detail-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
    color: #7f8c8d;
    flex-wrap: wrap;
}

/* 文章内容样式 */
.detail-content {
    color: #333;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 40px;
}

.detail-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin: 30px 0 15px 0;
}

.detail-content p {
    margin-bottom: 20px;
    text-align: justify;
}

/* 文章图片样式 */
.article-image {
    margin: 30px 0;
    text-align: center;
}

.svg-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.svg-image:hover {
    transform: scale(1.02);
}

.image-caption {
    margin-top: 10px;
    font-size: 14px;
    color: #7f8c8d;
    font-style: italic;
}

/* 文章标签样式 */
.article-tags {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.article-tags span {
    font-size: 14px;
    color: #666;
    margin-right: 10px;
}

.article-tags a {
    display: inline-block;
    padding: 6px 16px;
    background-color: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.article-tags a:hover {
    background-color: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 相关文章样式 */
.related-articles {
    border-top: 1px solid #e0e0e0;
    padding-top: 30px;
}

.related-articles h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.related-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px dashed #e0e0e0;
    transition: all 0.3s ease;
}

.related-item:last-child {
    border-bottom: none;
}

.related-item:hover {
    transform: translateX(5px);
}

.related-item a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
    flex: 1;
}

.related-item a:hover {
    color: #667eea;
}

.related-item span {
    font-size: 14px;
    color: #7f8c8d;
    margin-left: 20px;
    white-space: nowrap;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .category-nav ul {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .article-detail {
        padding: 20px;
    }
    
    .detail-title {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .article-item {
        flex-direction: column;
    }
    
    .pagination ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .search-box {
        flex-direction: column;
    }
    
    .search-box input, .search-btn {
        width: 100%;
        border-radius: 4px;
    }
    
    .search-btn {
        margin-top: 10px;
    }
    
    .list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}