@charset "UTF-8";
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

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

        /* 导航栏样式 */
        .navbar {
            background: linear-gradient(135deg, #2e7d32, #4caf50);
            padding: 0 20px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .nav-container {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 70px;
        }

        .logo {
            color: white;
            font-size: 24px;
            font-weight: bold;
            text-decoration: none;
        }

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

        .nav-menu li {
            margin-left: 30px;
        }

        .nav-menu a {
            color: white;
            text-decoration: none;
            font-size: 16px;
            padding: 10px 0;
            transition: all 0.3s ease;
            border-bottom: 2px solid transparent;
        }

        .nav-menu a:hover {
            border-bottom: 2px solid white;
        }

        .hamburger {
            display: none;
            flex-direction: column;
            cursor: pointer;
            background: none;
            border: none;
        }

        .hamburger span {
            width: 25px;
            height: 3px;
            background: white;
            margin: 3px 0;
            transition: 0.3s;
        }

        /* 搜索区域样式 */
        .search-section {
            background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
            padding: 60px 20px;
            text-align: center;
        }

        .search-container {
            max-width: 600px;
            margin: 0 auto;
        }

        .search-title {
            color: #2e7d32;
            font-size: 2.5em;
            margin-bottom: 20px;
        }

        .search-box {
            display: flex;
            background: white;
            border-radius: 50px;
            padding: 8px;
            box-shadow: 0 5px 20px rgba(46, 125, 50, 0.2);
        }

        .search-input {
            flex: 1;
            border: none;
            padding: 10px 10px;
            font-size: 16px;
            border-radius: 50px;
            outline: none;
        }

        .search-btn {
            background: #4caf50;
            color: white;
            border: none;
            padding: 10px 15px;
            border-radius: 50px;
            cursor: pointer;
            font-size: 16px;
            transition: background 0.3s ease;
        }

        .search-btn:hover {
            background: #388e3c;
        }

        /* 瀑布流样式 */
        .gallery-section {
            padding: 20px 10px;
            max-width: 1400px;
            margin: 0 auto;
        }

        .gallery-title {
            text-align: center;
            color: #2e7d32;
            font-size: 2.2em;
            margin-bottom: 30px;
        }

        .masonry-grid {
            column-count: 4;
            column-gap: 10px;
        }

        .masonry-item {
            break-inside: avoid;
            margin-bottom: 20px;
            background: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            transition: transform 0.3s ease;
        }

        .masonry-item:hover {
            transform: translateY(-5px);
        }

        .masonry-item a {
            text-decoration: none;
            color: inherit;
            display: block;
        }

        .masonry-img {
            width: 100%;
            height: auto;
            display: block;
        }

        .masonry-title {
            padding: 10px;
            text-align: center;
        }

        .masonry-title h3 {
            color: #333;
            font-size: 1.1em;
            margin: 0;
        }

        /* 友情链接样式 */
        .links-section {
            background: #e8f5e9;
            padding: 20px 20px;
            text-align: center;
        }

        .links-container {
            max-width: 800px;
            margin: 0 auto;
        }

        .links-title {
            color: #2e7d32;
            font-size: 1.4em;
            margin-bottom: 10px;
        }

        .links-grid {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 10px;
        }

        .links-grid a {
            color: #4caf50;
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .links-grid a:hover {
            color: #2e7d32;
            text-decoration: underline;
        }

        /* 页脚样式 */
        .footer {
            background: #2e7d32;
            color: white;
            text-align: center;
            padding: 20px;
        }

        .footer a {
            color: #fff;
            text-decoration: none;
        }

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

        /* 响应式设计 */
        @media (max-width: 1024px) {
            .masonry-grid {
                column-count: 3;
            }
        }

        @media (max-width: 768px) {
            .hamburger {
                display: flex;
            }

            .nav-menu {
                position: fixed;
                left: -100%;
                top: 70px;
                flex-direction: column;
                background: #2e7d32;
                width: 100%;
                text-align: center;
                transition: 0.3s;
                box-shadow: 0 10px 10px rgba(0,0,0,0.1);
                padding: 10px 0;
            }

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

            .nav-menu li {
                margin: 15px 0;
            }

            .masonry-grid {
                column-count: 2;
            }

            .search-title {
                font-size: 2em;
            }
        }

        @media (max-width: 480px) {
            .masonry-grid {
                column-count: 2;
            }
            
            .search-title {
                font-size: 1.8em;
            }
            
            .gallery-title {
                font-size: 1.8em;
            }
        }

        /* 面包屑导航样式 */
        .breadcrumbs {
            padding: 15px 20px;
            background-color: #e8f5e9;
            width: 100%; 
            margin: 0; 
        }

        .breadcrumbs-container {
            max-width: 1400px; 
            margin: 0 auto; 
            font-size: 16px;
            color: #666;
        }

        .breadcrumbs a {
            color: #4caf50;
            text-decoration: none;
        }

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

        .breadcrumbs span.separator {
            margin: 0 8px;
            color: #999;
        }

        .breadcrumbs span.current {
            color: #333;
            font-weight: 500;
        }

        /* 分页导航样式 */
        .pagination-section {
            background: #e8f5e9;
            padding: 30px 20px;
            text-align: center;
        }

        .pagination-container {
            max-width: 1400px;
            margin: 0 auto;
        }

        .pagination {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 8px;
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .pagination li {
            display: inline-block;
        }

        .pagination a,
        .pagination span {
            display: block;
            padding: 8px 15px;
            border-radius: 5px;
            text-decoration: none;
            color: #4caf50;
            background-color: white;
            border: 1px solid #c8e6c9;
            transition: all 0.3s ease;
        }

        .pagination a:hover {
            background-color: #4caf50;
            color: white;
            border-color: #4caf50;
        }

        .pagination span.current {
            background-color: #2e7d32;
            color: white;
            border-color: #2e7d32;
            font-weight: bold;
        }

        @media (max-width: 768px) {
            .pagination a,
            .pagination span {
                padding: 6px 12px;
                font-size: 14px;
            }
        }

        @media (max-width: 480px) {
            .pagination a,
            .pagination span {
                padding: 5px 10px;
                font-size: 13px;
            }
            
            .breadcrumbs {
                font-size: 13px;
                padding: 15px 15px; 
            }
        }

        /* 文章页样式 */
        .article-container {
            max-width: 1400px;
            margin: 20px auto;
            padding: 0 20px;
            display: flex;
            gap: 10px;
        }

        .article-content {
            flex: 3;
            background: white;
            border-radius: 12px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.08);
            padding: 20px;
            border: 1px solid #f0f7f0;
        }

        .article-title {
            font-size: 1.6em;
            color: #454745;
            margin-bottom: 15px;
            line-height: 1.3;
        }

        /* 作者时间样式 */
        .article-meta {
            color: #666;
            font-size: 0.9em;
            margin-bottom: 15px;
            padding-bottom: 15px; 
            border-bottom: 2px solid #e8f5e9; 
        }

        .article-body {
            margin-bottom: 30px;
            line-height: 1.8;
        }

        .article-body p {
            margin-bottom: 5px;
            text-align: justify;
        }

        .article-body img {
            max-width: 100%;
            height: auto;
            border-radius: 8px;
            box-shadow: 0 3px 15px rgba(0,0,0,0.1);
            border: 1px solid #f0f7f0;
        }

        /* 上下篇导航 */
        .article-navigation {
            display: flex;
            justify-content: space-between;
            margin: 20px 0;
            padding: 15px 0;
            border-top: 1px solid #e8f5e9;
            border-bottom: 1px solid #e8f5e9;
        }

        .article-nav-link {
            color: #4caf50;
            text-decoration: none;
            transition: all 0.3s ease;
            font-weight: 500;
        }

        .article-nav-link:hover {
            color: #2e7d32;
            text-decoration: underline;
        }

        /* 相关推荐 */
        .related-posts {
            margin-top: 20px;
            padding: 0;
            background-color: transparent;
            border: none;
        }

        .related-title {
            font-size: 1.5em;
            color: #2e7d32;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid #e8f5e9;
        }

        .related-list {
            list-style: none;
        }

        /* 相关推荐列表项 */
        .related-item {
            margin-bottom: 15px;
            padding-bottom: 15px;
            border-bottom: 1px dashed #e8f5e9;
            border-left: 2px solid transparent;
            transition: all 0.3s ease;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 5px; 
        }

        .related-item:hover {
            border-left: 2px solid #4caf50;
            padding-left: 15px;
        }

        .related-item:last-child {
            border-bottom: none;
        }

        .related-item a {
            color: #333;
            text-decoration: none;
            transition: color 0.3s ease;
            font-weight: 500;
            flex: 1; 
            min-width: 150px; 
        }

        .related-item a:hover {
            color: #4caf50;
        }

        .related-meta {
            color: #666;
            font-size: 0.85em;
            margin-top: 0; 
            white-space: nowrap; 
        }

        .sidebar {
            flex: 1;
        }

        .sidebar-widget {
            background: white;
            border-radius: 12px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.08);
            padding: 10px;
            margin-bottom: 20px;
            border: 1px solid #f0f7f0;
        }

        .sidebar-title {
            font-size: 1.5em;
            color: #2e7d32;
            margin: 0 0 20px 0;
            padding-bottom: 10px;
            border-bottom: 2px solid #e8f5e9;
        }

        .sidebar-popular {
            column-count: 2;
            column-gap: 10px;
        }

        /* 热门推荐卡片样式 */
        .sidebar .masonry-item {
            border: 1px solid #f0f7f0;
            box-shadow: 0 3px 10px rgba(0,0,0,0.05);
        }

        @media (max-width: 768px) {
            .article-container {
                flex-direction: column;
                padding: 0 15px;
                gap: 20px;
            }

            .article-content {
                padding: 15px 10px;
            }

            .article-title {
                font-size: 1.5em;
            }

            .article-navigation {
                flex-direction: column;
                gap: 15px;
            }

            .sidebar-widget {
                padding: 15px 10px;
            }
			
            .related-item a {
                min-width: auto;
            }
        }
		
        .article-content, .sidebar-widget {
            transition: box-shadow 0.3s ease;
        }

        .article-content:hover, .sidebar-widget:hover {
            box-shadow: 0 8px 30px rgba(0,0,0,0.12);
        }
		
        .article-content, .sidebar-widget, .masonry-item {
            border-radius: 10px;
        }