/*
Theme Name: 简约网络资讯分享主题（完整版）
Theme URI: https://example.com/
Author: 开发者
Author URI: https://example.com/
Description: 免费简约自适应网络资讯分享主题，WordPress 6.9.4专用，整合倒计时、分页、详情页、面包屑、后台设置功能
Version: 2.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: news-info
Tags: 简约,自适应,两栏布局,资讯,文章分享,分页,自定义字段,倒计时
*/

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}
a {
    color: #2d85ca;
    text-decoration: none;
}
a:hover {
    color: #0056b3;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
.site-header {
    background: #fff;
    padding: 20px 0;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}
.site-title {
    font-size: 24px;
    font-weight: bold;
}

/* 面包屑导航样式 */
.breadcrumb {
    padding: 10px 0;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}
.breadcrumb a {
    color: #666;
}
.breadcrumb a:hover {
    color: #2d85ca;
}
.breadcrumb span {
    margin: 0 5px;
    color: #999;
}

/* 两栏布局样式 */
.content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.main-content {
    flex: 1;
    min-width: 680px;
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}
.sidebar {
    width: 300px;
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

/* 文章列表样式 */
.article-list li {
    list-style: none;
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
}
.article-list li:last-child {
    border-bottom: none;
}
.article-cat {
    color: #0073aa;
    font-weight: bold;
}
.article-date {
    color: #666;
    margin: 0 5px;
}
/* 倒计时样式 */
.article-countdown {
    color: #dc3545;
    margin: 0 5px;
    font-weight: 500;
}
.article-countdown.expired {
    color: #6c757d;
    font-weight: normal;
}

/* 分页样式 */
.pagination {
    margin-top: 30px;
    text-align: center;
}
.pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    color: #333;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: #2d85ca;
    color: #fff;
    border-color: #2d85ca;
}
.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    border-color: #2d85ca;
    color: #2d85ca;
}
.pagination .page-numbers.prev:hover,
.pagination .page-numbers.next:hover {
    background: #2d85ca;
    color: #fff;
}

/* 文章详情页样式 */
.single-post {
    background: #fff;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}
.post-title {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}
.post-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}
/* 详情页倒计时样式 */
.post-countdown {
    display: inline-block;
    color: #dc3545;
    margin-left: 10px;
    font-weight: 500;
}
.post-countdown.expired {
    color: #6c757d;
    font-weight: normal;
}
.post-content {
    line-height: 1.8;
    margin-bottom: 30px;
}
.post-content p {
    margin-bottom: 15px;
}
.post-content img {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
}

/* 移动端适配 */
@media (max-width: 992px) {
    .main-content {
        min-width: 100%;
    }
    .sidebar {
        width: 100%;
    }
    .post-title {
        font-size: 24px;
    }
}

/* 后台设置面板预览样式 */
.theme-setting-preview {
    padding: 10px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-top: 10px;
}