/*
Theme Name: 宠物工具箱
Theme URI: https://chongwugj.com
Description: 专为宠物工具网站设计的WordPress主题，内置广告位
Version: 1.0
Author: 大管家
*/

/* 基础样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f5;
}

/* 头部 */
.site-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 0;
}

/* 广告位样式 */
.ad-banner {
    background: #fff3cd;
    border: 2px dashed #ffc107;
    padding: 15px;
    text-align: center;
    margin: 15px 0;
    border-radius: 8px;
    color: #856404;
}

.ad-sidebar {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    min-height: 250px;
}

.ad-in-content {
    background: #e7f3ff;
    border: 1px dashed #4a90e2;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
    border-radius: 8px;
}

/* 工具网格布局 */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
}

@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }
}

/* 工具卡片 */
.tool-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

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

/* 导航 */
.main-nav {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 10px 0;
}

.main-nav a {
    color: #333;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 6px;
    transition: all 0.2s;
}

.main-nav a:hover {
    background: #f0f0f0;
    color: #667eea;
}

/* 工具页面嵌入 */
.tool-iframe {
    width: 100%;
    min-height: 800px;
    border: none;
    border-radius: 8px;
}

/* 侧边栏 */
.sidebar-widget {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* 页脚 */
.site-footer {
    background: #333;
    color: white;
    padding: 40px 0;
    margin-top: 40px;
}

/* 响应式 */
@media (max-width: 768px) {
    .tool-iframe {
        min-height: 600px;
    }
}


/* 文章卡片布局 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.article-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.article-card h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
}

.article-card h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.article-card h3 a:hover {
    color: #667eea;
}

.article-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.view-all {
    text-align: center;
    margin-top: 30px;
}

.view-all .btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.view-all .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

@media (max-width: 768px) {
    .article-grid {
        grid-template-columns: 1fr;
    }
}

