/* ===== 前台网站样式（清新农业绿主题） ===== */
body {
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    color: #333;
    background: #f6faf6;
}
a { color: #43a047; }
a:hover, a:focus { color: #2e7d32; text-decoration: none; }

/* 顶部信息栏 */
.topbar {
    background: linear-gradient(90deg, #2e7d32, #43a047);
    color: #eaf7ea;
    font-size: 13px;
    padding: 6px 0;
}
.topbar .glyphicon { margin-right: 4px; }

/* 导航 */
.navbar-site {
    background: #fff;
    border: none;
    border-bottom: 3px solid #43a047;
    border-radius: 0;
    margin-bottom: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.navbar-site .navbar-brand {
    color: #43a047;
    font-size: 22px;
    font-weight: 700;
    padding-top: 16px;
}
.navbar-site .navbar-brand .glyphicon { color: #66bb6a; }
.navbar-site .navbar-nav > li > a {
    color: #333;
    font-size: 15px;
    padding: 16px 18px;
}
.navbar-site .navbar-nav > li > a:hover,
.navbar-site .navbar-nav > li.active > a {
    color: #fff;
    background: #43a047;
}
.navbar-site .navbar-nav > li.active > a {
    color: #fff;
    background: #43a047;
}

/* 轮播 */
.banner-wrap { margin-bottom: 30px; }
.carousel .item { height: 420px; overflow: hidden; background: #66bb6a; }
.carousel .item img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
@media (max-width: 767px) {
    .carousel .item { height: 220px; }
}

/* 首页区块 */
.section { margin-bottom: 30px; }
.section-title {
    text-align: center;
    margin-bottom: 20px;
}
.section-title h2 {
    color: #2e7d32;
    font-weight: 700;
    margin: 0 0 5px;
}
.section-title .line {
    width: 60px;
    height: 3px;
    background: #66bb6a;
    margin: 0 auto 8px;
}
.section-title p { color: #888; margin: 0; }

/* 产品卡片 */
.product-card {
    background: #fff;
    border: 1px solid #ddebe0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    transition: box-shadow .2s, transform .2s;
}
.product-card:hover {
    box-shadow: 0 6px 18px rgba(67,160,71,.18);
    transform: translateY(-3px);
}
.product-card .p-img {
    display: block;
    height: 180px;
    overflow: hidden;
    background: #eef7ee;
}
.product-card .p-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.product-card:hover .p-img img { transform: scale(1.06); }
.product-card .p-body { padding: 12px 14px; }
.product-card .p-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.product-card .p-intro {
    font-size: 12px;
    color: #888;
    height: 34px;
    overflow: hidden;
    margin-bottom: 8px;
}
.product-card .p-more { font-size: 12px; color: #43a047; }

/* 新闻列表（首页） */
.news-list-home { list-style: none; margin: 0; padding: 0; }
.news-list-home li {
    padding: 12px 4px;
    border-bottom: 1px dashed #ddebe0;
}
.news-list-home li a {
    color: #444;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.news-list-home li a:hover { color: #43a047; }
.news-list-home li .date {
    float: right;
    color: #aaa;
    font-size: 12px;
}

/* 内页 */
.page-banner {
    background: linear-gradient(135deg, #43a047, #66bb6a);
    color: #fff;
    padding: 40px 0;
    text-align: center;
    margin-bottom: 30px;
}
.page-banner h1 {
    margin: 0 0 5px;
    font-size: 28px;
    font-weight: 700;
}
.page-banner p { color: #eaf7ea; margin: 0; font-size: 14px; }

/* 面包屑 */
.breadcrumb-box {
    background: #fff;
    border: 1px solid #ddebe0;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 13px;
}
.breadcrumb-box .glyphicon { margin-right: 4px; }

/* 分类侧边栏 */
.cat-sidebar {
    background: #fff;
    border: 1px solid #ddebe0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}
.cat-sidebar .cat-title {
    background: #43a047;
    color: #fff;
    padding: 12px 15px;
    font-size: 16px;
    font-weight: 600;
}
.cat-sidebar .cat-title .glyphicon { margin-right: 6px; }
.cat-sidebar ul { list-style: none; margin: 0; padding: 0; }
.cat-sidebar ul li { border-bottom: 1px solid #eef7ee; }
.cat-sidebar ul li a {
    display: block;
    padding: 11px 18px;
    color: #555;
}
.cat-sidebar ul li a:hover,
.cat-sidebar ul li.active a {
    background: #e8f5e9;
    color: #43a047;
    padding-left: 22px;
}
.cat-sidebar ul li.sub a { padding-left: 34px; }
.cat-sidebar ul li.sub a:hover { padding-left: 38px; }

/* 详情内容 */
.detail-box {
    background: #fff;
    border: 1px solid #ddebe0;
    border-radius: 8px;
    padding: 25px;
    min-height: 400px;
}
.detail-title {
    font-size: 22px;
    font-weight: 700;
    color: #2e7d32;
    margin: 0 0 12px;
    text-align: center;
}
.detail-meta {
    text-align: center;
    color: #999;
    font-size: 13px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eef7ee;
    margin-bottom: 20px;
}
.article-content { line-height: 1.9; font-size: 15px; }
.article-content p { margin-bottom: 12px; }
.article-content img { max-width: 100%; height: auto; }

/* 单页内容 */
.page-content { line-height: 2; font-size: 15px; }
.page-content p { margin-bottom: 12px; }
.page-content img { max-width: 100%; height: auto; }

/* 分页 */
.pagination > li > a { color: #43a047; }
.pagination > .active > a,
.pagination > .active > a:hover {
    background: #43a047;
    border-color: #43a047;
}

/* 招聘 */
.recruit-item {
    background: #fff;
    border: 1px solid #ddebe0;
    border-radius: 8px;
    padding: 18px 20px;
    margin-bottom: 15px;
}
.recruit-item .r-title {
    font-size: 16px;
    font-weight: 600;
    color: #2e7d32;
}
.recruit-item .r-title .badge { background: #43a047; }
.recruit-item .r-info { color: #888; font-size: 13px; margin: 8px 0; }
.recruit-item .r-info span { margin-right: 18px; }

/* 联系卡片 */
.contact-item {
    background: #fff;
    border: 1px solid #ddebe0;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    margin-bottom: 20px;
    transition: box-shadow .2s;
}
.contact-item:hover { box-shadow: 0 6px 18px rgba(67,160,71,.12); }
.contact-item .glyphicon {
    font-size: 36px;
    color: #43a047;
    margin-bottom: 12px;
}
.contact-item h4 { color: #2e7d32; font-weight: 600; }
.contact-item p { color: #666; margin: 0; font-size: 14px; }

/* 页脚 */
.footer {
    background: #2e7d32;
    color: #d8e8dc;
    padding: 35px 0 15px;
    margin-top: 40px;
    font-size: 13px;
}
.footer h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #66bb6a;
}
.footer a { color: #d8e8dc; }
.footer a:hover { color: #fff; }
.footer ul { list-style: none; padding: 0; }
.footer ul li { padding: 3px 0; }
.footer .footer-link-list li { display: inline-block; padding: 0; margin: 0 14px 8px 0; }
.footer .footer-link-list li a { color: #e8f5e9; }
.footer .copyright {
    border-top: 1px solid #66bb6a;
    margin-top: 25px;
    padding-top: 12px;
    text-align: center;
    color: #c2e0c8;
    font-size: 12px;
}

/* 按钮统一主题色 */
.btn-success {
    background-color: #43a047;
    border-color: #43a047;
}
.btn-success:hover, .btn-success:focus, .btn-success:active {
    background-color: #2e7d32;
    border-color: #2e7d32;
}

/* 响应式调整 */
@media (max-width: 767px) {
    .navbar-site .navbar-nav > li > a { padding: 10px 15px; }
    .section-title h2 { font-size: 20px; }
}
