/*
Theme Name: 小火龙CMS
Theme URI: https://kntai.com
Author: Mfweb
Author URI: https://kntai.com
Description: 小火龙CMS
Version: 1.0.0
*/


/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7f9;
}

.site-content {
    height: fit-content;
    min-height: calc(100vh - 128px - 94px);
}

a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #2980b9;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
.site-header-nav {
    background: linear-gradient(180deg, #FFB895 0%, #FFFFFF00 100%);
    position: sticky;
    height: 94px;
}

.site-header-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    display: flex;
    align-items: center;
    flex-direction: row;
}

.site-logo {
    width: 32px;
}

.site-logo-text {
    font-size: 32px;
    font-weight: bold;
    color: #1f1f39;
    margin-left: 10px;
    font-family: 'Noto Sans HK', sans-serif;
}

.main-navigation .primary-menu {
    display: flex;
    list-style: none;
}

.main-navigation li {
    margin-left: 25px;
    position: relative;
}

.main-navigation a {
    color: #333;
    font-weight: 500;
}

.main-navigation a:hover {
    color: #3498db;
}

.header-actions {
    display: flex;
    align-items: center;
}

.search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: #666;
}

.search-toggle:hover {
    background-color: #e0e0e0;
    color: #333;
}

.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 999;
    padding: 50px 0;
}

.search-modal.active {
    display: block;
}

.search-modal .container {
    max-width: 600px;
}

.search-form {
    display: flex;
    height: 50px;
}

.search-form input[type="search"] {
    flex: 1;
    height: 100%;
    border: none;
    border-radius: 4px 0 0 4px;
    padding: 0 15px;
    font-size: 16px;
}

.search-form button {
    width: 100px;
    height: 100%;
    border: none;
    border-radius: 0 4px 4px 0;
    background-color: #3498db;
    color: #fff;
    font-weight: 500;
    cursor: pointer;
}

/* 主内容区域样式 */
.main-content {
    padding: 40px 0;
    padding-top: 0px;
}

.site-header {
    margin-bottom: 30px;
    text-align: center;
}

.site-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.site-description {
    color: #666;
    font-size: 18px;
}

/* 分类导航样式 */
/* 引入Font Awesome图标库 */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');

.category-tabs {
    background-color: #fff;
    overflow: hidden;
    padding-left: 35px;
    padding-right: 35px;
}

.category-tabs-inner {
    display: flex;
    justify-content: space-between;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
}

.category-tabs-inner::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Edge */
}

.category-tab {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 20px;
    background-color: #fff;
    color: #858597;
    text-align: center;
    white-space: nowrap;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    font-weight: medium;
    font-family: 'Noto Sans SC'
}

.category-tab:hover {
    color: #1f1f39;
    background-color: #f8f9fa;
}

.category-tab.active {
    color: #1F1F39;
    border-bottom: 4px solid #3D5CFF;
    font-size: 1.3rem;
    font-weight: middle;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .category-tab {
        font-size: 1.2rem;
    }

    .category-tab i {
        font-size: 1.2rem;
    }
}

/* 文章卡片样式 */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 10px;
    margin-bottom: 40px;
}

.post-card {
    background-color: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0px 8px 12px 0px #B8B8D24C;
    transition: transform 0.3s, box-shadow 0.3s;
    padding: 10px;
    ;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.post-thumbnail {
    height: 180px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-meta {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    font-size: 14px;
    width: 100%;
    color: #666;
    gap: 10px;
}

.post-author {
    display: flex;
    align-items: center;
}

.post-author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 5px;
}

.post-tags {
    display: flex;
    flex-direction: row;
    align-items: center;
    overflow: hidden;
    width: 100%;
    padding-left: 10px;
    padding-bottom: 5px;
}

.entry-post-tags {
    display: flex;
    flex-direction: row;
    align-items: center;
    overflow: hidden;
    width: 100%;
    padding-bottom: 5px;
}

.post-tags a {
    display: inline-block;
    margin-right: 5px;
}

.post-title {
    padding: 0 10px 10px;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.post-title a {
    color: #333;
}

.post-title a:hover {
    color: #3498db;
}

.post-excerpt {
    padding: 0 15px 15px;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.post-read-more-link {
    flex: 1;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
}

.read-more {
    background: linear-gradient(90deg, #3D5CFF 0%, #9BABFF 100%);
    border-radius: 1000px;
    color: #ffffff;
    font-size: 0.8rem;
    padding-left: 8px;
    padding-right: 8px;
    padding-top: 2px;
    padding-bottom: 2px;
}

.read-more:hover {
    background-color: #3498db;
    color: #fff;
}

.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 0;
    color: #666;
}

/* 分页样式 */
.pagination {
    text-align: center;
    margin-bottom: 30px;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    border-radius: 4px;
    background-color: #fff;
    color: #666;
    border: 1px solid #e0e0e0;
}

.pagination .current {
    background-color: #3498db;
    color: #fff;
    border-color: #3498db;
}

.pagination .page-numbers:hover:not(.current) {
    background-color: #f5f5f5;
}

/* 页脚样式 */
.site-footer {
    background-color: #1F1D1C;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 128px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-widget {
    margin-bottom: 20px;
}

.widget-title {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.widget-title:after {
    content: '';
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #3498db;
}

.footer-categories {
    list-style: none;
}

.footer-categories li {
    margin-bottom: 10px;
}

.footer-categories a {
    color: #bdc3c7;
}

.footer-categories a:hover {
    color: #3498db;
}

.cat-count {
    color: #95a5a6;
}

.contact-info {
    list-style: none;
}

.contact-info li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 10px;
    color: #3498db;
}

.social-links {
    display: flex;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    margin-right: 10px;
    color: #ecf0f1;
}

.social-links a:hover {
    background-color: #3498db;
    color: #fff;
}

.footer-bottom {
    text-align: center;
    color: #95a5a6;
    font-size: 14px;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .site-header-nav .container {
        flex-wrap: wrap;
        height: auto;
        padding: 15px;
    }

    .main-navigation {
        order: 3;
        width: 100%;
        margin-top: 15px;
    }

    .main-navigation .primary-menu {
        flex-direction: column;
    }

    .main-navigation li {
        margin: 5px 0;
    }

    .posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        padding: 10px;
    }

    .site-title {
        font-size: 28px;
    }

    .site-description {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }

    .pagination .page-numbers {
        padding: 6px 12px;
        margin: 0 2px;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
    }
}

/* 置顶标签样式 */
.sticky-label {
    display: inline-block;
    padding: 2px 8px;
    margin-right: 8px;
    font-size: 12px;
    border-radius: 12px;
    color: #fff;
    vertical-align: middle;
}

.global-sticky {
    background-color: #ff4c4c;
    /* 红色 - 全局置顶 */
}

.category-sticky {
    background-color: #ff9800;
    /* 橙色 - 分类置顶 */
}

.tag-sticky {
    background-color: #1C53EB;
    /* 蓝色*/
}

.single-post .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.single-post .content-area {
    max-width: 800px;
    margin: 0 auto;
}

.entry-category {
    color: #1F1F39;
    font-family: Noto Sans SC;
    font-weight: medium;
    font-size: 1.2rem;
    line-height: normal;
    letter-spacing: 0px;
    text-align: left;
    border-left: 4px solid #3D5CFF;
    padding-left: 10px;
}

.entry-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #1F1F39;
    font-family: "Noto Sans SC";
}

.entry-meta {
    font-size: 0.9em;
    margin-bottom: 5px;
    color: #666;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.entry-meta span {
    margin-right: 15px;
}

.post-thumbnail {
    margin-bottom: 25px;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.entry-content {
    line-height: 1.8;
    font-size: 1.1em;
    color: #333;
    margin-bottom: 30px;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-footer {
    padding-top: 20px;
    border-top: 1px solid #eee;
    margin-top: 30px;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.tags-links {
    margin-bottom: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .entry-title {
        font-size: 2em;
    }

    .post-navigation {
        flex-direction: column;
    }

    .nav-previous, .nav-next {
        margin-bottom: 10px;
    }
}