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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 - 渐变蓝色背景 */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    top: 0;
    z-index: 1000;
}

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

.logo img {
    height: 60px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* 主要内容区域 */
.main-content {
    min-height: calc(100vh - 120px);
    padding-bottom: 40px;
}

/* 轮播图样式 */
.hero-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin: 70px auto 0;
    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;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 轮播图指示器 */
.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);
}

/* 热门资讯区域 */
.hot-news {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 50px;
    color: #333;
}

.news-grid {
    display: grid;
    grid-template-columns: 2fr 2fr;
    grid-template-rows: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.news-card.featured {
    grid-row: span 2;
}

.news-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.news-card.featured img {
    height: 350px;
}

.card-content {
    padding: 25px;
}

.category {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 12px;
    border-radius: 15px;
    margin-bottom: 15px;
}

.card-content h3 {
    color: black;
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.card-content h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-content h3 a:hover {
    color: #667eea;
}

.card-content p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
}

.more-news {
    text-align: center;
}

.btn-more {
    display: inline-block;
    padding: 15px 30px;
    background: transparent;
    color: #667eea;
    text-decoration: none;
    border: 2px solid #667eea;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-more:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* 资讯列表页样式 */
.page-header {
    text-align: center;
    padding: 20px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin-bottom: 40px;
    border-radius: 12px;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.page-header p {
    font-size: 18px;
    color: #666;
}

/* 分类筛选 */
.category-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

/* 资讯列表 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 50px;
}

.news-item {
    display: flex;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.news-image {
    margin: 20px;
    position: relative;
    width: 300px;
    height: 200px;
    flex-shrink: 0;
}

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

.category-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 12px;
    border-radius: 15px;
}

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

.news-content h3 {
    color: #000;
    font-size: 20px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-content h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-content h3 a:hover {
    color: #667eea;
}

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

.news-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #999;
    margin-top: 15px;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

.page-btn {
    text-decoration: none;
    color: #000;
    padding: 10px 15px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.page-btn:hover:not(:disabled),
.page-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 详情页样式 */
.breadcrumb {
    padding: 20px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
}

.breadcrumb .separator {
    margin: 0 10px;
}

.breadcrumb .current {
    color: #333;
}

.article-detail {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.article-header {
    padding: 40px;
    border-bottom: 1px solid #e9ecef;
}

.article-title {
    font-size: 32px;
    font-weight: 600;
    margin: 15px 0 20px 0;
    line-height: 1.3;
    color: #333;
}

.article-meta {
    display: flex;
    gap: 25px;
    font-size: 14px;
    color: #666;
}

.article-image {
    width: 100%;
    height: 400px;
}

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

.article-content {
    padding: 40px;
    line-height: 1.8;
}

.article-content .lead {
    font-size: 18px;
    font-weight: 500;
    color: #555;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    border-radius: 0 8px 8px 0;
}

.article-content h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 40px 0 20px 0;
    color: #333;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.article-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 30px 0 15px 0;
    color: #333;
}

.article-content p {
    text-indent: 4ch;
    margin-bottom: 20px;
    color: #555;
    line-height: 2.5;
}

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

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 8px;
    color: #555;
}

.article-content blockquote {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    border-radius: 0 8px 8px 0;
}

.article-content blockquote p {
    margin-bottom: 10px;
    font-style: italic;
    color: #555;
}

.article-content cite {
    font-size: 14px;
    color: #999;
}

.article-tags {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.tag {
    display: inline-block;
    padding: 5px 12px;
    background: #f8f9fa;
    color: #667eea;
    font-size: 12px;
    border-radius: 15px;
    margin-right: 10px;
    margin-bottom: 10px;
}

/* 分享按钮 */
.article-share {
    padding: 30px 40px;
    border-top: 1px solid #e9ecef;
}

.article-share h4 {
    margin-bottom: 15px;
    color: #333;
}

.share-buttons {
    display: flex;
    gap: 15px;
}

.share-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.share-btn.weibo {
    background: #ff6b6b;
    color: white;
}

.share-btn.wechat {
    background: #51c332;
    color: white;
}

.share-btn.qq {
    background: #12b7f5;
    color: white;
}

.share-btn.copy {
    background: #6c757d;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* 相关推荐 */
.related-articles {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.related-articles h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #333;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.related-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.related-item:hover {
    background: #f8f9fa;
}

.related-item img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.related-content {
    flex: 1;
}

.related-content h4 {
    color: #000;
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.related-content h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-content h4 a:hover {
    color: #667eea;
}

.related-date {
    font-size: 12px;
    color: #999;
}

/* 页脚样式 */
.footer {
    background: #333;
    color: white;
    padding: 30px 0;
    text-align: center;
    margin-top: auto;
}

.footer p {
    margin: 0;
    font-size: 14px;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 0 15px;
        flex-direction: column;
        gap: 15px;
        min-height: auto;
        padding: 15px;
    }

    .nav-menu {
        gap: 20px;
    }

    .hero-section {
        height: 300px;
    }

    .slide-content {
        left: 20px;
        right: 20px;
        bottom: 20px;
        padding: 20px;
    }

    .slide-content h3 {
        font-size: 20px;
    }

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

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

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

    .category-filter {
        gap: 10px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .article-header,
    .article-content,
    .article-share {
        padding: 25px;
    }

    .article-title {
        font-size: 24px;
    }

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

    .share-buttons {
        flex-wrap: wrap;
    }

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

    .related-item {
        padding: 15px;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 28px;
    }

    .section-title {
        font-size: 24px;
    }

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

    .related-item img {
        width: 100%;
        height: 120px;
    }
}
