/* =========================================
   本草科普解析页专用样式 (Aligned with Pro/Practice Style)
   ========================================= */

.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 100px;
    padding-bottom: 110px;
    padding-left: 15px;
    padding-right: 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Page Header (和 Practice 页一致) */
.page-header {
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.page-title {
    font-family: "Times New Roman", "Georgia", serif;
    font-size: 2.1rem;
    color: #1a2e22; /* 偏本草墨绿 */
    font-weight: bold;
    margin: 0;
}

.page-subtitle {
    color: #7a8a80;
    font-size: 0.95rem;
    margin-top: 6px;
    letter-spacing: 0.5px;
}

/* 胶囊式分类导航切换 */
.herbal-nav-tabs {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
    border-bottom: 1px solid #f0f5f2;
    padding-bottom: 20px;
}

.herbal-nav-tabs .tab-item {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #617066;
    background-color: #f8faf9;
    border: 1px solid rgba(61, 125, 86, 0.04);
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.herbal-nav-tabs .tab-item:hover {
    color: #3D7D56;
    background-color: #eff6f2;
}

.herbal-nav-tabs .tab-item.active {
    color: #ffffff;
    background-color: #3D7D56;
    border-color: #3D7D56;
    box-shadow: 0 4px 12px rgba(61, 125, 86, 0.15);
}

/* 条状文章列表 */
.herbal-section {
    position: relative;
}

.herbal-doc-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.herbal-doc-item {
    background: #ffffff;
    padding: 25px 30px;
    border-radius: 8px;
    border: 1px solid #eee;
    border-left: 4px solid transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    transition: all 0.3s ease;
}

.herbal-doc-item:hover {
    box-shadow: 0 8px 25px rgba(61, 125, 86, 0.05);
    border-left-color: #3D7D56; /* 悬浮触发左侧翡翠绿条 */
    border-color: #e2ede7;
    transform: translateY(-2px); /* 极其微弱轻盈的升起 */
}

/* 左侧：主要文字信息 */
.doc-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.doc-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: #3D7D56;
    background-color: #eff6f2;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
    border: 1px solid rgba(61, 125, 86, 0.08);
}

.doc-title-link {
    text-decoration: none !important;
    color: inherit;
}

.doc-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2c3a31;
    margin: 0 0 10px 0;
    line-height: 1.45;
    transition: color 0.2s ease;
}

.doc-title-link:hover .doc-title {
    color: #3D7D56;
}

.doc-meta {
    font-size: 0.82rem;
    color: #8c9c92;
    margin-bottom: 12px;
}

.doc-meta i {
    margin-right: 5px;
}

.doc-abstract {
    font-size: 0.92rem;
    color: #617066;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doc-more-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: #3D7D56;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.doc-more-link i {
    transition: transform 0.2s ease;
}

.doc-more-link:hover {
    color: #d4af37; /* 金黄过渡 */
}

.doc-more-link:hover i {
    transform: translateX(3px);
}

/* 右侧小插图 */
.doc-side-img {
    width: 180px;
    height: 120px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.doc-side-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.herbal-doc-item:hover .doc-side-img img {
    transform: scale(1.04);
}

/* 简约分页器设计 */
.herbal-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.herbal-pagination ul.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    border-radius: 4px;
    gap: 8px;
}

.herbal-pagination ul.pagination li {
    display: inline;
}

.herbal-pagination ul.pagination li a,
.herbal-pagination ul.pagination li span {
    position: relative;
    display: block;
    padding: 10px 18px;
    color: #4a5c50;
    text-decoration: none;
    background-color: #f3f7f5;
    border: 1px solid rgba(61, 125, 86, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.herbal-pagination ul.pagination li.active span {
    color: #ffffff;
    background-color: #3D7D56;
    border-color: #3D7D56;
    box-shadow: 0 4px 10px rgba(61, 125, 86, 0.15);
}

.herbal-pagination ul.pagination li a:hover {
    color: #2e5a44;
    background-color: #e8f0eb;
    border-color: rgba(61, 125, 86, 0.15);
}

.herbal-pagination ul.pagination li.disabled span {
    color: #b5c2ba;
    background-color: #f8faf9;
    border-color: rgba(61, 125, 86, 0.02);
    cursor: not-allowed;
}

/* 移动端响应式布局 */
@media screen and (max-width: 768px) {
    .herbal-doc-item {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 20px;
        padding: 20px;
    }
    
    .doc-side-img {
        width: 100%;
        height: 180px;
    }
    
    .page-title {
        font-size: 1.7rem;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
