/*
Theme Name: 盘古主题
Theme URI: https://www.ceotheme.com/
Author: 盘古主题
Author URI: https://www.ceotheme.com/
Description: 一个现代化的WordPress主题，具有强大的主题配置功能，适合企业和个人博客使用
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pangu-theme
Tags: blog, custom-menu, custom-logo, editor-style, featured-images, flexible-header, responsive-design
*/

/**
 * 目录结构
 * 
 * 1. Reset - 重置样式
 * 2. Base - 基础样式
 * 3. Typography - 排版
 * 4. Utilities - 工具类
 * 
 * 其他样式文件：
 * - assets/css/layout.css - 布局样式
 * - assets/css/slider.css - 幻灯片样式
 * - assets/css/home.css - 首页样式
 * - assets/css/posts.css - 文章样式
 * - assets/css/sidebar.css - 侧边栏样式
 */

/* ==========================================================================
   1. Reset
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::before,
*::after {
    box-sizing: inherit;
}

/* ==========================================================================
   2. Base
   ========================================================================== */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* ==========================================================================
   3. Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
}

/* ==========================================================================
   4. Utilities
   ========================================================================== */

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* WordPress Core Classes */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    text-align: center;
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.5rem;
}

.sticky {
    /* 置顶文章样式 */
}

.bypostauthor {
    /* 作者评论样式 */
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
}
