/* 公司动态页面样式 */

/* 页面标题 */
.page-header {
    background: linear-gradient(135deg, #9F5748 0%, #d4926b 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* 背景图片已移除，保持干净简洁的设计 */

.header-content {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header p {
    font-size: 18px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    opacity: 0.8;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* 动态分类导航 */
.news-nav {
    background: white;
    padding: 30px 0;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid #9F5748;
    background: transparent;
    color: #9F5748;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn:hover,
.tab-btn.active {
    background: #9F5748;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(159, 87, 72, 0.3);
}

.tab-btn i {
    font-size: 16px;
}

/* 主要内容区域 */
.company-news-section {
    padding: 50px 0;
    background: #f8f9fa;
    min-height: 70vh;
}

.news-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

/* 动态列表容器 */
.news-list-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.news-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    color: #333;
    margin: 0;
    font-weight: 600;
}

.news-header i {
    color: #9F5748;
    font-size: 24px;
}

.news-stats {
    font-size: 14px;
    color: #666;
}

.total-count {
    padding: 5px 15px;
    background: #f0f0f0;
    border-radius: 15px;
}

/* 动态列表 */
.news-list {
    padding: 0;
}

.news-item {
    display: flex;
    align-items: flex-start;
    padding: 20px 30px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.news-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.news-item:last-child {
    border-bottom: none;
}

.news-item::before {
    content: '»';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9F5748;
    font-size: 16px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-item:hover::before {
    opacity: 1;
}

.news-content {
    flex: 1;
    margin-left: 10px;
}

.news-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-item:hover .news-title {
    color: #9F5748;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #999;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-category-tag {
    padding: 2px 8px;
    background: #e9ecef;
    color: #6c757d;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

.news-category-tag.company {
    background: #ffe6e6;
    color: #9F5748;
}

.news-category-tag.project {
    background: #e6f3e6;
    color: #28a745;
}

.news-category-tag.award {
    background: #fff3cd;
    color: #856404;
}

.news-category-tag.notice {
    background: #d1ecf1;
    color: #0c5460;
}

/* 加载状态 */
.loading-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 30px;
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #9F5748;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-placeholder p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* 分页导航 */
.pagination-container {
    padding: 25px 30px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    height: 35px;
    padding: 0 12px;
    border: 1px solid #ddd;
    background: white;
    color: #666;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: #9F5748;
    color: white;
    border-color: #9F5748;
}

.page-link.active {
    background: #9F5748;
    color: white;
    border-color: #9F5748;
}

.page-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* 右侧边栏 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.search-widget,
.contact-widget {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.sidebar h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #9F5748;
    display: inline-block;
}

/* 搜索框 */
.search-form {
    display: flex;
    gap: 10px;
}

.search-form input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.search-form input:focus {
    outline: none;
    border-color: #9F5748;
}

.search-form button {
    width: 45px;
    height: 45px;
    background: #9F5748;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-form button:hover {
    background: #8a4a3e;
    transform: scale(1.05);
}





/* 联系信息 */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #666;
}

.contact-item i {
    width: 20px;
    color: #9F5748;
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .news-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .sidebar {
        order: -1;
    }
    

}

@media (max-width: 768px) {
    .page-header {
        padding: 60px 0 40px;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
    
    .nav-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .tab-btn {
        flex-shrink: 0;
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .company-news-section {
        padding: 30px 0;
    }
    
    .news-header {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .news-item {
        padding: 15px 20px;
    }
    
    .news-title {
        font-size: 15px;
    }
    
    .sidebar {
        gap: 20px;
    }
    
    .search-widget,
    .contact-widget {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .news-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-form button {
        width: 100%;
        border-radius: 25px;
        height: 40px;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .page-link {
        min-width: 30px;
        height: 30px;
        padding: 0 8px;
        font-size: 12px;
    }
}

/* 无内容状态 */
.no-news-state {
    text-align: center;
    padding: 60px 30px;
    color: #666;
}

.no-news-state i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 20px;
}

.no-news-state h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.no-news-state p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* 错误状态 */
.error-state {
    text-align: center;
    padding: 60px 30px;
}

.error-state i {
    font-size: 48px;
    color: #dc3545;
    margin-bottom: 20px;
}

.error-state h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.error-state p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.retry-btn {
    background: #9F5748;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    background: #8a4a3e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(159, 87, 72, 0.3);
}