/*
Theme Name: EPLAN 插件中心主题
Theme URI: https://yourwebsite.com/  /* 请替换为您的网站URI */
Author: Your Name /* 请替换为您的姓名或公司名称 */
Author URI: https://yourwebsite.com/ /* 请替换为您的作者URI */
Description: 一个用于EPLAN开发插件下载和管理的WordPress主题，类似JetBrains插件市场。
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: eplan-plugins-theme
Tags: custom-post-type, responsive, two-columns, custom-header, custom-menu

这是EPLAN插件中心主题的主样式表。
它包含了WordPress主题所需的基本信息，以及一些全局的CSS样式。
Tailwind CSS 将通过CDN引入，因此这里主要用于自定义覆盖或少量额外样式。
*/
/* 全局样式，确保字体和背景颜色一致 */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f3f4f6; /* bg-gray-100 */
    color: #374151; /* text-gray-800 */
}

/* 自定义滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

/* 确保图片自适应 */
img {
    max-width: 100%;
    height: auto;
}

/* WordPress特有的对齐类 */
.alignright {
    float: right;
    margin-left: 1.5em;
}

.alignleft {
    float: left;
    margin-right: 1.5em;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

/* 评论样式优化 */
/* 重置WordPress默认的评论列表和表单样式，以便Tailwind CSS可以完全控制 */
.comments-area {
    margin-top: 2rem; /* 增加与上方内容的间距 */
}

.comments-title {
    margin-bottom: 1.5rem; /* 增加标题与评论列表的间距 */
}

.comment-list {
    list-style: none; /* 移除默认列表点 */
    padding: 0;
    margin: 0;
}

    /* 针对每个评论项 */
    .comment-list li {
        margin-bottom: 1.5rem; /* 评论项之间的间距 */
    }

.comment-body {
    display: flex;
    gap: 1rem; /* 头像和内容之间的间距 */
    padding: 1rem;
    background-color: #f9fafb; /* bg-gray-50 */
    border-radius: 0.5rem; /* rounded-lg */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* shadow-sm */
}

.comment-author img.avatar {
    border-radius: 9999px; /* rounded-full */
    width: 48px; /* avatar_size */
    height: 48px; /* avatar_size */
}

.comment-content {
    flex-grow: 1; /* 评论内容占据剩余空间 */
}

.comment-metadata {
    font-size: 0.875rem; /* text-sm */
    color: #6b7280; /* text-gray-500 */
}

.comment-awaiting-moderation {
    color: #d97706; /* text-yellow-600 */
    font-size: 0.875rem; /* text-sm */
    margin-bottom: 0.5rem;
}

.comment-text {
    line-height: 1.6; /* prose */
    color: #374151; /* text-gray-700 */
    margin-bottom: 0.75rem; /* mb-3 */
}

.reply {
    text-align: right;
    font-size: 0.875rem; /* text-sm */
}

    .reply a {
        color: #2563eb; /* text-blue-600 */
        text-decoration: none;
        transition: color 0.2s ease-in-out;
    }

        .reply a:hover {
            color: #1d4ed8; /* hover:text-blue-800 */
        }

/* 评论表单样式 */
#respond {
    margin-top: 2rem;
}

.comment-form {
    padding-top: 1.5rem; /* space-y-4 的效果 */
}

    .comment-form label {
        display: block;
        font-size: 0.875rem; /* text-sm */
        font-weight: 500; /* font-medium */
        color: #374151; /* text-gray-700 */
        margin-bottom: 0.25rem; /* mb-1 */
    }

    .comment-form input[type="text"],
    .comment-form input[type="email"],
    .comment-form input[type="url"],
    .comment-form textarea {
        display: block;
        width: 100%;
        border: 1px solid #d1d5db; /* border-gray-300 */
        border-radius: 0.375rem; /* rounded-md */
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* shadow-sm */
        padding: 0.5rem 0.75rem; /* py-2 px-3 */
        font-size: 0.875rem; /* sm:text-sm */
        line-height: 1.25rem; /* sm:text-sm */
        outline: none;
        transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    }

        .comment-form input[type="text"]:focus,
        .comment-form input[type="email"]:focus,
        .comment-form input[type="url"]:focus,
        .comment-form textarea:focus {
            border-color: #3b82f6; /* focus:border-blue-500 */
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5); /* focus:ring-blue-500 */
        }

    .comment-form .required {
        color: #ef4444; /* text-red-500 */
    }

.comment-notes, .logged-in-as, .must-log-in {
    font-size: 0.875rem; /* text-sm */
    color: #6b7280; /* text-gray-600 / text-gray-500 */
    margin-bottom: 1rem; /* mb-4 */
}

    .comment-notes a, .logged-in-as a, .must-log-in a {
        color: #2563eb; /* text-blue-600 */
        text-decoration: underline;
        transition: color 0.2s ease-in-out;
    }

        .comment-notes a:hover, .logged-in-as a:hover, .must-log-in a:hover {
            color: #1d4ed8; /* hover:underline */
        }

.form-submit {
    margin-top: 1.5rem; /* mt-6 */
}

.comment-form .submit {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 1.5rem; /* py-2 px-6 */
    border: 1px solid transparent;
    border-radius: 0.375rem; /* rounded-md */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* shadow-sm */
    font-size: 1rem; /* text-base */
    font-weight: 500; /* font-medium */
    color: #ffffff; /* text-white */
    background-color: #2563eb; /* bg-blue-600 */
    transition: background-color 0.3s ease-in-out, transform 0.15s ease-in-out;
    cursor: pointer;
}

    .comment-form .submit:hover {
        background-color: #1d4ed8; /* hover:bg-blue-700 */
    }

    .comment-form .submit:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5), 0 0 0 6px rgba(59, 130, 246, 0.25); /* focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 */
    }

    .comment-form .submit i {
        margin-right: 0.5rem; /* mr-2 */
    }

/* 分页链接样式 */
.comment-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
}

.comment-navigation .nav-previous,
.comment-navigation .nav-next {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    color: #2563eb;
    text-decoration: none;
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

    .comment-navigation .nav-previous:hover,
    .comment-navigation .nav-next:hover {
        background-color: #eff6ff; /* bg-blue-50 */
        border-color: #bfdbfe; /* border-blue-200 */
    }

    .comment-navigation .nav-previous span,
    .comment-navigation .nav-next span {
        font-weight: 500;
    }

/* 新增：评论评分样式 */
.comment-form-rating .rating-stars label {
    transition: color 0.2s ease-in-out;
}

/* 新增：评论点赞/点踩样式 */
.comment-actions .vote-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 0.875rem; /* text-sm */
    display: flex;
    align-items: center;
    transition: color 0.2s ease-in-out;
}

    .comment-actions .vote-button i {
        margin-right: 0.25rem; /* mr-1 */
    }

.comment-actions .like-button:hover {
    color: #2563eb; /* hover:text-blue-600 */
}

.comment-actions .dislike-button:hover {
    color: #ef4444; /* hover:text-red-600 */
}

.comment-actions .vote-button.opacity-50 {
    cursor: not-allowed;
}

/* 新增：评论回复层级显示优化 */
.comment-list .children {
    list-style: none;
    margin: 0;
    padding-left: 1.5rem; /* Indent children comments */
    margin-top: 1.5rem; /* Space between parent and first child */
}

    /* 针对多层嵌套的评论，可以增加更多缩进 */
    .comment-list .children .children {
        padding-left: 1.5rem;
    }

/* 可以为不同深度的评论添加不同的背景色或边框 */
.comment-list li.comment {
    border-left: 3px solid transparent; /* Default */
    transition: border-color 0.2s ease-in-out;
}

    .comment-list li.comment.depth-2 {
        border-left-color: #bfdbfe; /* blue-200 for depth 2 */
    }

    .comment-list li.comment.depth-3 {
        border-left-color: #93c5fd; /* blue-300 for depth 3 */
    }

    .comment-list li.comment.depth-4 {
        border-left-color: #60a5fa; /* blue-400 for depth 4 */
    }

    /* Add more depth styles if needed */
    .comment-list li.comment.depth-5 {
        border-left-color: #3b82f6; /* blue-500 for depth 5 */
    }

    /* Ensure the comment body itself doesn't get weird padding from the border */
    .comment-list li.comment .comment-body {
        border-radius: 0.5rem;
        overflow: hidden; /* Ensures shadow/border don't bleed */
    }
