/*
Name: 主题喵 ZTMiao
Version: 1.0.0
Description: 复刻版主题喵风格
Author: YourName
*/

/* --- 全局基础样式 --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif; background-color: #ffffff; color: #333; line-height: 1.6; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- 顶部导航栏 --- */
.header { background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,0.06); position: sticky; top: 0; z-index: 999; height: 60px; display: flex; align-items: center; }
.header-inner { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 15px; display: flex; justify-content: space-between; align-items: center; }
.header-logo { width: 200px;border-radius: 50%; font-size: 22px; font-weight: bold; color: #007bff; display: flex; align-items: center; gap: 8px; }
.header-logo img {max-width: 100%;}

/* 电脑端导航 */
.nav-menu { display: flex; gap: 30px;align-items: center; }
.nav-menu li a { font-size: 15px; font-weight: 500; color: #444; }
.nav-menu li a:hover { color: #007bff; }

/* 汉堡菜单按钮 (默认隐藏) */
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 5px; }
.hamburger span { display: block; width: 24px; height: 2px; background: #333; transition: 0.3s; }

/* --- 手机端侧边栏 (抽屉效果) --- */
.mobile-sidebar { position: fixed; top: 0; left: -280px; width: 280px; height: 100%; background: #fff; z-index: 1001; padding: 20px; box-shadow: 2px 0 10px rgba(0,0,0,0.1); transition: left 0.3s ease-in-out; overflow-y: auto; }
.mobile-sidebar.active { left: 0; }
.mobile-sidebar .logo { margin-bottom: 30px; }
.mobile-nav li { border-bottom: 1px solid #f0f0f0; }
.mobile-nav li a { display: block; padding: 15px 0; font-size: 16px; color: #555; }

/* 遮罩层 */
.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1000; opacity: 0; visibility: hidden; transition: 0.3s; }
.overlay.active { opacity: 1; visibility: visible; }

/* --- 公告栏 --- */
.announcement { max-width: 1200px; margin: 20px auto; 

background: #00c3ff;  /* fallback for old browsers */
background: -webkit-linear-gradient(to right, #ffff1c, #00c3ff);  /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to right, #ffff1c, #00c3ff); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

 padding: 15px 20px; border-radius: 8px; font-size: 14px; color: #666; border-left: 4px solid #007bff; display: flex; align-items: center; }
.announcement i { margin-right: 10px; color: #007bff; }



    /* 外层容器样式 */
    .search-input-wrapper {
        display: flex;
        align-items: center;
        width: 100%;
        background-color: #f5f7fa;
        border-radius: 5px; /* 圆角胶囊造型 */
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* 柔和的阴影 */
        transition: all 0.3s ease;
        border: 1px solid #cfcfcf;
    }

    /* 鼠标悬停或聚焦时的外框动效 */
    .search-input-wrapper:hover,
    .search-input-wrapper:focus-within {
        background-color: #fff;
        box-shadow: 0 6px 16px rgba(64, 158, 255, 0.2);
        border-color: #409eff; /* 聚焦时显示蓝色边框 */
    }

    /* 输入框样式 */
    .search-input {
        flex: 1; /* 自动撑开剩余空间 */
        border: none;
        background: transparent;
        padding: 1px;
        font-size: 15px;
        color: #333;
        outline: none; /* 去掉默认的黑框轮廓 */
    }

    .search-input::placeholder {
        color: #aaa;
    }

    /* 搜索按钮样式 */
    .search-submit {
        
        background: #56CCF2;   /* 主色调 */
background: -webkit-linear-gradient(to right, #2F80ED, #56CCF2);  /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to right, #2F80ED, #56CCF2); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

        
        
        color: white;
        border: none;
        border-radius:  0 5px 5px 1px;
        padding: 10px 10px;
        font-size: 14px;
        cursor: pointer;
        transition: background-color 0.3s ease;
        font-weight: 500;
    }

    .search-submit:hover {
        background-color: #66b1ff; /* 悬停时变浅 */
    }

    .search-submit:active {
        background-color: #3a8ee6; /* 点击时变深 */
    }






/* --- 主体内容区 --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px 40px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin: 30px 0 20px; padding-left: 12px; border-left: 4px solid #007bff; }
.section-header h2 { font-size: 20px; font-weight: 600; }
.section-header .more { font-size: 14px; color: #999; }

/* 卡片网格布局 */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;}
.card {border: 1px solid #e1e1e1; background: #fff; border-radius: 5px; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; cursor: pointer; }
.card:hover { transform: translateY(-6px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.card-img { width: 100%; height: 170px; background: #eee; object-fit: cover; }
.card-body { padding: 15px; }
.card-title { font-size: 16px; margin-bottom: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.card-info { display: flex; justify-content: space-between; font-size: 12px; color: #999; }

.post-content { padding: 0px; }


.post-content h1, .post-content h2, .post-content h3, .post-content h4, .post-content h5, .post-content h6 {
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom:10px;
}
.post-content h1::before, .post-content h2::before, .post-content h3::before, .post-content h4::before, .post-content h5::before, .post-content h6::before {
    content: '';
    display: block;
    background: #28a745;
    width: 5px;
    height: 22px;
    border-radius: 2.5px;
}

.ad-tag {
    position: absolute;
    top: 0;
    right: 0;
    background: #ff0000;  /* fallback for old browsers */
background: -webkit-linear-gradient(to right, #fdcf58, #ff0000);  /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to right, #fdcf58, #ff0000); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
      z-index: 2;

    color: #fff;
    font-size: 10px;
    padding: 1px 1px;
    border-bottom-left-radius: 5px;
    font-weight: bold;
}

/* --- 页脚 --- */
.footer { background: #2c3e50; color: #bdc3c7; text-align: center; padding: 30px 0; font-size: 14px; margin-top: 40px; }

/* --- 分页导航样式 --- */
.page-navigator {
    display: flex;
    justify-content: center; /* 居中显示 */
    align-items: center;
    gap: 10px; /* 按钮之间的间距 */
    margin: 40px 0; /* 上下外边距 */
    padding: 0;
    list-style: none;
}

.page-navigator li a,
.page-navigator li span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    background-color: #fff;
    color: #555;
    border-radius: 6px; /* 圆角 */
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* 鼠标悬停效果 */
.page-navigator li a:hover {
    background-color: #007bff; /* 配合你主题的蓝色主色调 */
    color: #fff;
    transform: translateY(-2px); /* 微微上浮 */
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

/* 当前页码高亮 */
.page-navigator li .current {
    background-color: #007bff;
    color: #fff;
    cursor: default;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

/* 省略号样式 */
.page-navigator li .extend {
    background: transparent;
    box-shadow: none;
    color: #999;
    cursor: default;
}

/* 移动端适配 */
@media (max-width: 480px) {
    .page-navigator {
        gap: 6px;
        margin: 30px 0;
    }
    .page-navigator li a,
    .page-navigator li span {
        min-width: 34px;
        height: 34px;
        font-size: 13px;
        padding: 0 8px;
    }
}


/* --- 分页导航 - 基础样式优化 --- */
.page-navigator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap; /* 防止极端情况下溢出 */
}

.page-navigator li a,
.page-navigator li span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background-color: #fff;
    color: #555;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-navigator li a:hover {
    background-color: #007bff;
    color: #fff;
    transform: translateY(-2px);
}

.page-navigator li .current {
    background-color: #007bff;
    color: #fff;
    cursor: default;
}

/* Typecho 输出的省略号 class 通常为 extend */
.page-navigator li .extend {
    background: transparent;
    box-shadow: none;
    color: #ccc;
    cursor: default;
}

/* --- 移动端专属优化 --- */
@media (max-width: 768px) {
    .page-navigator {
        gap: 6px;
        margin: 30px 0;
    }
    
    /* 在手机端直接隐藏省略号，界面更清爽 */
    .page-navigator li .extend {
        display: none !important;
    }

    .page-navigator li a,
    .page-navigator li span {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
        padding: 0 8px;
    }
}






/* --- 响应式适配 --- */
@media (max-width: 992px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { 
    .nav-menu { display: none; }
    .hamburger { display: flex; }
    .grid { grid-template-columns: repeat(2, 1fr); } 
    .section-header h2 { font-size: 18px; } 
}
@media (max-width: 480px) { 
    .grid { grid-template-columns: repeat(2, 1fr); } /*.grid { grid-template-columns: 1fr; } */
    .announcement { margin: 15px; font-size: 13px; } 
}