/*
Theme Name: Favorites知识库-LaoLuo
Theme URI: https://130510.com
Author: Your Name
Author URI: https://130510.com
Description: A custom WordPress theme
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: f-130510
Tags: custom-background, threaded-comments, translation-ready
*/

:root {
    --primary-color: #0073aa;
    --secondary-color: #23282d;
    --text-color: #333;
    --light-gray: #f0f0f0;
    --border-color: #ddd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Microsoft YaHei", "微软雅黑", "PingFang SC", "Helvetica Neue", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

/* 首页指定分类卡片悬停效果 */
.card.site-card-hover {
    position: relative;
    overflow: visible !important;
}

.card.site-card-hover .site-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(128, 128, 128, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    border-radius: 10px;
    z-index: 9999;
    pointer-events: none;
}

.card.site-card-hover:hover .site-card-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.site-card-buttons {
    display: flex;
    gap: 10px;
    transform: translateY(10px);
    transition: transform 0.3s ease;
    z-index: 10000;
}

.card.site-card-hover:hover .site-card-buttons {
    transform: translateY(0);
}

.site-card-buttons .btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 20px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.site-card-buttons .btn:hover {
    transform: scale(1.05);
}
