/*
Theme Name: 评估知识库 Pro
Theme URI: https://example.com
Author: PGZSK
Author URI: https://example.com
Description: 资产评估行业知识付费主题（自动SEO+变现）
Version: 2.0
License: GPL2
Text Domain: pgzsk-pro
*/

/* ========== 全局重置 & 基础样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.7;
    font-size: 14px;
}

.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 0;
}

/* ========== 头部样式（核心优化） ========== */
.site-header {
    background-color: #0a244b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-top {
    padding: 18px 0;
}

.header-container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* Logo样式 */
.site-logo .logo-text {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
}

/* 放大版搜索框（居中） */
.search-wrapper {
    flex: 1;
    max-width: 600px;
    margin: 0 40px;
}

.search-form {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.search-input {
    flex: 1;
    padding: 12px 18px;
    border: none;
    font-size: 15px;
    outline: none;
}

.search-btn {
    background-color: #1a56db;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background-color: #1548c0;
}

/* 登录按钮 */
.user-action .login-link {
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.user-action .login-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 移动端汉堡菜单 */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* 分类导航栏（移到顶部） */
.category-nav {
    background-color: #0d306b;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-list li {
    flex: 1;
    text-align: center;
}

.nav-list li a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 14px 0;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.nav-list li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* ========== 卡片 & 模块样式 ========== */
.card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    padding: 28px;
    margin-bottom: 24px;
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
}

.card h2 {
    color: #0a244b;
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f2f5;
}

/* 网格布局优化 */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

/* 资源项样式 */
.item {
    background-color: #f0f5ff;
    border-radius: 8px;
    padding: 18px;
    transition: all 0.3s ease;
}

.item:hover {
    background-color: #e6f0ff;
    transform: translateY(-1px);
}

.item a {
    color: #0a244b;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    display: block;
}

.item a:hover {
    color: #1a56db;
}

/* 按钮统一样式 */
.btn {
    display: inline-block;
    background-color: #0a244b;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover {
    background-color: #0d306b;
    transform: translateY(-1px);
}

/* 文章列表样式 */
.post {
    padding: 16px 0;
    border-bottom: 1px solid #f0f2f5;
}

.post:last-child {
    border-bottom: none;
}

.post h3 a {
    color: #0a244b;
    text-decoration: none;
    font-size: 17px;
    transition: color 0.2s ease;
}

.post h3 a:hover {
    color: #1a56db;
}

.post p {
    color: #666;
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.6;
}

/* VIP转化区样式 */
.vip-box {
    background: linear-gradient(135deg, #0a244b 0%, #0d306b 100%);
    color: #fff;
    text-align: center;
    padding: 40px 28px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(10, 36, 75, 0.15);
    margin-bottom: 30px;
}

.vip-box h2 {
    font-size: 24px;
    margin-bottom: 24px;
    border: none;
    padding: 0;
    color: #fff;
}

.vip-box p {
    margin: 12px 0;
    font-size: 16px;
}

.vip-box .tip {
    color: #ffd166;
    font-weight: 600;
    margin: 20px 0;
    font-size: 17px;
}

.vip-box h3 {
    margin: 14px 0;
    font-size: 18px;
}

.vip-box .btn {
    margin-top: 24px;
    padding: 14px 36px;
    font-size: 17px;
    background-color: #fff;
    color: #0a244b;
    font-weight: 600;
}

.vip-box .btn:hover {
    background-color: #f8f9fa;
}

/* 底部样式 */
.site-footer {
    text-align: center;
    padding: 36px 0;
    background-color: #fff;
    border-top: 1px solid #e9ecef;
    margin-top: 40px;
    color: #666;
    font-size: 14px;
}

/* ========== 响应式适配（手机端） ========== */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        gap: 16px;
    }

    .search-wrapper {
        order: 3;
        max-width: 100%;
        margin: 0;
        width: 100%;
    }

    .menu-toggle {
        display: flex;
    }

    .category-nav {
        display: none;
    }

    .category-nav.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
    }

    .nav-list li a {
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 20px;
    }

    .vip-box {
        padding: 30px 20px;
    }
}
/* 评估知识库终极版样式补充 */
.service-float {
    z-index: 999;
}
#back-to-top {
    transition: all 0.3s ease;
}
#back-to-top:hover {
    background: #081c3a !important;
}
.post-content img {
    max-width: 100%;
    height: auto;
}
.download-btn {
    display: inline-block;
    background: var(--main-color);
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    margin: 10px 0;
}

/* ===== 2026-04 稳定性修复与体验优化 ===== */
.site-header{position:sticky;top:32px;z-index:90}
.admin-bar .site-header{top:32px}
.container{width:min(1200px,92%);margin:24px auto}
.item-meta{display:block;margin-top:8px;font-size:12px;color:#667085}
.single-container{display:grid;gap:24px}
.single-card h1{margin-bottom:12px}
.entry-meta{color:#667085;font-size:14px;margin-bottom:18px}
.entry-content{line-height:1.9;color:#243142}
.entry-teaser{padding:18px;background:#f8fbff;border:1px solid #e6eefc;border-radius:12px}
.content-lock{margin-top:18px;padding:20px;border:1px dashed #cbd5e1;border-radius:14px;background:#fffaf2;text-align:center}
.download-box{margin-top:22px;padding-top:18px;border-top:1px solid #edf2f7}
.download-box .muted{color:#667085}
.vip-box--single{text-align:center}
.site-footer{width:100%;padding:20px 0;background:#f8f9fa;color:#333;text-align:center;font-size:14px;border-top:1px solid #e1e1e1;margin-top:40px;box-sizing:border-box}
@media (max-width:768px){
  .site-header{top:46px}
  .search-wrapper{margin:0 12px;max-width:none}
  .header-container{flex-wrap:wrap;gap:12px;padding:10px 0}
  .site-logo{width:100%;text-align:center}
  .user-action{display:none}
  .nav-list{overflow:auto;white-space:nowrap}
  .nav-list li{flex:0 0 auto;min-width:120px}
}
