
/* 动画定义 */
@keyframes slideInTop {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes rotateInLeft {
    from {
        transform: rotate(-90deg) translateX(-50px);
        opacity: 0;
    }
    to {
        transform: rotate(0) translateX(0);
        opacity: 1;
    }
}

@keyframes rotateInRight {
    from {
        transform: rotate(90deg) translateX(50px);
        opacity: 0;
    }
    to {
        transform: rotate(0) translateX(0);
        opacity: 1;
    }
}



/* News Container Layout */
.news-container {
    margin: 0 auto;
    padding: 20px 10%;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

/* Featured Article */
.featured-article {
    grid-column: 1 / -1;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    transition: transform 0.3s ease;
    animation: slideInTop 0.8s ease-out both;
}

.featured-article:hover {
    transform: translateY(-5px);
}

.featured-article .article-image {
    position: relative;
    height: 400px;
}

.featured-article img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-article .article-content {
    padding: 30px;
}

.featured-article h2 {
    font-size: 1.8em;
    margin: 15px 0;
    color: #333;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* News Cards */
.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    animation: slideInLeft 0.8s ease-out both;
}

.news-card:nth-child(1) { animation-delay: 0s; }
.news-card:nth-child(2) { animation-delay: 0.2s; }
.news-card:nth-child(3) { animation-delay: 0.4s; }
.news-card:nth-child(4) { animation-delay: 0.8s; }
.news-card:nth-child(5) { animation-delay: 1s; }
.news-card:nth-child(6) { animation-delay: 1.2s; }
.news-card:nth-child(7) { animation-delay: 1.5s; }
.news-card:nth-child(8) { animation-delay: 1.8s; }
.news-card:nth-child(9) { animation-delay: 2s; }

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

.card-image {
    position: relative;
    height: 200px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #003366;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
}

.card-content {
    padding: 20px;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: #FFF;
    font-size: 0.9em;
    margin: 0 auto 15px;
    flex-wrap: wrap;
}

.article-meta i {
    margin-right: 5px;
}

.news-card h3 {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: #333;
}

.news-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    color: #003366;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #0056b3;
}

/* Sidebar */
.news-sidebar {
    position: sticky;
    top: 20px;
    animation: slideInRight 0.8s ease-out 0.5s both;
}

.search-box {
    display: flex;
    margin-bottom: 30px;
}

.search-box input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 1em;
}

.search-box button {
    padding: 10px 20px;
    background: #003366;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-box button:hover {
    background: #0056b3;
}

.sidebar-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.sidebar-section h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    color: #333;
}

.categories ul {
    list-style: none;
    padding: 0;
}

.categories li {
    margin-bottom: 10px;
}

.categories a {
    display: flex;
    justify-content: space-between;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.categories a:hover {
    color: #003366;
}

.recent-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.recent-post-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.recent-post-content h4 {
    font-size: 1em;
    margin-bottom: 5px;
    color: #333;
}

.recent-post-content .date {
    font-size: 0.9em;
    color: #666;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: #f5f5f5;
    padding: 5px 15px;
    border-radius: 20px;
    color: #666;
    text-decoration: none;
    font-size: 0.9em;
    transition: all 0.3s ease;
}


.tag a{ background: #f5f5f5;
    padding: 5px 15px;
    border-radius: 20px;
    color: #666;
    text-decoration: none;
    font-size: 0.9em;
    transition: all 0.3s ease;}

.tag a:hover {
    background: #003366;
    color: white;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('images/slide2.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 60px 20px;
    text-align: center;
    margin: 50px 0;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 30px auto 0;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-size: 1em;
}

.newsletter-form button {
    padding: 12px 30px;
    background: #003366;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background: #0056b3;
}

/* Article Detail Page Styles */
.article-header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/slide1.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 20px;
    text-align: center;
    margin-bottom: 50px;
}

.article-category {
    display: inline-block;
    background: #003366;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    margin-bottom: 20px;
}

.article-header h1 {
    font-size: 2.5em;
    max-width: 800px;
    margin: 0 auto 20px;
}

.article-metalist {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.article-metalist span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9em;
}

/* Article Container Layout */
.article-container {
    margin: 0 auto;
    padding: 20px 10%;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.article-content {
    animation: slideInLeft 0.8s ease-out both;
}

.article-sidebar {
    animation: slideInRight 0.8s ease-out 0.5s both;
}

.article-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Featured Image */
.article-featured-image {
    position: relative;
    margin-bottom: 30px;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: 0.9em;
    text-align: center;
}

/* Article Text Content */
.article-text {
    padding: 30px;
}

.article-text a{
	color:#3b5998;
	text-decoration:none;
  
}

.article-lead {
    font-size: 1.2em;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
    font-weight: 500;
}

.article-text h2 {
    font-size: 1.8em;
    margin: 40px 0 20px;
    color: #333;
}

.article-text p {
    line-height: 1.8;
    margin-bottom: 20px;
    color: #444;
}

.article-quote {
    margin: 40px 0;
    padding: 30px;
    background: #f8f9fa;
    border-left: 4px solid #003366;
}

.article-quote blockquote {
    font-size: 1.2em;
    font-style: italic;
    color: #333;
    margin: 0;
}

.article-quote cite {
    display: block;
    margin-top: 15px;
    color: #666;
    font-size: 0.9em;
}

/* Image Gallery */
.article-image-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.gallery-item {
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.gallery-item .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px;
    font-size: 0.8em;
    text-align: center;
    border-radius: 0 0 8px 8px;
}

/* Statistics */
.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-number {
    display: block;
    font-size: 2em;
    font-weight: bold;
    color: #003366;
    margin-bottom: 10px;
}

.stat-label {
    color: #666;
    font-size: 0.9em;
}

/* Call to Action */
.article-cta {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin: 40px 0;
    text-align: center;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #003366;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: white;
    color: #003366;
    border: 2px solid #003366;
}

.btn-secondary:hover {
    background: #f8f9fa;
}

/* Article Tags */
.article-tags {
    padding: 20px 30px;
    border-top: 1px solid #eee;
}

/* Social Share */
.social-share {
    padding: 30px;
    border-top: 1px solid #eee;
    text-align: center;
}

.share-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.share-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 20px;
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.share-button:hover {
    opacity: 0.9;
}

.share-button.facebook { background: #3b5998; }
.share-button.twitter { background: #1da1f2; }
.share-button.linkedin { background: #0077b5; }
.share-button.whatsapp { background: #25d366; }

/* Author Bio */
.author-bio {
    display: flex;
    gap: 20px;
    padding: 30px;
    border-top: 1px solid #eee;
}

.author-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    margin: 10px 0;
    color: #333;
}

.author-social {
    margin-top: 15px;
}

.author-social a {
    color: #666;
    margin-right: 15px;
    font-size: 1.2em;
    transition: color 0.3s ease;
}

.author-social a:hover {
    color: #003366;
}

/* Article Navigation */
.article-navigation {
  
    margin: 50px auto;
    padding: 20px 10%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.prev-article {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    transition: transform 0.3s ease;
    animation: rotateInLeft 0.8s ease-out both;
}

.next-article {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    transition: transform 0.3s ease;
    animation: rotateInRight 0.8s ease-out both;
}

.prev-article:hover, .next-article:hover {
    transform: translateY(-5px);
}

.next-article {
    text-align: right;
}

.article-navigation span {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.article-navigation h4 {
    color: #333;
    margin: 5px 0;
}

.article-navigation i {
    color: #003366;
}

/* Article Sidebar */
.article-sidebar {
    position: sticky;
    top: 20px;
}

.related-article-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    text-decoration: none;
    color: inherit;
}

.related-article-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.related-article-item h4 {
    font-size: 1em;
    margin: 0 0 5px;
    color: #333;
}

.sidebar-newsletter-form {
    margin-top: 20px;
}

.sidebar-newsletter-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.sidebar-newsletter-form button {
    width: 100%;
    padding: 10px;
    background: #003366;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.sidebar-newsletter-form button:hover {
    background: #0056b3;
}

.news-list{ width:100%; margin:0 auto;}
/* Pagination */
.pagination {
   	display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 50px 0;
    border-radius: 4px;
}


	
.pagination > li {
    display: inline; }
.pagination > li > a,
.pagination > li > span {
    position: relative;
    float: left;
	
    padding: 6px 12px;
    line-height: 1.42857;
    text-decoration: none;
    color: #337ab7;
    background-color: #fff;
    border: 1px solid #ddd;
    margin-left: -1px; }
	
.pagination > li:first-child > a,
.pagination > li:first-child > span {
    margin-left: 0;
    border-bottom-left-radius: 4px;
    border-top-left-radius: 4px; }
.pagination > li:last-child > a,
.pagination > li:last-child > span {
    border-bottom-right-radius: 4px;
    border-top-right-radius: 4px; }
.pagination > li > a:hover, .pagination > li > a:focus,
.pagination > li > span:hover,
.pagination > li > span:focus {
    z-index: 2;
    color: #23527c;
    background-color: #eeeeee;
    border-color: #ddd; }
.pagination > .active > a, .pagination > .active > a:hover, .pagination > .active > a:focus,
.pagination > .active > span,
.pagination > .active > span:hover,
.pagination > .active > span:focus {
    z-index: 3;
    color: #fff;
    background-color: #337ab7;
    border-color: #337ab7;
    cursor: default; }


/* Responsive Design */
@media (max-width: 1024px) {
    .news-container {
        grid-template-columns: 1fr;
    }

    .news-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .news-hero {
        padding: 60px 20px;
    }

    .hero-content h1 {
        font-size: 2em;
    }

    .featured-article .article-image {
        height: 300px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
    }
    
    /* Article Detail Page Responsive */
    .article-header h1 {
        font-size: 2em;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .article-container {
        grid-template-columns: 1fr;
    }
    
    .article-image-gallery {
        grid-template-columns: 1fr;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .author-bio {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .article-navigation {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .share-buttons {
        flex-wrap: wrap;
    }
}

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

    .article-meta {
        flex-direction: column;
        gap: 5px;
    }

    .pagination {
        flex-wrap: wrap;
    }
}




/* 新闻中心页面样式 */
.indexnews-container {
    padding: 0 0 30px 0;
    background: #f9f9f9;
    animation: fadeInDown 0.8s ease-out;
}

.indexnews-container > .container > * {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.indexnews-container .page-title {
    animation-delay: 0.2s;
}

.indexnews-container .news-categories {
    animation-delay: 0.4s;
}

.indexnews-container .news-sections {
    animation-delay: 0.6s;
}

.indexnews-grid {
    animation: fadeInUp 0.8s ease-out 0.8s forwards;
}

.page-title {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    font-size: 2.2rem;
}

/* 新闻分类导航 - 静态样式 */
.news-categories {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.news-categories .category {
    padding: 10px 25px;
    margin: 0 10px 10px;
    font-size: 1.1rem;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* 新闻栏目标题 */
.section-title {
    font-size: 1.5rem;
    color: #333;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title i {
    margin-right: 10px;
    color: #006ABB;
}

.view-all {
    font-size: 0.9rem;
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.view-all:hover {
    color: #006ABB;
}

/* 新闻网格布局 */
.indexnews-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.indexnews-card {
    width: 100%;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .indexnews-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .indexnews-card {
        margin-bottom: 15px;
    }
}

.indexnews-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.indexnews-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.news-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.indexnews-card:hover .news-image img {
    transform: scale(1.05);
}

.news-date {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,106,187,0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.news-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

.news-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
    flex: 1;
}

.read-more {
    color: #006ABB;
    font-size: 0.9rem;
    text-decoration: none;
    align-self: flex-start;
    transition: all 0.3s;
}

.read-more:hover {
    color: #004a8f;
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.read-more:hover i {
    transform: translateX(3px);
}

/* 响应式布局 */
@media (max-width: 1024px) {
    .news-grid {
        gap: 20px;
    }
    
    .news-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-categories .category {
        padding: 8px 15px;
        margin: 0 5px 5px;
        font-size: 1rem;
    }
    
    .page-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .section-title {
        font-size: 1.3rem;
        margin: 30px 0 15px;
    }
}

@media (max-width: 480px) {
    .news-container {
        padding: 40px 0;
    }
    
    .news-image {
        height: 160px;
    }
    
    .news-content {
        padding: 15px;
    }
    
    .news-title {
        font-size: 1.1rem;
    }
    
    .indexnews-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .indexnews-card {
        margin-bottom: 10px;
    }
}