/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* 导航栏样式 - 渐变橙色背景 */
.navbar {
    background: linear-gradient(135deg, #ff7b00, #ff9500, #ffb347);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-container img{
   height: 60px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.nav-link.active {
    background: rgba(255,255,255,0.3);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transform: translateY(-1px);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, transparent, white, transparent);
    border-radius: 2px;
}

/* 主内容区域 */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 200px);
}

/* 轮播图样式 */
.hero-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin: 0 auto 2rem;
    max-width: 1200px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s ease-in-out;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 60px 50px 30px;
    max-width: 600px;
}

.slide-content h3 {
    font-size: 36px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 25px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

/* 轮播图指示器 */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

/* 首页样式 */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.featured-news {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, #ff7b00, #ff9500);
    margin: 0.5rem auto;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

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

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
}

.news-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #333;
    line-height: 1.4;
}

.news-excerpt {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6; /* 限制行数为6 */
    line-clamp: 6; /* 标准属性 */
    overflow: hidden;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #999;
}

.news-date {
    font-weight: 500;
}

.news-category {
    background: linear-gradient(45deg, #ff7b00, #ff9500);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

/* 资讯列表页样式 */
.news-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.news-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    display: flex;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255,123,0,0.1);
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: rgba(255,123,0,0.3);
}

.news-item-image {
    margin: 20px;
    width: 280px;
    height: 180px;
    object-fit: cover;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.news-item:hover .news-item-image {
    transform: scale(1.05);
}

.news-item-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-item-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #333;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.news-item:hover .news-item-title {
    color: #ff7b00;
}

.news-item-excerpt {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3; /* 限制行数为3 */
    line-clamp: 3;
    overflow: hidden;
}

.news-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #999;
    margin-top: auto;
}

.news-item-meta .news-date {
    color: #ff7b00;
    font-weight: 500;
}

.news-item-meta .news-views {
    color: #666;
    font-size: 0.85rem;
}

/* 资讯详情页样式 */
.article-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #eee;
}

.article-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: #666;
    font-size: 0.9rem;
}

.article-image {
    width: 100%;
    max-width: 800px;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin: 2rem auto;
    display: block;
}

.article-content {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    line-height: 1.8;
    font-size: 1.1rem;
}

.article-content p {
    text-indent: 4ch;
    line-height: 2.5;
    margin-bottom: 1.5rem;
}

.article-content p img{
    display: block;
    margin: auto;
}

.article-content h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
    color: #333;
}

.back-button {
    display: inline-block;
    background: linear-gradient(45deg, #ff7b00, #ff9500);
    color: white;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 25px;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
    font-weight: 500;
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 123, 0, 0.3);
}

/* 页脚样式 - 居中备案号 */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }

    .nav-menu {
        gap: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-item {
        flex-direction: column;
    }

    .news-item-image {
        width: 100%;
        height: 200px;
    }

    .main-content {
        padding: 1rem;
    }

    .article-content {
        padding: 1.5rem;
    }

    .article-title {
        font-size: 1.8rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* 分页响应式样式 */
    .pagination-section {
        margin-top: 2rem;
        margin-bottom: 1rem;
    }

    .pagination {
        gap: 0.25rem;
        padding: 0.75rem;
        flex-wrap: wrap;
    }

    .pagination a,
    .pagination span {
        min-width: 35px;
        height: 35px;
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }

    .pagination .active span {
        transform: scale(1.02);
    }

    .pagination a[rel="prev"],
    .pagination a[rel="next"] {
        padding: 0.4rem 0.8rem;
    }
}

/* 加载动画 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff7b00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 按钮通用样式 */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(45deg, #ff7b00, #ff9500);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 123, 0, 0.3);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 分页样式 */
.pagination-section {
    margin-top: 4rem;
    margin-bottom: 2rem;
    text-align: center;
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pagination {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    background: white;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,123,0,0.1);
}

.pagination a,
.pagination span {
    color: #ffffff;
    background-color: #ff9500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.pagination a {
    color: #666;
    background: #f8f9fa;
}

.pagination a:hover {
    color: #ff7b00;
    background: rgba(255,123,0,0.1);
    border-color: rgba(255,123,0,0.2);
    transform: translateY(-1px);
}

.pagination .active span {
    background: #ff7b00;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255,123,0,0.3);
    transform: scale(1.05);
    position: relative;
    overflow: hidden;
}

.pagination .active span::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.pagination .disabled span {
    color: #ccc;
    background: #f1f1f1;
    cursor: not-allowed;
}

.pagination a[rel="prev"],
.pagination a[rel="next"] {
    font-weight: 600;
    background: rgba(255,123,0,0.1);
    color: #ff7b00;
    border-color: rgba(255,123,0,0.2);
}

.pagination a[rel="prev"]:hover,
.pagination a[rel="next"]:hover {
    background: #ff7b00;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,123,0,0.3);
}

.pagination-info {
    margin: 0 1rem;
    color: #666;
    font-weight: 500;
}
