/*
Theme Name: 捡实惠模板 (JianShiHui Template)
Theme URI: https://jcrs.cn
Author: 捡实惠团队 (JianShiHui Team)
Author URI: https://jcrs.cn
Description: 捡实惠淘客返利模板 - 聚合淘宝/京东/拼多多优惠返利，参照大麦网风格设计 (JianShiHui Affiliate Rebate Template - Aggregates Taobao/JD/Pinduoduo deals with rebates, designed in Damai style)
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jianshihui-template
Tags: e-commerce, affiliate, rebate, taobao, jd, pinduoduo, deals

捡实惠模板 - 专为淘客返利网站设计，干净清爽，便于呈现各类导购文章和商品
(JianShiHui Template - Designed for affiliate rebate websites, clean and fresh, perfect for showcasing shopping guides and products)
*/

/* 基础样式重置 */
* {
    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;
    background-color: #f5f5f5;
}

/* 主色调 */
:root {
    --primary-color: #FF6B35;
    --secondary-color: #00A896;
    --accent-color: #F9D423;
    --text-color: #333;
    --light-bg: #f5f5f5;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #e55a2b;
}

/* 商品卡片 */
.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* 页头 */
.site-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* 页脚 */
.site-footer {
    background: #2c3e50;
    color: #fff;
    padding: 40px 0;
    margin-top: 60px;
}

/* 基础样式 */
.top-bar { background: #f5f5f5; border-bottom: 1px solid #e5e5e5; font-size: 13px; }
.top-bar-inner { max-width: 1200px; margin: 0 auto; padding: 8px 20px; display: flex; justify-content: space-between; align-items: center; }
.top-bar a { color: #666; text-decoration: none; margin-left: 20px; }
.top-bar a:hover { color: #ff4d4f; }

.site-header { background: #fff; border-bottom: 1px solid #e5e5e5; }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 15px 20px; display: flex; align-items: center; gap: 40px; }
.site-logo { font-size: 28px; font-weight: bold; color: #ff4d4f; text-decoration: none; }
.header-search { flex: 1; max-width: 500px; }
.search-form { display: flex; border: 2px solid #ff4d4f; border-radius: 50px; overflow: hidden; }
.search-input { flex: 1; padding: 12px 20px; border: none; font-size: 14px; outline: none; }
.search-btn { padding: 12px 30px; background: #ff4d4f; color: #fff; border: none; cursor: pointer; font-size: 14px; }

.main-nav { background: #fff; border-bottom: 1px solid #e5e5e5; }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; gap: 40px; }
.nav-item { padding: 15px 0; color: #333; text-decoration: none; font-size: 15px; position: relative; }
.nav-item:hover, .nav-item.active { color: #ff4d4f; }
.nav-item.active::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: #ff4d4f; }

.site-footer { background: #2c3e50; color: #fff; padding: 50px 0 30px; margin-top: 60px; text-align: center; }
.footer-links { margin-bottom: 30px; }
.footer-links a { color: #fff; text-decoration: none; margin: 0 20px; opacity: 0.8; }
.footer-links a:hover { opacity: 1; }
.footer-copyright { opacity: 0.6; font-size: 13px; }

/* AI万能搜侧边栏搜索框 */
.ai-search-widget {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}
.ai-search-widget .widget-title {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.3);
}
.ai-search-desc {
    font-size: 13px;
    margin-bottom: 15px;
    opacity: 0.9;
}
.ai-search-form {
    margin-bottom: 15px;
}
.ai-search-input {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 10px;
}
.ai-search-btn {
    width: 100%;
    padding: 12px;
    background: #ff4d4f;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}
.ai-search-btn:hover {
    background: #ff7875;
}
.ai-search-tips {
    font-size: 12px;
    opacity: 0.9;
}
.ai-search-tips span {
    display: block;
    margin-bottom: 8px;
}
.ai-search-tips a {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    margin: 0 5px 5px 0;
    font-size: 12px;
}
.ai-search-tips a:hover {
    background: rgba(255,255,255,0.3);
}
