/*
Theme Name: Rainbow AIoT
Theme URI: https://example.com/rainbow-aiot
Author: Your Name
Author URI: https://example.com
Description: Rainbow AIoT产品官网主题，支持Elementor页面构建器，自动检测Elementor页面并优化显示
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rainbow-aiot
Tags: elementor-ready, one-column, custom-logo, custom-menu, featured-images

Rainbow AIoT WordPress Theme
Copyright (C) 2024

== 描述 ==
Rainbow AIoT产品官网主题，专为展示IoT解决方案设计。
完全兼容Elementor页面构建器，自动检测Elementor编辑页面，避免重复显示主题头部和页脚。

== 功能特性 ==
- Elementor完全兼容
- 自动检测Elementor页面
- 智能隐藏重复头部页脚
- PHP 5.6+兼容
- 响应式设计
- 自定义Logo支持
- 自定义菜单支持

== 安装 ==
1. 上传主题文件夹到 /wp-content/themes/ 目录
2. 在WordPress后台 → 外观 → 主题 中激活本主题
3. 如需使用Elementor，请先安装Elementor插件
4. 创建新页面时选择"使用Elementor编辑"
5. 主题会自动隐藏主题头部页脚，只显示Elementor内容

== Elementor兼容性 ==
本主题已针对Elementor优化：
- 包含the_content()函数，Elementor可以正常工作
- 自动检测Elementor编辑模式
- 可选使用"Elementor Blank - 无头部页脚"模板
*/

/* =主题样式从这里开始
-------------------------------------------------------------- */

/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 0;
}

.site-branding {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.site-title {
    font-size: 1.5rem;
    margin: 0;
}

.main-navigation {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
}

.site-footer {
    background: #f5f5f5;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.site-info {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Elementor页面优化 */
.elementor-page .site-header,
.elementor-page .site-footer {
    display: none;
}

/* 页面内容区域 */
.content-area {
    width: 100%;
}

.entry-content {
    width: 100%;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .site-header {
        padding: 0.5rem 0;
    }

    .site-title {
        font-size: 1.2rem;
    }
}
