/*
Theme Name: Sharing
Theme URI: https://7151go.com
Author: ＜Six
Author URI: https://7151go.com
Description: 一个为资源下载站点设计的WordPress主题，采用现代扁平风格设计，响应式布局适配各种设备屏幕。本主题专为资源分享、下载类网站定制，提供了丰富的资源展示和分类功能。
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: sharing
Tags: sharing, download, resources, responsive, modern
*/

/* 
注意：大部分样式将由Tailwind CSS处理
这个文件主要用于WordPress主题识别
*/

/* 主题颜色变量 */
:root {
    --primary-color: #06adeb;
    --primary-dark: #0596c7;
    --secondary-color: #843dff;
    --secondary-dark: #6a2fd1;
    --dark-text: #1a1a2e;
    --gray-100: #f7fafc;
    --gray-200: #edf2f7;
    --gray-300: #e2e8f0;
    --gray-400: #cbd5e0;
    --gray-500: #a0aec0;
    --gray-600: #718096;
    --gray-700: #4a5568;
    --gray-800: #2d3748;
    --gray-900: #1a202c;
}

/* 全局样式 */
body {
    color: var(--dark-text);
    background-color: var(--gray-100);
}

/* 链接样式 */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
}

/* 卡片样式 */
.card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 响应式容器 */
.container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 1rem;
    padding-left: 1rem;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

/* 工具类 */
.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--secondary-color);
}

.bg-primary {
    background-color: var(--primary-color);
}

.bg-secondary {
    background-color: var(--secondary-color);
}

/* 动画效果 */
.transition-all {
    transition: all 0.3s ease;
}

.hover\:shadow-lg:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 评论相关动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease-out forwards;
}

/* 评论样式 */
.comment-item {
    transition: all 0.3s ease;
}

.comment-item:hover {
    /* background-color: rgba(6, 173, 235, 0.03); */
    border-radius: 0.5rem;
}

/* 评分星星动画 */
#rating-stars i {
    transition: transform 0.2s ease;
}

#rating-stars i:hover {
    transform: scale(1.2);
}

/* 回复评论样式 */
.reply-to-text {
    padding: 0.5rem;
    background-color: rgba(6, 173, 235, 0.05);
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
}

/* 评论结构相关样式 */
#comments {
    position: relative;
}

/* 评论列表样式 */
#comments .comment-list {
    margin-bottom: 1.5rem;
}

#comments .comment-pagination,
#comments .load-more-container {
    margin-top: 1.5rem;
}

#comments .no-comments {
    padding: 2rem 0;
}

/* 嵌套评论样式 */
.comment-item.ml-8 {
    position: relative;
    padding-left: 1rem;
    border-left: 2px solid rgba(6, 173, 235, 0.1);
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* 确保评论间距正确 */
.comment-list > .comment-item {
    margin-bottom: 1.25rem;
}

.comment-list > .comment-item:last-child {
    margin-bottom: 0;
}

/* 内容切换过渡效果 */
.tab-content {
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.tab-content.entering {
    opacity: 0;
    transform: translateY(10px);
}

.tab-content.active {
    opacity: 1;
    transform: translateY(0);
}

.tab-content.hidden {
    display: none;
}

/* 版本切换过渡效果 */
.version-download {
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.version-download.hidden {
    display: none;
}

/* 版本描述展开/折叠过渡效果 */
.version-content, .description-content {
    transition: max-height 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
}

.version-content.hidden, .description-content.hidden {
    max-height: 0;
    opacity: 0;
}

.version-content:not(.hidden), .description-content:not(.hidden) {
    max-height: 1000px;
    opacity: 1;
} 