@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;
    
    /* 覆盖Bootstrap颜色变量 */
    --bs-blue: #07C160;
    --bs-primary: #07C160;
    --bs-success: #07C160;
    --bs-primary-rgb: 7, 193, 96;
    --bs-success-rgb: 7, 193, 96;
    
    /* 辅助色 */
    --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;
    background-color: #F5F5F5 !important;
}

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

/* 导航下拉菜单 */
.menu .nav-text .dropdown::before {
    color: var(--wechat-green) !important;
}

.menu .nav-text .dropdown:hover::before {
    color: var(--wechat-green) !important;
}

.menu .nav-text .dropdown .dropdown-text {
    border-top: 3px solid var(--wechat-green) !important;
}

.menu .nav-text .dropdown .dropdown-text::before {
    border-bottom: 10px solid var(--wechat-green) !important;
}

.menu .nav-text li.dropdown:hover .dropdown-text a:hover {
    color: #ffffff !important;
    background-color: var(--wechat-green) !important;
}

/* 移动端导航 */
.header-m {
    background-color: var(--wechat-green) !important;
}

.header-m .m-menu {
    background-color: var(--wechat-green) !important;
}

.header-m .m-menu .m-nav-text li a {
    color: #ffffff !important;
}

.header-m .m-menu .m-nav-text li a:focus {
    color: #ffffff !important;
}

.header-m .m-menu .m-nav-text .dropdown::before {
    color: #ffffff !important;
}

/* 按钮样式 */
.comments-form .comments-btn {
    background-color: var(--wechat-green) !important;
    border-color: var(--wechat-green) !important;
}

.comments-form .comments-btn:hover {
    background-color: var(--wechat-green-dark) !important;
    border-color: var(--wechat-green-dark) !important;
}

/* 页面菜单 */
.page-menu .active {
    color: var(--wechat-green) !important;
    border-bottom: 2px solid var(--wechat-green) !important;
}

.page-menu .active::before {
    border-bottom: 5px solid var(--wechat-green) !important;
}

/* 侧边栏搜索按钮 */
.sidebar-search button {
    background-color: var(--wechat-green) !important;
}

/* 分页 */
.page-list ul a:hover,
.page-list ul span {
    background-color: var(--wechat-green) !important;
    color: #ffffff !important;
}

/* 文章工具按钮 */
.article-tool a:nth-child(2) {
    background-color: var(--wechat-green) !important;
}

/* 友情链接 */
.friend-link:hover {
    background-color: var(--wechat-green) !important;
    color: #fff !important;
    border-color: var(--wechat-green) !important;
}

/* 搜索弹窗 */
.eject-srarch .offcanvas-srarch .form button {
    background-color: var(--wechat-green) !important;
}

.eject-srarch .offcanvas-srarch .form input {
    border: 1px solid var(--wechat-green) !important;
}

.eject-srarch .offcanvas-srarch .form input:focus-visible {
    border: 1px solid var(--wechat-green) !important;
}

/* ========== 主要内容区 ========== */
.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;
}

/* ========== 客服悬浮按钮 ========== */
.wechat-service {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
}

.service-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--wechat-green);
    color: white;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.service-btn:hover {
    background-color: var(--wechat-green-dark);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 10px 30px rgba(7, 193, 96, 0.4);
}

.service-btn i {
    font-size: 24px;
    margin-bottom: 2px;
    display: block;
}

.service-btn span {
    font-size: 10px;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
    display: block;
}

.service-content {
    position: absolute;
    left: 80px;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.service-content.show {
    opacity: 1;
    visibility: visible;
    left: 80px;
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.service-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.service-body {
    text-align: center;
}

.service-body p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-size: 14px;
}

.qrcode-container {
    margin: 16px 0;
}

.qrcode-container img {
    width: 120px;
    height: 120px;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.service-tip {
    font-size: 12px !important;
    color: var(--wechat-green) !important;
    font-weight: 500;
}

/* 滚动时的效果 */
@media (max-width: 768px) {
    .wechat-service {
        left: 10px;
    }
    
    .service-btn {
        width: 50px;
        height: 50px;
    }
    
    .service-btn i {
        font-size: 20px;
    }
    
    .service-btn span {
        font-size: 9px;
    }
    
    .service-content {
        width: 180px;
        left: 70px;
    }
    
    .qrcode-container img {
        width: 100px;
        height: 100px;
    }
}

/* 三农服务类特色样式 */
.agriculture-feature {
    background: linear-gradient(135deg, var(--wechat-green) 0%, var(--wechat-green-light) 100%);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.agriculture-feature h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
}

.agriculture-feature p {
    font-size: 16px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.agriculture-icon {
    display: inline-block;
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.agriculture-icon:hover {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.3);
}

/* 产品卡片样式 */
.product-card {
    background-color: var(--bg-white);
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    text-align: center;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.product-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.product-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.product-card .btn-readmore {
    display: inline-block;
    margin-top: 8px;
}
