/*
 * 复禾健康风格布局CSS系统
 * 文件：fh21_layout.css
 * 描述：三栏浮动布局系统，包含页面整体结构和主要区域布局
 */

/* ==================== 基础容器 ==================== */

/* 主容器 - 1200px宽度居中 */
.fh21-container {
    width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* 替代类名（兼容原index.html样式） */
.w1200 {
    width: 1200px;
    margin: 0 auto;
}

/* ==================== 三栏布局 ==================== */

/* 主内容区域容器 */
.fh21-main {
    position: relative;
    margin-top: 20px;
}

/* 清除浮动 */
.fh21-main:after {
    content: "";
    display: table;
    clear: both;
}

/* 左侧边栏 - 160px */
.fh21-sidebar-left {
    float: left;
    width: 160px;
    margin-right: 30px;
}

/* 中间内容区域 - 680px */
.fh21-content {
    float: left;
    width: 680px;
}

/* 右侧边栏 - 300px */
.fh21-sidebar-right {
    float: right;
    width: 300px;
}

/* ==================== 头部布局 ==================== */

/* 头部容器 */
.fh21-header {
    height: 60px;
    -webkit-box-shadow: 0 2px 3px #eee;
    box-shadow: 0 2px 3px #eee;
}

.fh21-header .fh21-header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo区域 */
.fh21-logo {
    height: 100%;
    background: url(../images/logo.png) no-repeat left;
    width: 160px;
}

/* 导航菜单容器 */
.fh21-nav {
    flex: 1;
    margin-left: 10px;
}

/* 搜索框容器 */
.fh21-search {
    margin-top: 12px;
}

/* ==================== 内容区域布局 ==================== */

/* 文章列表容器 */
.fh21-article-list {
    margin-bottom: 20px;
}

/* 列表项基础样式 */
.fh21-list-item {
    border-top: 1px solid #eee;
    padding: 20px 0 20px 195px;
    position: relative;
}

.fh21-list-item:first-child {
    border: none;
}

/* 无图列表项 */
.fh21-list-item.no-image {
    padding: 15px 0;
}

.fh21-list-item.no-image .fh21-list-description {
    height: auto;
    max-height: 44px;
    margin-bottom: 10px;
}

/* 多图列表项 */
.fh21-list-item.multi-image {
    padding: 15px 0;
}

/* 列表图片 */
.fh21-list-image {
    position: absolute;
    left: 0;
    top: 20px;
    width: 180px;
    height: 120px;
    overflow: hidden;
}

.fh21-list-item:first-child .fh21-list-image {
    top: 0;
}

.fh21-list-image a {
    width: 180px;
    height: 120px;
    display: block;
    overflow: hidden;
}

.fh21-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 列表内容 */
.fh21-list-content {
    position: relative;
}

.fh21-list-title {
    line-height: 30px;
    font-size: 18px;
    margin-bottom: 5px;
}



.fh21-list-description {
    line-height: 22px;
    font-size: 14px;
    margin-bottom: 17px;
    height: 44px;
    color: #666;
    word-break: break-all;
    word-wrap: break-word;
}

.fh21-list-meta {
    font-size: 14px;
    color: #999;
}

/* ==================== 侧边栏布局 ==================== */

/* 侧边栏基础容器 */
.fh21-sidebar {
    background-color: #fafafa;
}

/* 侧边栏模块 */
.fh21-sidebar-module {
    padding: 0 15px;
    margin-bottom: 30px;
}

/* 热门新闻模块 */
.fh21-popular-news {
    padding-top: 15px;
}

.fh21-popular-news .fh21-module-title {
    padding-top: 25px;
    font-weight: normal;
    margin-bottom: 20px;
}

.fh21-popular-item {
    display: block;
    clear: both;
    padding: 10px 0;
    overflow: hidden;
}

.fh21-popular-image {
    float: left;
    width: 100px;
    height: 67px;
    overflow: hidden;
    margin-right: 10px;
}

.fh21-popular-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fh21-popular-title {
    font-size: 14px;
    word-break: break-all;
    word-wrap: break-word;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.fh21-popular-title i {
    display: inline-block;
    width: 26px;
    height: 24px;
    vertical-align: top;
    background: url(../images/one.png) no-repeat left top;
}

.fh21-popular-title i.i1 {
    background-image: url(../images/two.png);
}

.fh21-popular-title i.i2 {
    background-image: url(../images/three.png);
}

/* 排名列表 */
.fh21-rank-list {
    padding-bottom: 10px;
}

.fh21-rank-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fh21-rank-item {
    margin-bottom: 8px;
    padding: 5px 0;
    line-height: 18px;
}

.fh21-rank-item i {
    display: inline-block;
    background-color: #ccc;
    width: 18px;
    height: 18px;
    vertical-align: top;
    border-radius: 2px;
    font-style: normal;
    text-align: center;
    color: #fff;
    font-size: 12px;
    line-height: 18px;
    margin-right: 10px;
}

/* 模块标题 */
.fh21-module-title {
    font-weight: normal;
    font-size: 20px;
    clear: both;
    margin-bottom: 10px;
    line-height: 30px;
}

.fh21-module-title i {
    float: left;
    height: 18px;
    margin-right: 8px;
    border-left: 4px solid #007cff;
    margin-top: 6px;
}

.fh21-module-title span {
    float: left;
}

.fh21-module-title a {
    float: right;
    font-size: 14px;
    color: #999;
}

/* 两列文本列表 */
.fh21-two-col-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fh21-two-col-item {
    clear: both;
    margin-bottom: 10px;
}

.fh21-two-col-item i {
    float: left;
    width: 6px;
    height: 6px;
    background-color: #ffb527;
    margin-top: 9px;
}

.fh21-two-col-item a {
    float: right;
    width: 252px;
    line-height: 24px;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 图文列表 */
.fh21-image-text-list {
    clear: both;
    padding: 10px 0;
}

.fh21-image-text-image {
    float: left;
    width: 100px;
    height: 67px;
    overflow: hidden;
}

.fh21-image-text-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fh21-image-text-content {
    float: right;
    width: 160px;
}

.fh21-image-text-title {
    line-height: 22px;
    height: 44px;
    margin: -5px 0 7px 0;
    font-size: 14px;
    font-weight: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.fh21-image-text-time {
    font-size: 12px;
    color: #999;
}

/* 无图图文列表 */
.fh21-image-text-list.no-image .fh21-image-text-content {
    width: 100%;
}

.fh21-image-text-list.no-image .fh21-image-text-title {
    max-height: 44px;
    height: auto;
    margin: 0 0 5px 0;
}

/* 单列文本列表 */
.fh21-single-col-list {
    line-height: 24px;
}

.fh21-single-col-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fh21-single-col-item {
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fh21-single-col-item i {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 2px;
    background-color: #ccc;
    vertical-align: middle;
    margin-right: 10px;
}

/* ==================== 分类导航布局 ==================== */

/* 左侧分类导航 */
.fh21-category-nav {
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.fh21-category-nav dl {
    margin: 0;
    padding: 0;
}

.fh21-category-nav dd {
    margin: 0;
    padding: 0;
}

.fh21-category-nav .fh21-category-link {
    display: block;
    font-size: 16px;
    color: #666;
    padding-left: 15px;
    padding-right: 25px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 48px;
    background: #f4f5f6 url(../images/right.png) no-repeat 136px center;
}

.fh21-category-nav .fh21-category-link:hover {
    background-color: #fff;
    font-size: 18px;
    color: #2f8af5;
    box-shadow: 0 2px 4px #eee;
}

.fh21-category-nav .fh21-category-link.active {
    color: #fff;
    font-size: 18px;
    background: #2f8af5;
}

/* 二级分类 */
.fh21-sub-category {
    display: none;
    background: rgba(0, 0, 0, .01);
}

.fh21-category-nav dd:hover .fh21-sub-category {
    display: block;
}

.fh21-sub-category .fh21-category-link {
    padding-left: 25px;
    background: rgba(0, 0, 0, .01);
}

.fh21-sub-category .fh21-category-link.active,
.fh21-sub-category .fh21-category-link:hover {
    font-size: 16px;
}

/* 分类标题 */
.fh21-category-nav dt {
    background-color: #2f8af5;
}

.fh21-category-nav dt .fh21-category-link {
    color: #fff;
}

/* ==================== 二维码区域 ==================== */

.fh21-qrcode {
    text-align: center;
    padding-bottom: 20px;
}

.fh21-qrcode-image {
    width: 83px;
    height: 83px;
    display: block;
    margin: 0 auto 5px;
}

.fh21-qrcode-text {
    font-size: 14px;
    color: #999;
}

/* ==================== 分页布局 ==================== */

.fh21-pagination {
    text-align: center;
    padding: 14px 0;
    clear: both;
}

.fh21-pagination p {
    display: inline;
}

.fh21-pagination a {
    font-size: 16px;
    padding: 9px 16px;
    color: #666;
    line-height: 20px;
    border: 1px solid #e1e1e1;
    margin-right: 5px;
    display: inline-block;
}

.fh21-pagination .current,
.fh21-pagination a:hover {
    font-size: 16px;
    padding: 9px 16px;
    line-height: 20px;
    border: 1px solid #4d9df5;
    background: #4d9df5;
    color: #fff;
    margin-right: 5px;
}

/* ==================== 底部布局 ==================== */

.fh21-footer {
    background-color: #eee;
}

/* 友情链接 */
.fh21-footer-links {
    width: 1200px;
    margin: 0 auto;
    padding: 24px 0 20px;
    border-bottom: 1px solid #d0d0d0;
}

.fh21-links-title {
    float: left;
    width: 80px;
    margin-right: 10px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background-color: #a9b7c0;
    color: #fff;
    position: relative;
    font-size: 16px;
}

.fh21-links-title:after {
    content: '';
    position: absolute;
    top: 50%;
    margin-top: -5px;
    right: -10px;
    border: 5px solid transparent;
    border-left-color: #a9b7c0;
}

.fh21-links-content {
    width: 1100px;
    float: right;
    font-size: 14px;
}

.fh21-links-row {
    padding-top: 10px;
}

.fh21-links-row ul li {
    float: left;
    padding: 5px 0;
    line-height: 20px;
}

.fh21-links-row ul li span {
    margin: 0 10px;
}

.fh21-links-more a {
    color: #6595ff;
}

.fh21-links-row-header {
    margin-bottom: 10px;
}

.fh21-links-tab {
    padding-bottom: 5px;
    margin-right: 20px;
    cursor: pointer;
}

.fh21-links-tab.active {
    border-bottom: 2px solid #318af5;
    color: #318af5;
}

/* 主底部区域 */
.fh21-footer-main {
    width: 850px;
    margin: 0 auto;
    padding: 40px 160px 40px 190px;
    color: #666;
    position: relative;
}

.fh21-footer-main a {
    color: #666;
}

.fh21-footer-left {
    position: absolute;
    left: 0;
    top: 40px;
    bottom: 40px;
    width: 140px;
    padding-right: 50px;
    border-right: 1px solid #d0d0d0;
}

.fh21-footer-logo {
    display: block;
    height: 100%;
    background: url('../images/index/b-logo.png') no-repeat right;
}

.fh21-footer-center {
    padding-left: 22px;
    width: 800px;
    line-height: 30px;
    font-size: 14px;
}

.fh21-footer-links-list {
    margin-bottom: 10px;
}

.fh21-footer-links-list ul li {
    float: left;
    line-height: 1.2;
    font-size: 14px;
}

.fh21-footer-links-list ul li span {
    margin: 0 10px;
    color: #d0d0d0;
}

.fh21-footer-right {
    position: absolute;
    right: 0;
    top: 50%;
    margin-top: -42px;
    height: 84px;
    width: 160px;
}

.fh21-footer-qrcode {
    float: left;
    text-align: center;
    margin-left: 10px;
}

.fh21-footer-qrcode img {
    width: 70px;
    height: 70px;
}

.fh21-footer-qrcode p {
    line-height: 1.2;
    font-size: 12px;
}

/* ==================== 滚动相关布局 ==================== */

/* 滚动相对定位容器 */
.fh21-scroll-relative {
    position: relative;
    height: 100%;
}

/* 滚动定位容器 */
.fh21-scroll-container {
    position: relative;
}

/* 滚动元素 */
.fh21-scroll-element {
    position: relative;
}

.fh21-scroll-element.fixed {
    position: fixed;
    top: 0;
    width: auto;
    max-width: 300px;
    z-index: 100;
}

.fh21-scroll-element.absolute {
    position: absolute;
    bottom: 0;
    top: auto;
    width: 100%;
}

/* ==================== 工具类扩展 ==================== */

/* 检查更多按钮 */
.fh21-check-more {
    line-height: 48px;
    border-radius: 25px;
    width: 360px;
    border: 1px solid #b2d7ff;
    display: block;
    margin: 0 auto 50px;
    font-size: 16px;
    color: #007cff;
    text-align: center;
}

/* 文章上下篇 */
.fh21-article-nav {
    width: 50%;
    font-size: 14px;
}

.fh21-article-nav span {
    color: #2670d5;
}

.fh21-article-nav-link {
    max-width: 360px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fh21-article-nav-link:hover {
    color: #4d9df5;
}

/* 内容标题 */
.fh21-content-title {
    line-height: 44px;
}

.fh21-content-body {
    line-height: 30px;
}

.fh21-content-body p {
    margin-bottom: 26px;
}

.fh21-content-body a {
    color: #007cff;
}

.fh21-content-body img {
    display: block;
    margin: 0 auto 26px;
    max-width: 100%;
}

/* 标题样式 */
.fh21-section-title {
    line-height: 50px;
    border-bottom: 2px solid #eee;
}

.fh21-section-title span {
    display: inline-block;
    height: 100%;
    border-bottom: 2px solid #007cff;
    margin-bottom: -2px;
}

.fh21-section-title .inactive {
    border-bottom: none;
    color: #999;
}

/* 内容提示 */
.fh21-content-tips .fh21-tag {
    padding: 0 2px;
    border: 1px solid #007cff;
    border-radius: 2px;
}

/* 视频样式 */
.fh21-content-body video {
    display: block;
    max-width: 100%;
    margin: 0 auto;
    vertical-align: top;
}