@charset "UTF-8";
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "Microsoft YaHei", sans-serif;
        }
        
        body {
            background-color: #f5f5f5;
            color: #333;
            line-height: 1.6;
        }
        
        a {
            text-decoration: none;
            color: inherit;
        }
        
        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 10px;
        }
        
        /* 头部导航 */
        header {
            background-color: #FF8C00; 
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            position: sticky;
            top: 0;
            z-index: 100;
        }
        
        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 0;
        }
        
        .logo {
            font-size: 26px;
            font-weight: bold;
            color: white; 
        }
        
        .nav-links {
            display: flex;
            list-style: none;
        }
        
        .nav-links li {
            margin-left: 25px;
        }
        
        .nav-links a {
            font-weight: 500;
            color: white; 
            transition: color 0.3s;
            padding: 5px 10px;
            border-radius: 3px;
        }
        
        .nav-links a:hover {
            background-color: rgba(255, 255, 255, 0.2); 
        }
        
        .mobile-menu-btn {
            display: none;
            width: 30px;
            height: 30px;
            cursor: pointer;
            background-repeat: no-repeat;
            background-position: center;
            background-size: contain;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M3 12H21'/%3E%3Cpath d='M3 6H21'/%3E%3Cpath d='M3 18H21'/%3E%3C/svg%3E");
        }
        
        .mobile-menu-btn.active {
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6L6 18'/%3E%3Cpath d='M6 6L18 18'/%3E%3C/svg%3E");
        }
        
        /* 搜索区域 */
        .search-section {
            background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                        url('https://images.unsplash.com/photo-1519681393784-d120267933ba?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
            background-size: cover;
            background-position: center;
            padding: 80px 0;
            text-align: center;
            color: white;
        }
        
        .search-section h1 {
            font-size: 36px;
            margin-bottom: 20px;
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
        }
        
        .search-box {
            max-width: 600px;
            margin: 0 auto;
            display: flex;
        }
        
        .search-box input {
            flex: 1;
            padding: 12px 15px;
            border: none;
            border-radius: 4px 0 0 4px;
            font-size: 16px;
        }
        
        .search-box button {
            background-color: #FF8C00;
            color: white;
            border: none;
            padding: 0 20px;
            border-radius: 0 4px 4px 0;
            cursor: pointer;
            font-size: 16px;
            transition: background-color 0.3s;
        }
        
        .search-box button:hover {
            background-color: #e67e00;
        }
        
        /* 瀑布流图片区域 */
        .gallery-section {
            padding: 20px 0;
        }
        
        .section-title {
            text-align: center;
            margin-bottom: 30px;
            color: #333;
            position: relative;
        }
        
        .section-title:after {
            content: '';
            display: block;
            width: 50px;
            height: 3px;
            background-color: #FF8C00;
            margin: 10px auto;
        }
        
        .masonry-grid {
            column-count: 4;
            column-gap: 10px;
        }
        
        .masonry-item {
            break-inside: avoid;
            margin-bottom: 15px;
            background-color: white;
            border-radius: 5px;
            overflow: hidden;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s, box-shadow 0.3s;
        }
        
        .masonry-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
        }
        
        .masonry-item img {
            width: 100%;
            height: auto;
            display: block;
        }
        
        .masonry-item h3 {
            padding: 10px;
            font-size: 16px;
            font-weight: 600;
            text-align: center;
        }
        
        /* 友情链接区域 */
        .friend-links {
            background-color: white;
            padding: 15px 0;
            margin: 15px 0;
            border-radius: 5px;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
        }
        
        .friend-links-container {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 15px;
        }
        
        .friend-links a {
            color: #666;
            transition: color 0.3s;
        }
        
        .friend-links a:hover {
            color: #FF8C00;
        }
        
        /* 页脚 */
        footer {
            background-color: #e78d1f;
            color: #fff;
            padding: 20px 0;
            text-align: center;
        }
        
        footer a {
            color: #fff;
        }
        
        /* 响应式设计 */
        @media (max-width: 992px) {
            .masonry-grid {
                column-count: 3;
            }
        }
        
        @media (max-width: 768px) {
            .mobile-menu-btn {
                display: block;
            }
            
            .nav-links {
                display: none;
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                background-color: #FF8C00; 
                flex-direction: column;
                box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
            }
            
            .nav-links.active {
                display: flex;
            }
            
            .nav-links li {
                margin: 0;
                border-bottom: 1px solid rgba(255, 255, 255, 0.2); 
            }
            
            .nav-links a {
                display: block;
                padding: 15px;
                color: white;
            }
            
            .masonry-grid {
                column-count: 2;
            }
            
            .search-section h1 {
                font-size: 28px;
            }
        }
        
        @media (max-width: 480px) {
            .masonry-grid {
                column-count: 2;
            }
            
            .search-section h1 {
                font-size: 24px;
            }
        }

        /* 面包屑导航样式 */
        .breadcrumbs {
            padding: 15px 0;
            background-color: white;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        }
        
        .breadcrumbs-container {
            display: flex;
            flex-wrap: wrap;
            font-size: 14px;
            color: #666;
        }
        
        .breadcrumbs a {
            color: #f38804;
            transition: color 0.3s;
        }
        
        .breadcrumbs a:hover {
            color: #FF8C00;
        }
        
        .breadcrumbs span.separator {
            margin: 0 8px;
            color: #ccc;
        }
        
        .breadcrumbs span.current {
            color: #333;
            font-weight: 500;
        }
        
        /* 分页导航样式 */
        .pagination-section {
            padding: 20px 0;
            background-color: white;
            margin: 15px 0;
            border-radius: 5px;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
        }
        
        .pagination {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 8px;
            list-style: none;
        }
        
        .pagination .page-numbers {
            display: inline-block;
            padding: 6px 12px;
            border-radius: 4px;
            color: #333;
            background-color: #f5f5f5;
            transition: all 0.3s;
        }
        
        .pagination .page-numbers:hover {
            background-color: #FF8C00;
            color: white;
        }
        
        .pagination .page-numbers.current {
            background-color: #FF8C00;
            color: white;
            font-weight: bold;
        }

        /* 文章页样式 */
        .article-container {
            padding: 15px 0;
        }
        
        .content-layout {
            display: flex;
            gap: 10px;
        }
        
        .article-main {
            flex: 3;
            background-color: white;
            border-radius: 5px;
            padding: 20px;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
        }
        
        .article-title {
            font-size: 28px;
            margin-bottom: 20px;
            color: #333;
            line-height: 1.4;
        }
        
        .article-meta {
            color: #666;
            font-size: 14px;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid #eee;
        }
        
        .article-meta span {
            margin-right: 15px;
        }
        
        .article-content {
            margin-bottom: 30px;
        }
        
        .article-content p {
            margin-bottom: 18px;
            line-height: 1.8;
        }
        
        .article-content img {
            max-width: 100%;
            height: auto;
            border-radius: 5px;
        }
        
        .post-nav {
            display: flex;
            justify-content: space-between;
            padding: 20px 0;
            margin: 20px 0;
            border-top: 1px solid #eee;
            border-bottom: 1px solid #eee;
        }
        
        .post-nav a {
            color: #333;
            transition: color 0.3s;
        }
        
        .post-nav a:hover {
            color: #FF8C00;
        }
        
        .prev-post {
            text-align: left;
        }
        
        .next-post {
            text-align: right;
        }
        
        .related-posts {
            margin-top: 30px;
        }
        
        .related-title {
            font-size: 20px;
            margin-bottom: 15px;
            color: #333;
            padding-bottom: 10px;
            border-bottom: 2px solid #FF8C00;
            display: inline-block;
        }
        
        .related-list {
            list-style: none;
        }
        
        /* 相关推荐样式*/
        .related-list li {
            margin-bottom: 12px;
            padding-bottom: 12px;
            border-bottom: 1px dashed #eee;
            display: flex;
            justify-content: space-between;
            align-items: flex-start; 
            flex-wrap: wrap;
            gap: 5px; 
        }
        
        .related-list li:last-child {
            border-bottom: none;
        }
        
        .related-link {
            color: #333;
            transition: color 0.3s;
            min-width: 0; 
            flex: 1; 
        }
        
        .related-link:hover {
            color: #FF8C00;
            text-decoration: underline;
        }
        
        .related-date {
            font-size: 12px;
            color: #999;
            white-space: nowrap; 
            align-self: center; 
        }
        
        /* 手机端相关推荐样式 */
        @media (max-width: 768px) {
            .related-list li {
                align-items: flex-start;
            }
            
            .related-date {
                align-self: flex-end;
                margin-top: 2px;
            }
            
            .related-link {
                flex: none;
                width: 100%;
            }
            
            .post-nav {
                flex-direction: column;
                gap: 10px;
            }
            
            .prev-post, .next-post {
                text-align: left;
            }
        .article-main {
            flex: 3;
            background-color: white;
            border-radius: 5px;
            padding: 10px;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
        }
        }
        
        @media (min-width: 769px) {
            .related-link {
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
                overflow: hidden;
                line-height: 1.5;
                max-height: 3em; 
            }
        }
        
        .sidebar {
            flex: 1;
        }
        
        .sidebar-block {
            background-color: white;
            border-radius: 5px;
            padding: 10px;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
            margin-bottom: 20px;
        }
        
        .sidebar-title {
            font-size: 20px;
            margin-bottom: 15px;
            color: #333;
            padding-bottom: 10px;
            border-bottom: 2px solid #FF8C00;
            display: inline-block;
        }
        
        .hot {
            column-count: 2;
            column-gap: 10px;
        }
        
        @media (max-width: 768px) {
            .content-layout {
                flex-direction: column;
            }
            
            .article-title {
                font-size: 24px;
            }
        }