/*
Theme Name: 轻蜂加速器主题
Theme URI: https://qfacc.cn
Author: 阿猎
Author URI: https://qfacc.cn
Description: 轻蜂加速器 WordPress 主题，基于 Tailwind CSS 构建，提供现代化的设计和优秀的用户体验。
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: qingfeng
Tags: modern, responsive, tailwind, blog, business
*/

/*
 * 主要样式在 functions.php 的 qingfeng_custom_css() 函数中定义
 * 此文件主要用于 WordPress 主题识别
 * 
 * 所有自定义 CSS 样式通过 wp_head 钩子加载，确保正确的加载顺序和优先级
 */

/* 基础重置和全局样式 */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: inherit;
}

/* 确保图片响应式 */
img {
    max-width: 100%;
    height: auto;
}

/* 链接样式 */
a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    text-decoration: none;
}

/* 列表样式重置 */
ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 确保容器正确显示 */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* WordPress 内容区域 */
.wp-block-group {
    margin-bottom: 1.5rem;
}

/* 确保 WordPress 编辑器内容正确显示 */
.entry-content {
    word-wrap: break-word;
}

.entry-content img {
    height: auto;
    max-width: 100%;
}

/* 响应式视频嵌入 */
.entry-content iframe,
.entry-content embed,
.entry-content object {
    max-width: 100%;
}

/* 移动端优化 */
@media (max-width: 640px) {
    body {
        font-size: 16px;
    }
    
    /* 移动端按钮触摸优化 */
    button,
    a.button {
        min-height: 44px;
        min-width: 44px;
    }
}

/* 移动端菜单下拉支持 */
.menu-item-has-children.submenu-open > .sub-menu {
    display: block;
    position: static; /* 在移动端，让它在下方自然展开 */
}

