/* 重置样式 */
* {
    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;
}

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

/* 导航栏样式 - 渐变绿背景 */
.navbar {
    background: linear-gradient(135deg, #4CAF50, #66BB6A, #81C784);
    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;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
    position: relative;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-item {
    margin-left: 30px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* 主要内容区域 */
.main-content {
    background: white;
    min-height: calc(100vh - 140px);
}

/* 英雄轮播区域 */
.hero-slider {
    margin: 20px auto;
    max-width: 1200px;
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #000;
}

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

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

.slide.active {
    opacity: 1;
}

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

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

.slide-content {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    z-index: 2;
    padding: 2rem;
}

.slide-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.slide-btn {
    display: inline-block;
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.slide-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76,175,80,0.4);
}

.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 3;
}

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

.nav-dot.active,
.nav-dot:hover {
    background: white;
    transform: scale(1.2);
}



/* 页面标题 */
.page-header {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
    text-align: center;
    padding: 60px 0;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
}

/* 面包屑导航 */
.breadcrumb {
    background-color: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #dee2e6;
}

.breadcrumb nav {
    font-size: 14px;
    color: #6c757d;
}

.breadcrumb a {
    color: #4CAF50;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* 区域标题 */
.section-title {
    font-size: 32px;
    text-align: center;
    color: #2e7d32;
    position: relative;
}

/* 区域标题 */
.section-header {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.more-link {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.more-link:hover {
    color: #2E7D32;
}

/* 今日热门 */
.today-hot {
    background: white;
}

.hot-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.main-news {
    margin-bottom: 20px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.main-news:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.main-news .news-image {
    width: 746px;
    position: relative;
    overflow: hidden;
}

.main-news .news-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.news-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #FF5722, #FF7043);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.news-tag.hot {
    background: linear-gradient(135deg, #F44336, #E57373);
}

.main-news .news-info {
    padding: 30px;
}

.main-news .news-category {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
    padding: 6px 15px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 15px;
}

.main-news h3 {
    font-size: 24px;
    line-height: 1.4;
    margin-bottom: 15px;
}

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

.main-news h3 a:hover {
    color: #4CAF50;
}

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

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

.hot-side {
    display: flex;
    flex-direction: column;
}

.side-news {
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.side-news:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.side-news img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

.side-info {
    flex: 1;
}

.side-category {
    background: #f1f8e9;
    color: #4CAF50;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 8px;
}

.side-info h4 {
    color: black;
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 30px;
}

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

.side-info h4 a:hover {
    color: #4CAF50;
}

.side-time {
    font-size: 12px;
    color: #999;
}




/* 分类推荐 */
.categories {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.category-card {
    background-color: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.category-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.category-card h3 {
    color: #2e7d32;
    margin-bottom: 15px;
    font-size: 22px;
}

.category-card p {
    color: #666;
    font-size: 14px;
}


/* 资讯列表 */
.news-list {
    padding: 40px 0;
    background-color: white;
}

.news-items {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-item {
    display: flex;
    background-color: white;
    border-radius: 15px;
    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 8px 25px rgba(0,0,0,0.15);
}

.news-image {
    margin: 20px;
    flex-shrink: 0;
    width: 250px;
}

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

.news-info {
    padding: 30px;
    flex: 1;
}

.news-info h2 {
    color: #000;
    margin-bottom: 15px;
    line-height: 1.4;
}

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

.news-info h2 a:hover {
    color: #4CAF50;
}

.news-info p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5; /* 限制行数为4 */
    overflow: hidden;
}

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

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

.pagination a {
    text-decoration: none;
}

.page-btn {
    background-color: white;
    border: 1px solid #dee2e6;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #666;
}

.page-btn:hover:not(:disabled),
.page-btn.current {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    border-color: transparent;
    color: white;
}

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

/* 文章详情页 */
.article-detail {
    background-color: white;
    padding: 40px 0;
}

.article-detail .container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.article-content {
    max-width: none;
}

.article-header {
    margin-bottom: 30px;
}

.article-category {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 20px;
}

.article-title {
    font-size: 36px;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #2e7d32;
}

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

.article-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    background-color: #f1f8e9;
    color: #4CAF50;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    text-decoration: none;
}

.article-image {
    margin-bottom: 30px;
}

.article-image img {
    width: 100%;
    border-radius: 15px;
}

.article-body {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.article-summary {
    background-color: #f1f8e9;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    border-left: 4px solid #4CAF50;
}

.article-body h2 {
    font-size: 24px;
    color: #2e7d32;
    margin: 30px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8f5e8;
}

.article-body p {
    text-indent: 4ch;
    margin-bottom: 20px;
}

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

.article-body ul {
    margin: 20px 0;
    padding-left: 30px;
}

.article-body li {
    margin-bottom: 10px;
}

.article-image-inline {
    margin: 30px 0;
    text-align: center;
}

.article-image-inline img {
    max-width: 100%;
    border-radius: 10px;
}

.image-caption {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    font-style: italic;
}

/* 角色展示 */
.character-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.character-card {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.character-card img {
    width: 100%;
    max-width: 120px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.character-card h4 {
    color: #2e7d32;
    margin-bottom: 10px;
}

.character-card p {
    font-size: 14px;
    color: #666;
}

/* 更新时间线 */
.update-timeline {
    margin: 30px 0;
}

.timeline-item {
    display: flex;
    margin-bottom: 30px;
    align-items: flex-start;
}

.timeline-date {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    margin-right: 20px;
    min-width: 80px;
    text-align: center;
}

.timeline-content h4 {
    color: #2e7d32;
    margin-bottom: 10px;
}

.timeline-content p {
    color: #666;
    font-size: 14px;
}


/* 侧边栏 */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-section {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
}

.sidebar-section h3 {
    color: #2e7d32;
    margin-bottom: 20px;
    font-size: 20px;
}

.related-articles {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.related-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

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

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

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

.related-content h4 a:hover {
    color: #4CAF50;
}

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

.hot-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hot-tag {
    background-color: white;
    color: #4CAF50;
    padding: 6px 12px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.hot-tag:hover {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
    border-color: transparent;
}

.ad-banner img {
    width: 100%;
    border-radius: 10px;
}


/* 页脚样式 - 居中备案号 */
.footer {
    background-color: #2c2c2c;
    color: #ccc;
    text-align: center;
    padding: 30px 0;
    margin-top: auto;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(135deg, #4CAF50, #66BB6A);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px rgba(0,0,0,0.1);
        padding: 20px 0;
        z-index: 999;
        min-height: calc(100vh - 70px);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 15px 0;
        width: 100%;
    }

    .nav-item .nav-link {
        display: block;
        padding: 15px 30px;
        font-size: 18px;
        border-radius: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .slide-content h2 {
        font-size: 32px;
    }

    .slide-content p {
        font-size: 16px;
    }


    .hot-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }




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


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

    .news-image {
        width: 100%;
    }

    .news-image img {
        height: 200px;
    }

    .article-detail .container {
        grid-template-columns: 1fr;
    }

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

    .character-showcase {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline-date {
        margin-bottom: 10px;
        margin-right: 0;
    }


    .pagination {
        flex-wrap: wrap;
    }

    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 15px;
    }

    .hero-slider {
        height: 400px;
    }

    .slide-content h2 {
        font-size: 24px;
    }

    .slide-content p {
        font-size: 14px;
    }


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



    .section-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }


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

    .news-content,
    .article-sidebar .sidebar-section {
        padding: 20px;
    }


    .character-showcase {
        gap: 15px;
    }

    .main-news .news-info {
        padding: 20px;
    }

    .main-news h3 {
        font-size: 20px;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .slider-arrow.prev {
        left: 15px;
    }

    .slider-arrow.next {
        right: 15px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-card,
.category-card,
.news-item {
    animation: fadeInUp 0.6s ease-out;
}

/* 隐藏滚动条 */
::-webkit-scrollbar {
    display: none;
}

/* Firefox */
html {
    scrollbar-width: none;
}

/* IE和Edge */
body {
    -ms-overflow-style: none;
}
