/* Page banner styles */
.page-banner {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/news-banner.jpg');
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    align-items: center;
    margin-top: 80px;
    color: #fff;
}

.page-banner h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.breadcrumb {
    font-size: 14px;
}

.breadcrumb a {
    color: #fff;
}

/* News content styles */
.news-content {
    padding: 60px 0;
}

/* News filter styles */
.news-filter {
    margin-bottom: 40px;
    display: flex;
    gap: 20px;
}

.filter-btn {
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
    background: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* News list styles */
.news-list {
    padding: 80px 0px 40px 0;
    background: #fff;
}

.news-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.news-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    height: 200px;
    width: 100%;
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.news-image {
    width: 300px;
    flex-shrink: 0;
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: #fff;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 500;
}

.news-category.notice {
    background: #e67e22;
}

.news-category.industry {
    background: #27ae60;
}

.news-content {
    padding: 25px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-meta {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 13px;
    margin-bottom: 10px;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s;
}

.read-more:hover {
    gap: 10px;
}

/* Pagination styles */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
    transition: all 0.3s;
}

.page-btn.active,
.page-btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Search box styles */
.search-box {
    margin-bottom: 30px;
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
}

.search-btn {
    padding: 12px 24px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #0052a3;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .news-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-filter {
        flex-wrap: wrap;
    }

    .filter-btn {
        flex: 1;
        text-align: center;
    }

    .news-list {
        grid-template-columns: 1fr;
    }

    .search-box {
        flex-direction: column;
    }

    .search-btn {
        width: 100%;
    }
}

/* 新闻公告页面样式 */
.news-banner {
    height: 240px;
    background: linear-gradient(135deg, var(--primary-color), #2980b9);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    margin-top: 64px;
}

.news-banner h1 {
    font-size: 48px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* 二级导航 */
.sub-nav {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 80px;
    z-index: 100;
    border-bottom: 1px solid #eee;
}

.sub-nav .container {
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
}

.sub-nav a {
    padding: 20px 30px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    position: relative;
    white-space: nowrap;
    transition: all 0.3s;
}

.sub-nav a:hover {
    color: var(--primary-color);
}

.sub-nav a.active {
    color: var(--primary-color);
}

.sub-nav a.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

/* 搜索框样式 */
.news-search {
    padding: 30px 0;
    background: #f8f9fa;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 15px;
}

.search-box input {
    flex-grow: 1;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
}

.search-box input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1);
}

.search-box button {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-box button:hover {
    background: #2980b9;
}

/* 响应式布局 */
@media (max-width: 992px) {
    .news-item {
        height: auto;
        flex-direction: row;
    }

    .news-image {
        width: 200px;
    }

    .news-content {
        padding: 20px;
    }

    .news-title {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .news-item {
        flex-direction: column;
        height: auto;
    }

    .news-image {
        width: 100%;
        height: 180px;
    }

    .news-content {
        padding: 20px;
    }

    .news-title {
        font-size: 18px;
        -webkit-line-clamp: 2;
    }

    .news-excerpt {
        -webkit-line-clamp: 3;
    }

    .news-banner {
        height: 180px;
        margin-top: 80px;
    }

    .news-banner h1 {
        font-size: 32px;
    }

    .sub-nav a {
        padding: 15px 20px;
    }

    .search-box {
        flex-direction: column;
    }

    .search-box button {
        width: 100%;
        justify-content: center;
    }

    .pagination {
        gap: 5px;
    }

    .pagination a, .pagination span {
        min-width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

/* 新闻详情页面样式 */
.news-detail {
    padding: 60px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
}

.detail-container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
}

.article-category {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(33, 150, 243, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 20px;
}

.article-title {
    font-size: 32px;
    color: var(--text-color);
    line-height: 1.4;
    margin-bottom: 20px;
    font-weight: 700;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    color: #666;
    font-size: 14px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-item i {
    color: var(--primary-color);
    font-size: 16px;
}

.article-cover {
    margin: 0 -40px 40px;
    height: 400px;
    overflow: hidden;
}

.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content h2 {
    font-size: 24px;
    color: var(--text-color);
    margin: 40px 0 20px;
    font-weight: 600;
}

.article-content h3 {
    font-size: 20px;
    color: var(--text-color);
    margin: 30px 0 15px;
    font-weight: 600;
}

.article-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 20px 0;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 10px;
    color: #333;
}

.article-content blockquote {
    margin: 30px 0;
    padding: 20px 30px;
    background: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
    font-style: italic;
    color: #666;
}

.article-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px dashed var(--primary-color);
    transition: all 0.3s;
}

.article-content a:hover {
    border-bottom-style: solid;
}

.article-footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.article-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.article-tag {
    padding: 6px 16px;
    background: #f8f9fa;
    color: #666;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s;
}

.article-tag:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.article-share {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.share-btn:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.article-navigation {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.nav-item {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s;
}

.nav-item:hover {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.nav-item.prev {
    text-align: left;
}

.nav-item.next {
    text-align: right;
}

.nav-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-title {
    font-size: 16px;
    color: var(--text-color);
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-news {
    margin-top: 60px;
}

.related-title {
    font-size: 24px;
    color: var(--text-color);
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.related-image {
    height: 180px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s;
}

.related-card:hover .related-image img {
    transform: scale(1.1);
}

.related-info {
    padding: 20px;
}

.related-category {
    font-size: 14px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.related-card-title {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 10px;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-date {
    font-size: 14px;
    color: #666;
}

/* 响应式布局 */
@media (max-width: 992px) {
    .detail-container {
        padding: 30px;
    }

    .article-cover {
        margin: 0 -30px 30px;
        height: 300px;
    }

    .article-title {
        font-size: 28px;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .detail-container {
        padding: 20px;
        border-radius: 12px;
    }

    .article-cover {
        margin: 0 -20px 20px;
        height: 200px;
    }

    .article-title {
        font-size: 24px;
    }

    .article-meta {
        flex-direction: column;
        gap: 10px;
    }

    .article-navigation {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .article-content {
        font-size: 15px;
    }

    .article-content h2 {
        font-size: 20px;
    }

    .article-content h3 {
        font-size: 18px;
    }
} 