/* 新闻中心特定样式 */
:root {
    --primary-color: #00649a;
    --secondary-color: #3498db;
    --text-color: #333;
    --light-gray: #f9f9f9;
    --border-radius: 8px;
    --transition: 0.3s ease;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 页面横幅 */
.page-banner {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    margin-bottom: 40px;
}

.page-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.page-banner:hover img {
    transform: scale(1.02);
}

.page-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
}

.page-banner .banner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    z-index: 1;
}

.page-banner h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-banner p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 主要内容区域 */
.news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

/* 新闻分类标签 */
.news-categories {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
}

.category-tab {
    padding: 12px 24px;
    font-size: 1.1rem;
    color: #666;
    cursor: pointer;
    border: none;
    background: none;
    transition: all var(--transition);
    position: relative;
}

.category-tab:hover {
    color: var(--primary-color);
}

.category-tab.active {
    color: var(--primary-color);
    font-weight: 600;
}

.category-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
}

/* 新闻内容区域 */
.news-content {
    display: none;
}

.news-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* 企业动态 - 图文卡片列表 */
.company-news-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

/* 新闻卡片 */
.news-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.news-body {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.news-title {
    color: var(--text-color);
    font-size: 1.3rem;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

.news-title a:hover {
    color: var(--primary-color);
}

.news-date {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.news-date i {
    margin-right: 5px;
}

.news-summary {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.read-more {
    align-self: flex-start;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    transition: color var(--transition);
}

.read-more:hover {
    color: var(--secondary-color);
}

.read-more i {
    margin-left: 5px;
    transition: transform var(--transition);
}

.read-more:hover i {
    transform: translateX(5px);
}

/* 公示文件 - 纯标题列表 */
.announcement-list {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.announcement-item {
    padding: 20px;
    border-bottom: 1px solid #eee;
    transition: background var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.announcement-item:last-child {
    border-bottom: none;
}

.announcement-item:hover {
    background: var(--light-gray);
}

.announcement-title {
    flex: 1;
    margin: 0;
}

.announcement-title a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color var(--transition);
    display: block;
}

.announcement-title a:hover {
    color: var(--primary-color);
}

.announcement-date {
    color: #999;
    font-size: 0.9rem;
    white-space: nowrap;
    margin-left: 20px;
    display: flex;
    align-items: center;
}

.announcement-date i {
    margin-right: 5px;
}

.announcement-icon {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 1.2rem;
}

.announcement-file-size {
    color: #666;
    font-size: 0.85rem;
    background: #f5f5f5;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 15px;
}

/* 分页控件 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    gap: 10px;
}

.page-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition);
}

.page-btn:hover {
    background: var(--light-gray);
}

.page-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .company-news-list {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .page-banner {
        height: 200px;
    }

    .page-banner h1 {
        font-size: 2rem;
    }

    .page-banner p {
        font-size: 1rem;
    }

    .news-container {
        padding: 0 15px 30px;
    }

    .company-news-list {
        grid-template-columns: 1fr;
    }

    .announcement-item {
        padding: 15px;
        flex-direction: column;
        align-items: flex-start;
    }

    .announcement-date {
        margin-left: 0;
        margin-top: 10px;
    }

    .announcement-file-size {
        margin-left: 10px;
        margin-top: 5px;
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .page-banner h1 {
        font-size: 1.8rem;
    }

    .category-tab {
        padding: 10px 15px;
        font-size: 1rem;
    }

    .news-body {
        padding: 15px;
    }

    .news-title {
        font-size: 1.2rem;
    }

    .announcement-title a {
        font-size: 1rem;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 空状态提示 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #ddd;
}

.empty-state p {
    font-size: 1.2rem;
}