/* 子比主题美化插件 - 主样式文件 */

/* 基础样式 */
:root {
    --primary-color: #3b82f6;
    --secondary-color: #f97316;
    --text-color: #333;
    --link-color: var(--primary-color);
    --link-hover-color: #2563eb;
    --bg-color: #fff;
    --border-color: #e5e7eb;
}

/* 动态色彩方案 */
body.zibibeautify-active {
    --primary-color: <?php 
        $colors = get_option('zibibeautify_colors');
        echo isset($colors['primary_color']) ? $colors['primary_color'] : '#3b82f6';
    ?>;
    --secondary-color: <?php 
        $colors = get_option('zibibeautify_colors');
        echo isset($colors['secondary_color']) ? $colors['secondary_color'] : '#f97316';
    ?>;
}

/* 按钮美化 */
.btn,
.button,
a.button,
input[type="submit"],
input[type="button"],
.comment-form .submit,
.pagination .page-numbers,
.post-like a,
.post-share a,
.post-tags a {
    transition: all 0.3s ease;
    border-radius: 4px;
    padding: 0.5rem 1rem;
}

.btn:hover,
.button:hover,
a.button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.comment-form .submit:hover,
.pagination .page-numbers:hover,
.post-like a:hover,
.post-share a:hover,
.post-tags a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* 导航栏美化 */
.header {
    transition: all 0.3s ease;
}

.header-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* 文章卡片美化 */
.post-card {
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.post-card .post-thumb {
    transition: transform 0.5s ease;
}

.post-card:hover .post-thumb {
    transform: scale(1.05);
}

/* 滚动动画 */
<?php
$animations = get_option('zibibeautify_animations');
if (isset($animations['enable_animations']) && $animations['enable_animations'] === 'yes') :
?>
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
<?php endif; ?>

/* 自定义CSS */
<?php
$custom_css = get_option('zibibeautify_custom_css');
if (isset($custom_css) && !empty($custom_css)) {
    echo $custom_css;
}
?>  