@charset "UTF-8";
/**
 * 微信绿主题 - Tencent WeChat Green Theme
 * 基于Rssy-Blog主题改造
 * 配色方案：腾讯微信绿 (#07C160)
 */

:root {
    /* 微信绿主题色 */
    --wechat-green: #07C160;
    --wechat-green-light: #1AAD19;
    --wechat-green-dark: #06AD56;
    --wechat-green-hover: #06AD56;
    
    /* 辅助色 */
    --wechat-blue: #576B95;
    --wechat-orange: #FA9D3B;
    --wechat-red: #FA5151;
    
    /* 背景色 */
    --bg-primary: #EDEDED;
    --bg-secondary: #F7F7F7;
    --bg-white: #FFFFFF;
    
    /* 文字色 */
    --text-primary: #191919;
    --text-secondary: #888888;
    --text-light: #B2B2B2;
    
    /* 边框色 */
    --border-color: #E5E5E5;
    
    /* 阴影 */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
}

/* ========== 全局样式 ========== */
body {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--wechat-green) !important;
}

/* ========== 导航栏 ========== */
.header {
    background-color: var(--bg-white) !important;
    box-shadow: var(--shadow-sm) !important;
    border-bottom: 1px solid var(--border-color);
}

.logo img {
    height: 40px;
}

.menu .nav-text li a {
    color: var(--text-primary) !important;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.menu .nav-text li a:hover {
    color: var(--wechat-green) !important;
    background-color: rgba(7, 193, 96, 0.1);
}

.menu .nav-text li.active a {
    color: var(--wechat-green) !important;
    background-color: rgba(7, 193, 96, 0.1);
}

.header-tool .search a,
.header-tool .login a {
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.header-tool .search a:hover,
.header-tool .login a:hover {
    color: var(--wechat-green);
    background-color: rgba(7, 193, 96, 0.1);
}

/* ========== 主要内容区 ========== */
.container-xxl {
    max-width: 1200px;
}

/* ========== 文章卡片 ========== */
.article-list {
    margin-top: 20px;
}

.article-item {
    background-color: var(--bg-white);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.article-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.article-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.article-title a:hover {
    color: var(--wechat-green) !important;
}

.article-excerpt {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 12px;
}

.article-meta {
    color: var(--text-light);
    font-size: 12px;
    display: flex;
    gap: 16px;
    align-items: center;
}

.article-meta i {
    margin-right: 4px;
}

.article-meta span {
    display: flex;
    align-items: center;
}

/* 标签 */
.tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: rgba(7, 193, 96, 0.1);
    color: var(--wechat-green);
    border-radius: 4px;
    font-size: 12px;
    margin-right: 8px;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: var(--wechat-green);
    color: white;
}

/* ========== 侧边栏 ========== */
.sidebar {
    position: sticky;
    top: 90px;
}

.widget {
    background-color: var(--bg-white);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.widget-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--wechat-green);
    display: flex;
    align-items: center;
}

.widget-title i {
    color: var(--wechat-green);
    margin-right: 8px;
}

.widget-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.widget-list li:last-child {
    border-bottom: none;
}

.widget-list li a {
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.widget-list li a:hover {
    color: var(--wechat-green);
    padding-left: 8px;
}

.widget-list li a i {
    color: var(--wechat-green);
    margin-right: 8px;
}

/* ========== 按钮 ========== */
.btn-primary,
.btn-readmore {
    background-color: var(--wechat-green) !important;
    border-color: var(--wechat-green) !important;
    color: white !important;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-readmore:hover {
    background-color: var(--wechat-green-dark) !important;
    border-color: var(--wechat-green-dark) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    background-color: transparent !important;
    border: 1px solid var(--wechat-green) !important;
    color: var(--wechat-green) !important;
}

.btn-outline-primary:hover {
    background-color: var(--wechat-green) !important;
    color: white !important;
}

/* ========== 分页 ========== */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 32px 0;
}

.pagination a,
.pagination span {
    padding: 8px 16px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination span.current {
    background-color: var(--wechat-green);
    border-color: var(--wechat-green);
    color: white;
}

/* ========== 文章详情页 ========== */
.article-content {
    background-color: var(--bg-white);
    border-radius: 8px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.article-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.article-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 16px;
}

.article-body {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-primary);
}

.article-body h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 24px 0 16px;
    padding-left: 12px;
    border-left: 4px solid var(--wechat-green);
}

.article-body h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 20px 0 12px;
}

.article-body p {
    margin-bottom: 16px;
}

.article-body img {
    max-width: 100%;
    border-radius: 8px;
    margin: 16px 0;
    box-shadow: var(--shadow-md);
}

.article-body code {
    background-color: rgba(7, 193, 96, 0.1);
    color: var(--wechat-green);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
}

.article-body pre {
    background-color: #2B2B2B;
    color: #A9B7C6;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 16px 0;
}

.article-body blockquote {
    border-left: 4px solid var(--wechat-green);
    background-color: rgba(7, 193, 96, 0.05);
    padding: 16px 20px;
    margin: 16px 0;
    border-radius: 4px;
    color: var(--text-secondary);
}

/* ========== 评论 ========== */
.comments {
    background-color: var(--bg-white);
    border-radius: 8px;
    padding: 24px;
    margin-top: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.comments-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.comment-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-author {
    font-weight: 500;
    color: var(--wechat-green);
}

.comment-content {
    margin-top: 8px;
    color: var(--text-primary);
    line-height: 1.6;
}

/* ========== 表单 ========== */
.form-control {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 10px 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--wechat-green);
    box-shadow: 0 0 0 3px rgba(7, 193, 96, 0.1);
    outline: none;
}

.form-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

/* ========== 搜索 ========== */
.search-box {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 16px;
    padding-right: 50px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-white);
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--wechat-green);
    box-shadow: 0 0 0 3px rgba(7, 193, 96, 0.1);
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--wechat-green);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background-color: var(--wechat-green-dark);
}

/* ========== 页脚 ========== */
.footer {
    background-color: var(--bg-white);
    padding: 40px 0 20px;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}

.footer-links a {
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--wechat-green);
}

/* ========== 移动端导航 ========== */
.header-m {
    background-color: var(--bg-white);
}

.m-menu ul li a {
    color: var(--text-primary);
    padding: 12px 20px;
    display: block;
    transition: all 0.3s ease;
}

.m-menu ul li a:hover {
    color: var(--wechat-green);
    background-color: rgba(7, 193, 96, 0.1);
}

/* ========== 滚动条 ========== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--wechat-green);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--wechat-green-dark);
}

/* ========== 动画 ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-item {
    animation: fadeIn 0.5s ease;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .container-xxl {
        padding: 0 16px;
    }
    
    .article-item {
        padding: 16px;
    }
    
    .article-content {
        padding: 20px;
    }
    
    .article-header h1 {
        font-size: 20px;
    }
    
    .article-body {
        font-size: 14px;
    }
}

/* ========== 特殊样式 ========== */
/* 微信风格卡片 */
.wechat-card {
    background: linear-gradient(135deg, var(--wechat-green) 0%, var(--wechat-green-light) 100%);
    color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-md);
}

/* 微信风格标签 */
.wechat-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background-color: var(--wechat-green);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* 加载动画 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.loading::after {
    content: "";
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-color);
    border-top-color: var(--wechat-green);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
