/**
 * MuFeng Theme - 二次元风格样式
 * 
 * 配色：薰衣草紫 + 天蓝渐变
 * 保持可爱元素，中性配色
 *
 * @package MuFeng
 * @version 1.0.0
 */

/* ===================================
   配色变量覆盖
   =================================== */
:root {
    --primary-color: #7c3aed;
    --primary-light: #a78bfa;
    --primary-dark: #6d28d9;
    --accent-color: #38bdf8;
    --bg-color: #fafafa;
    --bg-card: #ffffff;
    --bg-secondary: #f4f4f5;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

[data-theme="dark"] {
    --primary-color: #cba6f7;
    --primary-light: #b4befe;
    --accent-color: #89dceb;
    --bg-color: #1e1e2e;
    --bg-card: #313244;
    --bg-secondary: #45475a;
}

/* ===================================
   网站标题装饰
   =================================== */
.site-title {
    position: relative;
    background: linear-gradient(135deg, #7c3aed, #38bdf8, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-title::before,
.site-title::after {
    content: '✿';
    position: absolute;
    font-size: 0.8em;
    animation: flower-spin 4s linear infinite;
    -webkit-text-fill-color: currentColor;
}

.site-title::before {
    left: -25px;
    color: #a78bfa;
}

.site-title::after {
    right: -25px;
    color: #38bdf8;
    animation-direction: reverse;
}

@keyframes flower-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ===================================
   文章卡片
   =================================== */
.post-card {
    border: 2px solid transparent;
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
        linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(56, 189, 248, 0.15)) border-box;
    transition: all var(--transition-normal);
}

.post-card:hover {
    border-color: rgba(124, 58, 237, 0.3);
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
        linear-gradient(135deg, #7c3aed, #38bdf8) border-box;
    transform: translateY(-8px) rotate(0.5deg);
}

.post-category {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
}

.post-title a:hover {
    color: #7c3aed;
}

/* ===================================
   按钮样式
   =================================== */
.btn,
.form-submit .submit,
.search-form button {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    border-radius: var(--radius-full);
    border: none;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
    transition: all var(--transition-fast);
}

.btn:hover,
.form-submit .submit:hover,
.search-form button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #38bdf8, #22d3ee);
}

/* ===================================
   侧边栏小工具
   =================================== */
.widget {
    border: 2px solid rgba(124, 58, 237, 0.1);
    position: relative;
    overflow: hidden;
}

.widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #7c3aed, #38bdf8, #a78bfa);
}

.widget:hover {
    transform: translateY(-3px);
}

/* ===================================
   作者头像装饰
   =================================== */
.author-avatar {
    border: 3px solid transparent;
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
        linear-gradient(135deg, #7c3aed, #38bdf8) border-box;
    position: relative;
}

.author-avatar::after {
    content: '🌟';
    position: absolute;
    bottom: -5px;
    right: -5px;
    font-size: 20px;
}

/* ===================================
   标签云
   =================================== */
.tag-cloud a,
.sitemap-tag,
.post-tags a {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(56, 189, 248, 0.08));
    border: 1px solid rgba(124, 58, 237, 0.15);
    color: #7c3aed;
}

.tag-cloud a:hover,
.sitemap-tag:hover,
.post-tags a:hover {
    background: linear-gradient(135deg, #7c3aed, #38bdf8);
    border-color: transparent;
    color: #fff;
}

/* ===================================
   链接与交互
   =================================== */
a {
    color: #7c3aed;
}

a:hover {
    color: #6d28d9;
}

.comment {
    border-left: 3px solid #7c3aed;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.03), rgba(56, 189, 248, 0.03));
}

.archive-header {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(56, 189, 248, 0.08));
    border: 2px solid rgba(124, 58, 237, 0.15);
}

.archive-icon {
    background: linear-gradient(135deg, #7c3aed, #38bdf8);
}

/* ===================================
   回到顶部
   =================================== */
.back-to-top {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
}

/* ===================================
   分页与滚动条
   =================================== */
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: linear-gradient(135deg, #7c3aed, #38bdf8);
}

::selection {
    background: #7c3aed;
    color: #fff;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #7c3aed, #38bdf8);
}

/* ===================================
   文章详情
   =================================== */
.single-post-content h2 {
    border-left: 4px solid #7c3aed;
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.08), transparent);
}

.single-post-content blockquote {
    border-left: 4px solid #38bdf8;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(124, 58, 237, 0.03));
}

.like-button:hover,
.like-button.liked {
    background: linear-gradient(135deg, #f43f5e, #fb7185);
}

.post-nav-item:hover {
    background: linear-gradient(135deg, #7c3aed, #38bdf8);
}

/* ===================================
   短代码
   =================================== */
.alert-info {
    border-left-color: #38bdf8;
    background: rgba(56, 189, 248, 0.08);
}

.alert-success {
    border-left-color: #4ade80;
    background: rgba(74, 222, 128, 0.08);
}

.alert-warning {
    border-left-color: #fbbf24;
    background: rgba(251, 191, 36, 0.08);
}

.alert-danger {
    border-left-color: #f43f5e;
    background: rgba(244, 63, 94, 0.08);
}

.download-btn {
    background: linear-gradient(135deg, #4ade80, #22c55e);
}

.progress-primary .progress-fill {
    background: linear-gradient(135deg, #7c3aed, #38bdf8);
}

/* ===================================
   二次元小工具
   =================================== */
.hitokoto-content {
    padding: var(--spacing-md);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.06), rgba(56, 189, 248, 0.06));
    border-radius: var(--radius-lg);
    border-left: 3px solid #7c3aed;
}

.hitokoto-refresh:hover {
    color: #7c3aed;
    transform: rotate(180deg);
}

.site-running {
    background: linear-gradient(135deg, #7c3aed, #38bdf8);
    color: #fff;
}

.visitor-stats-widget .stat-item i {
    color: #7c3aed;
}

/* ===================================
   其他元素
   =================================== */
.notice-bar,
.theme-toggle:hover,
.search-toggle:hover,
.author-social a:hover {
    background: linear-gradient(135deg, #7c3aed, #38bdf8);
}

.related-post-item {
    border: 2px solid rgba(124, 58, 237, 0.08);
}

.related-post-item:hover {
    border-color: rgba(124, 58, 237, 0.25);
}

.site-footer {
    background: linear-gradient(180deg, var(--bg-card), rgba(124, 58, 237, 0.03));
}

.single-post-content pre {
    background: #1e1e2e;
    border: 1px solid #313244;
}

.single-post-content code {
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
}

.single-post-content pre code {
    background: none;
    color: #cdd6f4;
}

/* ===================================
   响应式
   =================================== */
@media (max-width: 768px) {

    .site-title::before,
    .site-title::after {
        display: none;
    }

    .post-card:hover {
        transform: translateY(-4px);
    }
}