/* =====================================================
   环境产品领跑者国际联盟 - 模板样式
   参照 cscses.com 绿色环保风格
   主色：#538E24  深绿：#48A30A
   ===================================================== */

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    font: 14px/1.7 "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", SimSun, Arial, sans-serif;
    color: #333;
    background: #f2f4f0;
    min-height: 100vh;
}
ul, ol { list-style: none; }
a { color: #333; text-decoration: none; transition: color .2s; }
a:hover { color: #538E24; }
img { border: 0; max-width: 100%; vertical-align: middle; }
input, button, textarea, select { font-family: inherit; font-size: inherit; outline: none; }
.clear { clear: both; }

/* ---------- Layout ---------- */
.w1160 { width: 1160px; max-width: 96%; margin: 0 auto; }

/* ---------- Topbar ---------- */
.topbar {
    height: 34px;
    line-height: 34px;
    background: #f5f5f5;
    border-bottom: 1px solid #e5e5e5;
    font-size: 12px;
    color: #666;
}
.topbar .w1160 { display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: #666; margin-left: 14px; }
.topbar a:hover { color: #538E24; }

/* ---------- Header ---------- */
.header { background: #fff; padding: 18px 0; }
.header .w1160 { display: flex; align-items: center; justify-content: space-between; }
.header .logo { display: flex; align-items: center; gap: 12px; }
.header .logo .logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    background: #538E24;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    border-radius: 6px;
    font-family: "Microsoft YaHei", sans-serif;
    flex-shrink: 0;
}
.header .logo .logo-txt { line-height: 1.3; }
.header .logo .logo-cn {
    font-size: 26px;
    font-weight: bold;
    color: #538E24;
    letter-spacing: 2px;
    font-family: "Microsoft YaHei", sans-serif;
}
.header .logo .logo-en { font-size: 12px; color: #999; letter-spacing: 1px; }
.header-search { display: flex; align-items: center; }
.header-search .ssbox {
    width: 220px;
    height: 32px;
    line-height: 32px;
    border: 1px solid #ccc;
    border-right: none;
    padding: 0 8px;
    font-size: 13px;
}
.header-search .ssbtn {
    height: 32px;
    padding: 0 18px;
    border: none;
    background: #538E24;
    color: #fff;
    cursor: pointer;
}
.header-search .ssbtn:hover { background: #48A30A; }

/* ---------- Menu ---------- */
.menu-wrap { background: #538E24; }
.menu-wrap .menu-inner { box-shadow: 0 2px 4px rgba(0,0,0,.08); }
#menu { height: 44px; }
#menu > li { float: left; position: relative; }
#menu > li > a {
    display: block;
    height: 44px;
    line-height: 44px;
    padding: 0 28px;
    color: #fff;
    font-size: 16px;
    background: url(../images/menu_line.png) no-repeat right center;
}
#menu > li:last-child > a { background: none; }
#menu > li > a:hover, #menu > li.on > a { background-color: #48A30A; color: #fff; }
#menu .submenu {
    display: none;
    position: absolute;
    left: 0;
    top: 44px;
    z-index: 999;
    min-width: 100%;
    background: #fff;
    border: 1px solid #538E24;
    border-top: 2px solid #48A30A;
    box-shadow: 0 3px 8px rgba(0,0,0,.15);
}
#menu > li:hover .submenu { display: block; }
#menu .submenu li a {
    display: block;
    padding: 0 18px;
    line-height: 38px;
    white-space: nowrap;
    font-size: 14px;
    color: #444;
    border-bottom: 1px dashed #e5e5e5;
}
#menu .submenu li:last-child a { border-bottom: none; }
#menu .submenu li a:hover { background: #f0f7ea; color: #538E24; }

/* ---------- Banner ---------- */
.banner {
    height: 250px;
    position: relative;
    overflow: hidden;
    background: #48730f;
}
.banner .slide {
    position: absolute;
    left: 0; top: 0;
    width: 100%; height: 100%;
    display: none;
    align-items: center;
}
.banner .slide.show { display: flex; }
.banner .slide .w1160 { position: relative; height: 100%; }
.banner .slide1 {
    background: linear-gradient(120deg, #3c6e12 0%, #538E24 55%, #6fae3a 100%);
}
.banner .slide2 {
    background: linear-gradient(120deg, #2f5c0e 0%, #48A30A 60%, #8ac152 100%);
}
.banner .slide-txt { color: #fff; max-width: 640px; }
.banner .slide-txt h2 {
    font-size: 38px;
    letter-spacing: 6px;
    font-weight: bold;
    text-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.banner .slide-txt p {
    margin-top: 12px;
    font-size: 16px;
    letter-spacing: 2px;
    opacity: .92;
}
.banner .slide-txt .leaf {
    display: inline-block;
    margin-bottom: 10px;
    padding: 3px 14px;
    border: 1px solid rgba(255,255,255,.6);
    border-radius: 14px;
    font-size: 13px;
    letter-spacing: 3px;
}
/* 验证查询 */
.query-box {
    position: absolute;
    right: 0; top: 24px;
    width: 320px;
    background: rgba(255,255,255,.96);
    border-top: 3px solid #dcab5f;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
    padding: 14px 20px 18px;
}
.query-box h3 {
    font-size: 16px;
    color: #538E24;
    margin-bottom: 10px;
    padding-left: 10px;
    border-left: 3px solid #538E24;
}
.query-box .qrow { margin-top: 10px; display: flex; align-items: center; }
.query-box .qrow label { width: 72px; font-size: 13px; color: #555; flex-shrink: 0; }
.query-box .qrow input {
    flex: 1;
    height: 30px;
    border: 1px solid #ccc;
    padding: 0 6px;
    font-size: 13px;
}
.query-box .qrow input:focus { border-color: #538E24; }
.query-box .qsubmit {
    margin-top: 14px;
    width: 100%;
    height: 34px;
    border: none;
    background: #538E24;
    color: #fff;
    letter-spacing: 6px;
    cursor: pointer;
}
.query-box .qsubmit:hover { background: #48A30A; }
/* banner 圆点 */
.banner-dots {
    position: absolute;
    bottom: 12px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 5;
}
.banner-dots a {
    display: inline-block;
    width: 12px; height: 12px;
    margin: 0 4px;
    background: #ddd;
    border-radius: 12px;
    font-size: 0;
}
.banner-dots a.on { background: #c00; }

/* ---------- 通用版块盒子 ---------- */
.home-main { padding: 16px 0 0; }
.home-grid { display: flex; gap: 14px; margin-bottom: 14px; align-items: stretch; }
.home-col-l { flex: 1 1 auto; min-width: 0; }
.home-col-r { flex: 0 0 320px; width: 320px; }
.home-grid-2 { display: flex; gap: 14px; margin-bottom: 14px; }
.home-grid-2 > .hbox { flex: 1 1 0; min-width: 0; }

.hbox {
    background: #fff;
    border: 1px solid #e0e0e0;
    margin-bottom: 14px;
}
.hbox-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 42px;
    padding: 0 14px;
    border-bottom: 2px solid #538E24;
    background: linear-gradient(#fbfdf9, #f1f6ec);
}
.hbox-title h2 {
    font-size: 17px;
    color: #538E24;
    font-weight: bold;
    position: relative;
    padding-left: 12px;
}
.hbox-title h2::before {
    content: "";
    position: absolute;
    left: 0; top: 4px;
    width: 5px; height: 16px;
    background: #538E24;
    border-radius: 2px;
}
.hbox-title .more { font-size: 12px; color: #999; }
.hbox-title .more:hover { color: #538E24; }
.hbox-body { padding: 10px 14px 12px; }

/* 日期+标题列表（cscses 风格） */
.dlist li {
    border-bottom: 1px dashed #e5e5e5;
    padding: 7px 2px;
    font-size: 14px;
    overflow: hidden;
}
.dlist li:last-child { border-bottom: none; }
.dlist li .d { color: #999; font-family: Arial, sans-serif; margin-right: 12px; font-size: 13px; }
.dlist li a { color: #333; }
.dlist li a:hover { color: #538E24; text-decoration: underline; }

/* 纯文本介绍 */
.intro-txt {
    font-size: 14px;
    line-height: 1.9;
    color: #555;
    text-indent: 2em;
}
.intro-txt p { margin-bottom: 8px; }

/* 证书模板（图片卡片） */
.cert-list { display: flex; gap: 12px; }
.cert-list li { flex: 1; border: 1px solid #e5e5e5; background: #fafafa; text-align: center; }
.cert-list li a { display: block; padding: 8px; }
.cert-list .cert-img {
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eef5e7, #dfeedd);
    border: 1px solid #cfe3bf;
    margin-bottom: 8px;
    overflow: hidden;
}
.cert-list .cert-img img { max-height: 120px; max-width: 90%; }
.cert-list .cert-name { font-size: 13px; color: #444; padding-bottom: 4px; display: block; }
.cert-list li a:hover .cert-name { color: #538E24; }
.cert-empty { color: #538E24; font-size: 30px; font-weight: bold; letter-spacing: 2px; }

/* 专家卡片 */
.expert-list { display: flex; gap: 14px; }
.expert-list li {
    flex: 1;
    border: 1px solid #e5e5e5;
    background: #fafafa;
    padding: 14px;
    display: flex;
    gap: 12px;
    align-items: center;
}
.expert-list li a { display: flex; gap: 12px; align-items: center; }
.expert-avatar {
    width: 74px; height: 92px;
    background: linear-gradient(135deg, #dfe9d4, #c8dcb5);
    border: 1px solid #b5d09c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #538E24;
    flex-shrink: 0;
    overflow: hidden;
}
.expert-avatar img { width: 100%; height: 100%; object-fit: cover; }
.expert-info h3 { font-size: 15px; color: #333; }
.expert-info p { font-size: 12px; color: #888; margin-top: 4px; }
.expert-list li a:hover h3 { color: #538E24; }

/* ---------- 右侧栏 ---------- */
.sbox { background: #fff; border: 1px solid #e0e0e0; margin-bottom: 14px; }
.sbox-title {
    height: 38px;
    line-height: 38px;
    padding: 0 12px;
    font-size: 15px;
    color: #538E24;
    font-weight: bold;
    border-bottom: 2px solid #538E24;
    background: linear-gradient(#fbfdf9, #f1f6ec);
}
.sbox-body { padding: 12px; }
.sbox-tabs {
    display: flex;
    height: 38px;
    border-bottom: 2px solid #538E24;
    background: linear-gradient(#fbfdf9, #f1f6ec);
}
.sbox-tabs .tab {
    flex: 1;
    line-height: 38px;
    text-align: center;
    font-size: 15px;
    color: #999;
    cursor: pointer;
    border-right: 1px solid #e0e0e0;
    transition: all 0.2s;
}
.sbox-tabs .tab:last-child { border-right: none; }
.sbox-tabs .tab:hover { color: #538E24; background: #fff; }
.sbox-tabs .tab.on { color: #538E24; font-weight: bold; background: #fff; }
.rec-hot-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* 会员登录 */
.login-form .lrow { display: flex; align-items: center; margin-bottom: 10px; }
.login-form .lrow label { width: 58px; font-size: 13px; color: #666; flex-shrink: 0; }
.login-form .lrow input {
    flex: 1;
    height: 30px;
    border: 1px solid #ccc;
    padding: 0 6px;
    font-size: 13px;
}
.login-form .lrow input:focus { border-color: #538E24; box-shadow: 0 0 3px #538E24; }
.login-form .lbtn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}
.login-form .lbtn button {
    height: 32px;
    padding: 0 26px;
    background: #538E24;
    color: #fff;
    border: none;
    cursor: pointer;
}
.login-form .lbtn button:hover { background: #48A30A; }
.login-form .lbtn a { font-size: 12px; color: #538E24; }
.login-type { font-size: 12px; color: #999; margin-bottom: 8px; }
.login-type label { margin-right: 12px; cursor: pointer; }
.login-type input { vertical-align: -2px; margin-right: 3px; }

/* 热门文章序号 */
.hot-list li {
    display: flex;
    gap: 8px;
    padding: 6px 2px;
    border-bottom: 1px dashed #eee;
    font-size: 13px;
    align-items: center;
}
.hot-list li:last-child { border-bottom: none; }
.hot-list .num {
    width: 18px; height: 18px;
    line-height: 18px;
    text-align: center;
    background: #e5e5e5;
    color: #666;
    font-size: 12px;
    border-radius: 2px;
    flex-shrink: 0;
    font-family: Arial, sans-serif;
}
.hot-list li:nth-child(1) .num,
.hot-list li:nth-child(2) .num,
.hot-list li:nth-child(3) .num { background: #538E24; color: #fff; }
.hot-list li a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 侧栏标签 */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
    padding: 3px 10px;
    background: #f0f5ea;
    border: 1px solid #dbe8cd;
    font-size: 12px;
    color: #557a2e;
}
.tag-cloud a:hover { background: #538E24; color: #fff; border-color: #538E24; }

/* ---------- 面包屑 ---------- */
.crumb {
    padding: 10px 0;
    font-size: 13px;
    color: #666;
}
.crumb a { color: #538E24; }
.crumb a:hover { text-decoration: underline; }
.crumb .sep { margin: 0 6px; color: #bbb; }

/* ---------- 栏目列表页 ---------- */
.page-title-bar {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: 3px solid #538E24;
    padding: 12px 18px;
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.page-title-bar h1 { font-size: 20px; color: #333; }
.page-title-bar .sub { font-size: 12px; color: #999; }

.article-list-box { background: #fff; border: 1px solid #e0e0e0; padding: 6px 18px; }
.article-list-box li {
    padding: 11px 4px;
    border-bottom: 1px dashed #e5e5e5;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}
.article-list-box li:last-child { border-bottom: none; }
.article-list-box li .d { color: #999; font-size: 13px; font-family: Arial, sans-serif; flex-shrink: 0; }
.article-list-box li a { color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article-list-box li a:hover { color: #538E24; text-decoration: underline; }

/* 卡片式列表（图片/专家/证书频道用） */
.grid-list { display: flex; flex-wrap: wrap; gap: 14px; padding: 14px 18px; }
.grid-list li {
    width: calc(33.33% - 10px);
    border: 1px solid #e5e5e5;
    background: #fafafa;
    padding: 12px;
}
.grid-list li a { display: block; }
.grid-list .gtitle {
    font-size: 14px;
    color: #333;
    display: block;
    text-align: center;
    margin-top: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.grid-list li a:hover .gtitle { color: #538E24; }
.grid-list .gthumb {
    height: 110px;
    background: linear-gradient(135deg, #eef5e7, #dfeedd);
    border: 1px solid #cfe3bf;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #538E24;
    font-size: 22px;
    font-weight: bold;
    overflow: hidden;
}
.grid-list .gthumb img { max-width: 100%; max-height: 100%; }
.grid-list .gdesc { font-size: 12px; color: #888; margin-top: 6px; line-height: 1.6; max-height: 38px; overflow: hidden; }

/* ---------- 文章详情页 ---------- */
.article-box { background: #fff; border: 1px solid #e0e0e0; padding: 22px 26px 26px; }
.article-box h1 {
    font-size: 22px;
    color: #333;
    line-height: 1.5;
    text-align: center;
}
.article-info {
    text-align: center;
    color: #999;
    font-size: 12px;
    padding: 12px 0;
    margin-bottom: 14px;
    border-bottom: 1px solid #eee;
}
.article-info span { margin: 0 10px; }
.article-content {
    font-size: 15px;
    line-height: 2;
    color: #444;
    word-break: break-word;
}
.article-content p { margin-bottom: 12px; text-indent: 2em; }
.article-content img { max-width: 100%; height: auto; }
.article-page-nav {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 14px;
    font-size: 13px;
    color: #666;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.article-page-nav a { color: #538E24; }
.back-prev { margin-top: 16px; text-align: center; }
.back-prev button {
    height: 32px;
    padding: 0 30px;
    background: #f0f5ea;
    border: 1px solid #cfe3bf;
    color: #538E24;
    cursor: pointer;
}
.back-prev button:hover { background: #538E24; color: #fff; }

/* 单页 */
.page-box { background: #fff; border: 1px solid #e0e0e0; padding: 24px 28px; }
.page-box h1 { font-size: 20px; margin-bottom: 14px; border-left: 4px solid #538E24; padding-left: 12px; }
.page-box .article-content { margin-top: 6px; }

/* ---------- 分页 ---------- */
.pagination { text-align: center; padding: 16px 0; }
.pagination li { display: inline-block; margin: 0 3px; }
.pagination li a {
    display: block;
    min-width: 30px;
    height: 30px;
    line-height: 28px;
    padding: 0 8px;
    border: 1px solid #ccc;
    background: #fff;
    color: #555;
    font-size: 13px;
}
.pagination li a:hover { border-color: #538E24; color: #538E24; }
.pagination li.active a {
    background: #538E24;
    border-color: #538E24;
    color: #fff;
}

/* ---------- Footer ---------- */
.footer {
    margin-top: 20px;
    border-top: 8px solid #48A30A;
    background: #e5e5e5;
    padding: 18px 0 0;
    font-size: 13px;
    color: #555;
}
.footer-links { padding-bottom: 12px; }
.footer-links .ftit { font-weight: bold; color: #48730f; margin-right: 8px; }
.footer-links a { margin-right: 14px; color: #555; }
.footer-links a:hover { color: #538E24; text-decoration: underline; }
.footer-info {
    background: #dcdcdc;
    padding: 12px 0;
    text-align: center;
    font-size: 12px;
    color: #777;
    line-height: 1.9;
}
.footer-info a { color: #777; }
.footer-info a:hover { color: #538E24; }

/* ---------- 搜索面板 ---------- */
.search-panel {
    display: none;
    position: absolute;
    left: 0; top: 100%;
    width: 100%;
    background: #fff;
    border-bottom: 2px solid #48A30A;
    box-shadow: 0 4px 10px rgba(0,0,0,.12);
    z-index: 60;
}
.search-panel.open { display: block; }
.search-panel .sp-inner { padding: 12px 0; display: flex; gap: 8px; }
.search-panel input[type=text] {
    flex: 1;
    height: 34px;
    border: 1px solid #ccc;
    padding: 0 10px;
    font-size: 13px;
}
.search-panel input[type=text]:focus { border-color: #538E24; }
.search-panel button {
    height: 34px;
    padding: 0 26px;
    background: #538E24;
    border: none;
    color: #fff;
    cursor: pointer;
}
.search-panel button:hover { background: #48A30A; }

/* ---------- 返回顶部 ---------- */
#backToTop {
    position: fixed;
    right: 18px;
    bottom: 60px;
    width: 40px; height: 40px;
    border: 1px solid #cfe3bf;
    background: #fff;
    color: #538E24;
    font-size: 18px;
    cursor: pointer;
    display: none;
    z-index: 70;
}
#backToTop.show { display: block; }
#backToTop:hover { background: #538E24; color: #fff; }

/* ---------- 无结果 ---------- */
.no-result {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 50px 0;
    text-align: center;
    color: #999;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
    .home-grid, .home-grid-2 { flex-direction: column; }
    .home-col-r { width: 100%; flex: 1 1 auto; }
    .header .w1160 { flex-direction: column; gap: 12px; }
    .header-search { width: 100%; }
    .header-search .ssbox { flex: 1; width: auto; }
    #menu { height: auto; }
    #menu > li { float: none; border-bottom: 1px solid rgba(255,255,255,.15); }
    #menu > li > a { background: none; }
    #menu .submenu { position: static; border: none; box-shadow: none; background: rgba(0,0,0,.08); }
    #menu .submenu li a { color: #e8f2dd; border-color: rgba(255,255,255,.1); }
    .query-box { position: static; width: auto; margin: 14px; }
    .banner .slide { position: static; display: none; padding: 30px 0; height: auto; }
    .banner .slide.show { display: block; }
    .banner { height: auto; padding-bottom: 20px; }
    .cert-list, .expert-list { flex-direction: column; }
    .grid-list li { width: calc(50% - 7px); }
    .menu-toggle {
        display: block;
        background: none;
        border: 1px solid rgba(255,255,255,.5);
        color: #fff;
        height: 32px;
        padding: 0 14px;
        margin: 6px 0;
        cursor: pointer;
    }
}
@media (min-width: 1001px) {
    .menu-toggle { display: none; }
    #menu { display: block !important; }
}
