/* ============================================
   CMS Frontend - 基于 manra.cn 风格
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    font-size: 14px; color: #666; background: #fff;
    min-width: 100%; position: relative;
}
a { color: #666; text-decoration: none; }
a:hover { color: #006eb9; }
img { max-width: 100%; height: auto; }
ul, li { list-style: none; padding: 0; margin: 0; }
p { margin: 0; font-weight: normal; color: #333; font-size: 14px; line-height: 1.8; }

/* --- Grid System (pintuer-like) --- */
.layout { overflow: hidden; width: 100%; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.line { margin-left: -15px; margin-right: -15px; }
.line::after { content: ''; display: table; clear: both; }
.line-big { margin-left: -24px; margin-right: -24px; }
.line-big::after { content: ''; display: table; clear: both; }
[class*="x"] { float: left; padding: 0 15px; min-height: 1px; }
.line-big [class*="x"] { padding: 0 24px; }
.x12 { width: 100%; } .x6 { width: 50%; } .x4 { width: 33.333%; } .x3 { width: 25%; } .x2 { width: 16.666%; } .x10{ width: 83.333%; }
.xl12 { width: 100%; } .xl6 { width: 50%; } .xl4 { width: 33.333%; } .xl3 { width: 25%; }
.xs12 { width: 100%; } .xs10{ width: 83.333%; } .xs4 { width: 33.333%; } .xs3 { width: 25%; } .xs2 { width: 16.666%; }
.xm12 { width: 100%; } .xm10{ width: 83.333%; } .xm4 { width: 33.333%; } .xm3 { width: 25%; } .xm2 { width: 16.666%; }
.pull-left, .float-left { float: left; }
.pull-right, .float-right { float: right; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-muted { color: #999; }

/* --- 顶部导航 --- */
.main-top { position: relative; width: 100%; }
#fh5co-header {
    position: relative; top: 0; left: 0; right: 0;
    width: 100%; height: 80px; z-index: 3;
}
#fh5co-header .header-box {
    background: rgba(25, 134, 58, 0.91);
    overflow: visible;
}
.header-box.fixed-top {
    position: fixed !important; top: 0; left: 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
    width: 100%; z-index: 99;
    background: rgba(25, 134, 58, 0.95) !important;
}
#fh5co-header .navbar { display: flex; align-items: center; justify-content: space-between; }
#fh5co-header .navbar-head { padding: 3px 34px 0 0; }
#fh5co-header .navbar-head img { width: 275px; max-height: 74px; }
#fh5co-header .navbar-body { }
#fh5co-header .navbar-body .nav { display: flex; align-items: center; }
#fh5co-header .navbar-body .nav li { }
#fh5co-header .navbar-body .nav li a {
    display: block; color: #fff; font-size: 16px; font-weight: normal;
    text-align: center; line-height: 80px; padding: 0 15px;
    white-space: nowrap;
}
#fh5co-header .navbar-body .nav li a.first-level { position: relative; }
#fh5co-header .navbar-body .nav li.current > a.first-level,
#fh5co-header .navbar-body .nav li:hover > a.first-level {
    color: #fff; background-color: rgba(255, 255, 255, 0.2);
}

/* 下拉菜单 */
.nav li { position: relative; }
.nav li .drop-menu {
    display: none; position: absolute; top: 80px; left: 0;
    min-width: 160px; z-index: 10; background: #fff;
    border-radius: 0; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.nav li:hover > .drop-menu { display: block; }
.nav li .drop-menu li { display: block; }
.nav li .drop-menu li a {
    display: block; width: 100%; font-size: 14px; color: #666 !important;
    background: #fff; line-height: 42px !important; text-align: left;
    padding: 0 20px !important; border-bottom: 1px solid #f0f0f0;
}
.nav li .drop-menu li a:hover { color: #19863a !important; background: #f9fafb; }

/* 二级下拉菜单 */
.nav li .drop-menu li.has-sub { position: relative; }
.nav li .drop-menu li.has-sub > a::after {
    content: ' ▸'; font-size: 10px; position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
}
.nav li .drop-menu .sub-drop-menu {
    display: none; position: absolute; top: 0; left: 100%;
    min-width: 150px; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.nav li .drop-menu li.has-sub:hover > .sub-drop-menu { display: block; }
.nav li .drop-menu .sub-drop-menu li { display: block; }
.nav li .drop-menu .sub-drop-menu li a {
    display: block; width: 100%; font-size: 13px; color: #666 !important;
    background: #fff; line-height: 38px !important; text-align: left;
    padding: 0 16px !important; border-bottom: 1px solid #f0f0f0;
}
.nav li .drop-menu .sub-drop-menu li a:hover { color: #19863a !important; background: #fafcfb; }

/* 导航容器 - 让电话和菜单在同一行 */
.nav-navicon { display: flex; align-items: center; gap: 12px; }

/* 客服电话 */
.navbar-form { font-size: 16px; color: #fff; white-space: nowrap; line-height: 80px; margin-left: auto; padding-left: 20px; }

/* 手机菜单 */
.fh5co-nav-toggle {
    display: none; position: fixed; top: 18px; right: 10px; z-index: 7;
    cursor: pointer; width: 35px; height: 28px;
}
.fh5co-nav-toggle i {
    position: relative; display: block; width: 28px; height: 4px;
    background: #fff; margin: 8px 0;
}
.fh5co-nav-toggle i::before, .fh5co-nav-toggle i::after {
    content: ''; width: 28px; height: 4px; background: #fff;
    position: absolute; left: 0; transition: 0.2s;
}
.fh5co-nav-toggle i::before { top: -9px; }
.fh5co-nav-toggle i::after { bottom: -9px; }
.fh5co-nav-toggle.active i { background: transparent; }
.fh5co-nav-toggle.active i::before { top: 0; transform: rotate(45deg); }
.fh5co-nav-toggle.active i::after { bottom: 0; transform: rotate(-45deg); }

/* 手机 Offcanvas */
#fh5co-offcanvas {
    display: none; position: fixed; right: 0; top: 10px;
    z-index: 15; width: 200px; background: #fff;
    padding: 40px 20px 20px; border-radius: 8px 0 0 8px;
    box-shadow: -2px 2px 15px rgba(0, 0, 0, 0.15);
}
#fh5co-offcanvas li a {
    display: block; font-size: 16px; color: #333;
    line-height: 42px; border-bottom: 1px solid #eee; padding: 0 8px;
}
#fh5co-offcanvas li a:hover { color: #19863a; }

/* --- 轮播图 --- */
#fh5co-hero { overflow: hidden; }
#fh5co-hero img { width: 100%; display: block; }

/* Banner 轮播容器 */
.banner-container {
    position: relative; width: 100%; overflow: hidden;
}
.banner-wrapper { position: relative; width: 100%; }
.banner-slide { display: none; width: 100%; }
.banner-slide.active { display: block; }
.banner-slide img { width: 100%; display: block; animation: bannerFadeIn 0.6s ease; }
@keyframes bannerFadeIn { from { opacity: 0.6; } to { opacity: 1; } }

/* Banner 圆点指示器 */
.banner-dots {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 8px; z-index: 5;
}
.banner-dot {
    width: 12px; height: 12px; border-radius: 50%;
    background: rgba(255,255,255,0.5); cursor: pointer;
    transition: all 0.3s;
}
.banner-dot.active, .banner-dot:hover { background: #fff; transform: scale(1.2); }

/* Banner 左右箭头 */
.banner-prev, .banner-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.3); color: #fff; border: none;
    font-size: 24px; width: 44px; height: 44px; border-radius: 50%;
    cursor: pointer; z-index: 5; display: flex; align-items: center; justify-content: center;
    transition: background 0.3s;
}
.banner-prev { left: 20px; }
.banner-next { right: 20px; }
.banner-prev:hover, .banner-next:hover { background: rgba(0,0,0,0.6); }

/* 文章封面图 */
.article-cover { margin-bottom: 20px; border-radius: 8px; overflow: hidden; }
.article-cover img { width: 100%; display: block; }

/* 子分类标签 */
.sub-cat-tag {
    display: inline-block; padding: 4px 16px; background: #f0fdf4;
    color: #166534; border: 1px solid #bbf7d0; border-radius: 20px;
    font-size: 13px; transition: all 0.2s;
}
.sub-cat-tag:hover { background: #166534; color: #fff; border-color: #166534; text-decoration: none; }

/* --- 区块标题 --- */
.fh5co-heading {
    position: relative; z-index: 1;
    background: rgb(56, 118, 29);
    border-left: 4px solid #ff9900;
    margin-bottom: 20px;
}
.fh5co-heading h2 {
    color: #fff; font-size: 18px; margin-bottom: 0;
    margin-left: 2%; padding: 8px 0;
    font-weight: bold;
}
.fh5co-heading h2 a { color: #fff; }
.fh5co-heading h2 a:hover { color: #ffcc00; }

/* --- 底部三栏：关于/动态/文化 --- */
#fh5co-bottom-info { padding: 0; }
#fh5co-bottom-info .bg-bottom { padding: 50px 0 10px; }
#fh5co-bottom-info .item1 { padding-right: 37px; }
#fh5co-bottom-info .item2 { padding: 0 24px; border-left: 1px solid #E3E3E3; border-right: 1px solid #E3E3E3; }
#fh5co-bottom-info .item3 { padding: 0 24px; }
#fh5co-bottom-info .fh5co-heading { margin-bottom: 20px; }
#fh5co-bottom-info .show-content { font-size: 14px; line-height: 1.8; }
#fh5co-bottom-info .show-content p { font-size: 14px; margin-bottom: 12px; text-indent: 2em; }
#fh5co-bottom-info .about-video { margin-bottom: 16px; }
#fh5co-bottom-info .about-video video { width: 100%; border-radius: 8px; display: block; max-height: 260px; object-fit: contain; background: #000; }

/* --- 文章列表 (media 样式) --- */
.show-list { margin-top: 10px; }
.media { }
.media-x { display: flex; align-items: flex-start; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px dashed #e8e8e8; }
.media-x:last-child { border-bottom: none; }
.media_img { overflow: hidden; width: 110px; flex-shrink: 0; margin-top: 4px; border: 1px solid #e5e5e5; }
.media_img img { width: 110px; height: 80px; object-fit: cover; display: block; transition: transform 0.3s; }
.media_img:hover img { transform: scale(1.1); }
.media-body { padding-left: 12px; flex: 1; min-width: 0; }
.media-body h3 { font-size: 14px; line-height: 1.5; }
.media-body h3 a { color: #333; display: block; font-size: 14px; line-height: 1.5; }
.media-body h3 a:hover { color: #006eb9; }
.media-body .time { color: #999; display: block; font-size: 12px; margin-top: 6px; }
.media-body p.desc { color: #888; font-size: 13px; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* --- 图片展示网格 --- */
#fh5co-cat-list { padding: 0; background: #fafafa; }
#fh5co-cat-list .bg-cat { padding: 37px 0 30px; border-bottom: 1px solid #e3e3e3; }
#fh5co-cat-list .show-list { }
#fh5co-cat-list .mb { margin-bottom: 24px; }
#fh5co-cat-list .media-img { overflow: hidden; border-radius: 4px; }
#fh5co-cat-list .media-img a { display: block; }
#fh5co-cat-list .media-img img {
    width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block;
    transform: scale(1); transition: transform 0.3s ease-out;
}
#fh5co-cat-list .media-img img:hover { transform: scale(1.1); }
#fh5co-cat-list h3 { font-size: 14px; text-align: center; margin: 14px 0 0; }
#fh5co-cat-list h3 a { color: #333; display: block; }
#fh5co-cat-list h3 a:hover { color: #19863a; }

/* 查看更多按钮 */
.item-join-click { text-align: center; padding: 20px 0 10px; }
.item-join-click a { display: inline-block; }
.item-join-click a h1 {
    color: #fff; margin: 0 auto; font-weight: normal;
    padding: 8px 30px; font-size: 16px;
    background: rgba(25, 134, 58, 0.88); border-radius: 50px;
    transition: background 0.3s;
}
.item-join-click a:hover h1 { background: rgb(25, 134, 58); }

/* --- 文章详情页 --- */
#fh5co-content_show { padding: 10px 15px 50px; }
#fh5co-content_show .qhd-title {
    border-bottom: 1px solid #eee; margin-bottom: 25px; padding-top: 6px;
}
#fh5co-content_show .qhd-title h1 { font-size: 24px; color: #333; padding: 10px 0; }
#fh5co-content_show .qhd-title span { margin: 0 5px; font-size: 12px; color: #999; }
#fh5co-content_show .show_body { font-size: 14px; line-height: 2; }
#fh5co-content_show .show_body img { max-width: 100%; height: auto !important; margin: 12px 0; border-radius: 4px; }
#fh5co-content_show .show_body h2 { font-size: 22px; color: #333; margin: 24px 0 14px; }
#fh5co-content_show .show_body h3 { font-size: 18px; color: #444; margin: 20px 0 10px; }
#fh5co-content_show .show_body p { text-indent: 0; font-size: 15px; line-height: 2; margin-bottom: 14px; }
#fh5co-content_show .show_body ul, #fh5co-content_show .show_body ol { margin: 10px 0 14px; padding-left: 24px; }
#fh5co-content_show .show_body li { list-style: disc; margin-bottom: 6px; font-size: 15px; }
#fh5co-content_show .show_body pre {
    background: #1e293b; color: #e2e8f0; padding: 16px; border-radius: 6px;
    overflow-x: auto; margin: 14px 0; font-size: 14px; line-height: 1.6;
}
#fh5co-content_show .show_body code { background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: 13px; color: #e11d48; }
#fh5co-content_show .show_body pre code { background: none; padding: 0; color: inherit; }
#fh5co-content_show .show_body blockquote {
    border-left: 4px solid #19863a; padding: 12px 16px; margin: 14px 0;
    background: #f9fafb; color: #555; border-radius: 0 6px 6px 0;
}

/* 标签 */
.tags-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; padding-top: 16px; border-top: 1px solid #eee; }
.tags-row .tag { border: 1px solid #ddd; border-radius: 20px; padding: 3px 14px; font-size: 13px; color: #888; }
.tags-row .tag:hover { background: #19863a; color: #fff; border-color: #19863a; }

/* 上一篇/下一篇 */
.nav-posts { display: flex; justify-content: space-between; margin-top: 30px; gap: 16px; }
.nav-posts a {
    flex: 1; padding: 14px 18px; background: #f9fafb; border-radius: 6px;
    border: 1px solid #eee; transition: all 0.2s; display: block;
}
.nav-posts a:hover { background: #f0fdf4; border-color: #19863a; color: #19863a; }
.nav-posts small { display: block; color: #999; font-size: 12px; margin-bottom: 4px; }
.nav-posts strong { color: #333; font-size: 14px; font-weight: normal; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

/* --- 文章列表页 --- */
#fh5co-content_show .article-list { }
#fh5co-content_show .article-list .article-item {
    padding: 20px 0; border-bottom: 1px dashed #e5e5e5;
    display: flex; gap: 20px;
}
#fh5co-content_show .article-list .article-thumb {
    width: 200px; height: 140px; flex-shrink: 0;
    overflow: hidden; border-radius: 4px; border: 1px solid #e5e5e5;
}
#fh5co-content_show .article-list .article-thumb img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s;
}
#fh5co-content_show .article-list .article-thumb:hover img { transform: scale(1.08); }
#fh5co-content_show .article-list .article-info { flex: 1; min-width: 0; }
#fh5co-content_show .article-list .article-info h3 { font-size: 18px; margin-bottom: 8px; }
#fh5co-content_show .article-list .article-info h3 a { color: #333; }
#fh5co-content_show .article-list .article-info h3 a:hover { color: #19863a; }
#fh5co-content_show .article-list .article-info p { color: #888; font-size: 14px; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#fh5co-content_show .article-list .article-meta { font-size: 12px; color: #aaa; display: flex; gap: 12px; flex-wrap: wrap; }

/* --- 分页 --- */
.dede_pages { padding: 20px 0; font-size: 14px; text-align: center; }
.dede_pages ul { display: inline-flex; gap: 4px; }
.dede_pages ul li {
    line-height: 28px; background: #fff; border: 1px solid #d8dadf;
    border-radius: 4px;
}
.dede_pages ul li a { color: #555; display: block; padding: 0 12px; }
.dede_pages ul li:hover { background: #19863a; border-color: #19863a; }
.dede_pages ul li:hover a { color: #fff; text-decoration: none; }
.dede_pages ul li.thisclass { background: #19863a; color: #fff; border-color: #19863a; }
.dede_pages ul li.thisclass a { color: #fff; cursor: default; }

/* --- 相册封面 --- */
.gallery-cover { height: 240px; }
.gallery-cover img { width: 100%; height: 100%; object-fit: cover; }

/* --- 灯箱 --- */
.lightbox {
    display: none; position: fixed; inset: 0; z-index: 999;
    background: rgba(0, 0, 0, 0.92); align-items: center; justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 4px; }
.lightbox .close-btn { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 40px; cursor: pointer; background: none; border: none; }

/* --- 页面内容 --- */
.page-banner { width: 100%; overflow: hidden; }
.page-banner img { width: 100%; display: block; }
.page-content { padding: 40px 0 60px; max-width: 860px; margin: 0 auto; }
.page-content h1 { font-size: 28px; color: #333; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid #19863a; }
.page-content p { font-size: 15px; line-height: 2; margin-bottom: 16px; color: #333; }
.page-content h2 { font-size: 22px; margin: 28px 0 14px; color: #333; }
.page-content h3 { font-size: 18px; margin: 20px 0 10px; color: #444; }

/* --- 页脚 --- */
footer { }
footer .foot-top { background: #f5f5f5; padding: 40px 0 30px; }
footer .foot-top .nav-list { margin-bottom: 20px; }
footer .foot-top .nav-list > a {
    color: #333; font-size: 16px; font-weight: 600; line-height: 40px; display: block;
}
footer .foot-top .nav-list ul li { }
footer .foot-top .nav-list ul li a {
    display: block; color: #808080; font-size: 14px; line-height: 30px; padding: 0;
}
footer .foot-top .nav-list ul li a:hover { color: #19863a; text-decoration: underline; }
footer .foot-top .foot-contact { min-width: 145px; float: right; font-size: 14px; }
footer .foot-top .foot-contact b {
    display: inline-block; margin-bottom: 6px; font-size: 22px; font-weight: normal; color: #19863a;
}
footer .foot-top .foot-contact .foot-code { color: #666; margin-bottom: 10px; }
footer .foot-top .foot-contact .foot-code p { margin: 4px 0; }
footer .foot-top .foot-contact .foot-code img { border-radius: 8px; }
footer .foot-top .foot-contact .qr-placeholder {
    width: 120px; height: 120px; border: 1px dashed #ccc; margin: 0 auto;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    font-size: 28px; color: #aaa; border-radius: 8px;
}
footer .foot-bot {
    background: #2e2e2e; font-size: 13px; color: #aaa; padding: 15px 0;
}
footer .foot-bot a { color: #aaa; }
footer .foot-bot a:hover { color: #fff; }
footer .foot-bot .navbar-left { padding: 8px 0; }

/* --- 手机底部导航 --- */
#toolbar { display: none; }
.blank55 { height: 0; }

/* --- 回到顶部 --- */
.backToTop {
    display: none; width: 36px; height: 36px; position: fixed;
    right: 15px; bottom: 80px; cursor: pointer; z-index: 9;
    background: #19863a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z'/%3E%3C/svg%3E") no-repeat center;
    background-size: 24px; border-radius: 4px; opacity: 0.8;
}
.backToTop:hover { opacity: 1; }

/* --- 响应式 --- */
@media screen and (max-width: 1000px) {
    #fh5co-header .navbar-head img { width: 200px; margin-top: 13px; }
    #fh5co-header .navbar-body .nav li a { padding: 0 8px; font-size: 14px; }
    #fh5co-bottom-info .item1 { padding-right: 17px; }
    #fh5co-bottom-info .item2 { padding: 0 15px; }
    #fh5co-bottom-info .item3 { padding: 0 15px; }
    .media_img { width: 80px; }
    .media_img img { width: 80px; height: 60px; }
    .line-big { margin-left: -10px; margin-right: -10px; }
    .line-big [class*="x"] { padding: 0 10px; }
}

@media screen and (max-width: 760px) {
    /* 移动端导航 */
    .fh5co-nav-toggle { display: block; }
    .navbar-form { display: none !important; }
    .nav-menu { display: none !important; }
    #fh5co-header { position: static !important; height: auto !important; }
    #fh5co-header .header-box { position: relative; min-height: 56px; }
    #fh5co-header .navbar-head img { width: 150px; margin-top: 10px; }

    /* 移动端三栏变一栏 */
    .xs12 { width: 100% !important; }
    .xs10 { width: 100% !important; }
    .xs4  { width: 50% !important; }
    .xs3  { width: 50% !important; }
    .xs2  { width: 50% !important; }
    #fh5co-bottom-info .item { border: none !important; padding: 0 !important; margin-bottom: 20px; }
    #fh5co-bottom-info .show-content { max-height: none; }
    .media_img { width: 90px; }
    .media_img img { width: 90px; height: 68px; }

    /* 页脚 */
    footer .foot-top { padding: 15px 0 20px; }
    footer .foot-top .nav-list > a {
        display: block; border-bottom: 1px solid #ddd; color: #333; font-size: 15px;
        padding: 8px 0; width: 100%;
    }
    footer .foot-top .nav-list ul { display: none; }
    footer .foot-top .foot-contact { float: none !important; text-align: center; margin-top: 15px; }
    footer .foot-bot { text-align: center; }

    /* 图片网格 */
    .mb { margin-bottom: 16px; }

    /* 文章列表 */
    #fh5co-content_show .article-list .article-item { flex-direction: column; }
    #fh5co-content_show .article-list .article-thumb { width: 100%; height: 180px; }

    /* 手机底部工具栏 */
    .blank55 { height: 55px; }
    #toolbar {
        display: flex; color: #fff; width: 100%; height: 55px;
        position: fixed; bottom: 0; left: 0; z-index: 99;
        background: #000;
    }
    #toolbar a {
        color: #fff; display: block; padding: 6px 0 0;
        line-height: 20px; font-size: 14px; flex: 1;
    }
    #toolbar a span { font-size: 20px; display: block; }

    /* 回到顶部 */
    .backToTop { bottom: 70px; right: 10px; }
}

@media screen and (max-width: 480px) {
    #fh5co-header .navbar-head img { width: 120px; }
    .xs4 { width: 50% !important; }
    .line-big [class*="x"] { padding: 0 8px; }
}
