/* 农科好物页布局 */

body {
  background: #f4f7f5;
}

.main.nongke-page,
.main {
  clear: both;
  width: 1200px;
  margin: 0 auto 40px;
  padding: 0;
  min-height: 650px;
  background: transparent;
  overflow: hidden;
}

/* ---------- Tab ---------- */
.nongke-page .layui-tab,
#tab1.layui-tab {
  width: 1200px !important;
  margin: 20px auto 16px;
  position: relative;
}

.nongke-page .layui-tab-title,
#tab1 .layui-tab-title {
  display: flex !important;
  width: 100% !important;
  height: auto;
  border: none;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 14px rgba(20, 60, 40, 0.06);
  border: 1px solid #e8eee9;
  padding: 6px;
  box-sizing: border-box;
  overflow: hidden;
}

.nongke-page .layui-tab-title li,
#tab1 .layui-tab-title li {
  flex: 1;
  min-width: 0;
  line-height: 44px;
  height: 44px;
  margin: 0;
  padding: 0 12px;
  font-size: 16px;
  font-weight: bold;
  color: #555;
  text-align: center;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nongke-page .layui-tab-brief > .layui-tab-title .layui-this,
#tab1.layui-tab-brief > .layui-tab-title .layui-this {
  color: #fff !important;
  background: linear-gradient(135deg, #056b38 0%, #008a49 100%);
}

.nongke-page .layui-tab-brief > .layui-tab-title .layui-this:after,
#tab1.layui-tab-brief > .layui-tab-title .layui-this:after {
  display: none;
}

.nongke-page .layui-tab-title li:hover {
  color: #008a49;
}

.nongke-page .layui-tab-title li.layui-this:hover {
  color: #fff;
}

/* ---------- 主体双栏 ---------- */
.nongke_box {
  width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  clear: both;
}

.nongke_box .left_box {
  float: left;
  width: 220px;
  background: #fff;
  color: #333;
  line-height: 20px;
  border: 1px solid #e8eee9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(20, 60, 40, 0.06);
  box-sizing: border-box;
}

.nongke_box .left_box .title {
  padding: 0 18px;
  height: 52px;
  line-height: 52px;
  background: linear-gradient(135deg, #056b38 0%, #008a49 100%);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 0.04em;
}

.nongke_box .left_box .title img {
  width: 18px;
  vertical-align: middle;
  filter: brightness(0) invert(1);
}

.nongke_box .left_box .title span {
  vertical-align: middle;
  margin-left: 8px !important;
  color: #fff;
}

.nongke_box .left_box .list {
  margin: 0;
  text-align: left;
  padding: 6px 0;
}

.nongke_box .left_box .list .fl-item {
  cursor: pointer;
  overflow: hidden;
  border-bottom: 1px solid #f0f3f1;
}

.nongke_box .left_box .list .fl-item:last-child {
  border-bottom: none;
}

.nongke_box .left_box .list .fl-name {
  color: #333;
  float: none;
  display: block;
  padding: 14px 18px;
  width: 100%;
  box-sizing: border-box;
  font-size: 14px;
  font-weight: bold;
  transition: color 0.15s ease, background 0.15s ease;
  position: relative;
}

.nongke_box .left_box .list .fl-item:hover .fl-name,
.nongke_box .left_box .list .fl-item-a .fl-name {
  color: #008a49;
  background: #eaf6ef;
}

.nongke_box .left_box .list .fl-item-a .fl-name::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #008a49;
}

.nongke_box .left_box .list .fl-item span {
  overflow: hidden;
  display: block;
  float: none;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.nongke_box .left_box .list .fl-item:hover {
  background-color: transparent;
}

.nongke_box .left_box .list .fl-item-a {
  background-color: transparent;
}

/* 保留旧级联面板结构（若后续启用） */
.nongke_box .left_box .list .tab {
  position: absolute;
  left: 239px;
  right: 0;
  top: 0;
  height: 421px;
  box-sizing: border-box;
  padding: 30px 40px;
  line-height: 24px;
  background-color: rgba(27, 27, 27, 0.8);
  visibility: hidden;
  opacity: 0;
  transition: opacity 300ms ease;
  z-index: 1;
}

.nongke_box .right_box {
  float: right;
  width: 960px !important;
  background: #fff;
  border: 1px solid #e8eee9;
  border-radius: 10px;
  box-shadow: 0 2px 14px rgba(20, 60, 40, 0.06);
  box-sizing: border-box;
  padding: 20px 22px 24px;
  min-height: 560px;
}

.nongke_box .right_box.is-full {
  width: 1200px !important;
}

.nongke_box .right_box .toolbar {
  width: 100%;
  height: auto;
  margin: 0 0 16px;
  overflow: hidden;
}

.nongke_box .right_box .searchbox {
  float: none;
}

.nongke_box .right_box .search {
  float: none !important;
  margin: 0;
  width: 360px;
  height: 40px;
  border: 1px solid #cfe6d8;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: none;
}

.nongke_box .right_box .search .ipt_txt {
  width: 290px;
  height: 40px;
  padding: 0 16px;
  font-size: 14px;
  color: #333;
}

.nongke_box .right_box .search .ipt_btn {
  width: 48px;
  height: 40px;
  background-color: #008a49 !important;
  background-image: url(../img/index/ss.png);
  background-repeat: no-repeat;
  background-position: center;
}

.nongke_box .right_box .spread-area {
  padding: 12px 80px 4px 0;
  border: 1px solid #e8eee9;
  border-radius: 8px;
  background: #f7faf8;
  position: relative;
  margin-bottom: 16px;
  overflow: hidden;
  box-sizing: border-box;
}

.nongke_box .right_box .spread-area .tit {
  float: left;
  font-size: 14px;
  font-weight: bold;
  color: #333;
  line-height: 30px;
  width: 6em;
  padding-left: 14px;
  box-sizing: border-box;
}

.nongke_box .right_box .spread-area .list {
  float: none;
  height: 30px;
  overflow: hidden;
  margin-bottom: 8px;
}

.nongke_box .right_box .spread-area .list li {
  float: left;
  font-size: 14px;
  margin-bottom: 8px;
  margin-right: 6px;
}

.nongke_box .right_box .spread-area ul li a {
  display: block;
  line-height: 30px;
  padding: 0 14px;
  border-radius: 15px;
  cursor: pointer;
  color: #444;
  transition: background 0.15s ease, color 0.15s ease;
}

.nongke_box .right_box .spread-area ul li a:hover {
  background-color: #eaf6ef;
  color: #008a49;
}

.nongke_box .right_box .spread-area ul li .active {
  background-color: #008a49;
  color: #fff;
}

.nongke_box .right_box .spread-area .spread {
  position: absolute;
  width: 72px;
  right: 8px;
  top: 12px;
  line-height: 30px;
  cursor: pointer;
}

.nongke_box .right_box .spread-area .icon {
  float: left;
  width: 28px;
  height: 28px;
  background: url(../img/spread.png) no-repeat left center;
}

.nongke_box .right_box .spread-area-open .icon {
  background: url(../img/unspread.png) no-repeat left center;
}

.nongke_box .right_box .spread-area .text:after {
  content: "更多";
  display: block;
  float: none;
  font-size: 13px;
  color: #008a49;
}

.nongke_box .right_box .spread-area-open .text:after {
  content: "收起" !important;
}

/* 表格 */
.nongke_box .right_box .layui-table {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
}

.nongke_box .right_box .layui-table thead tr {
  background: #f3faf6;
}

.nongke_box .right_box .layui-table th {
  font-weight: bold;
  color: #333;
  background: #f3faf6 !important;
  border-color: #e8eee9 !important;
}

.nongke_box .right_box .layui-table td {
  border-color: #eef1ef !important;
  color: #444;
}

.nongke_box .right_box .layui-table tbody tr:hover {
  background: #f7faf8;
}

.nongke_box .right_box .layui-table td a {
  color: #008a49;
}

.nongke_box .right_box .layui-table td a:hover {
  color: #056b38;
  text-decoration: underline;
}

.nongke_box .right_box .page {
  margin: 20px 0 0;
  text-align: center;
}

.nongke_box .right_box .layui-laypage a,
.nongke_box .right_box .layui-laypage span {
  border-radius: 4px;
}

.nongke_box .right_box .layui-laypage .layui-laypage-curr .layui-laypage-em {
  background-color: #008a49;
}

.nongke_box .right_box #empty {
  padding: 48px 0 30px;
  color: #8a8f8c;
}

.nongke_box .right_box #empty img {
  max-width: 140px;
  opacity: 0.85;
}

/* 兼容旧 header_item（若启用） */
.main .header {
  display: flex;
  font-size: 18px;
  font-weight: bold;
  color: #000;
  margin-bottom: 15px;
}

.main .header .header_item {
  margin-right: 15px;
  cursor: pointer;
  height: 35px;
}

.main .header .header_item_active {
  color: #008344;
  border-bottom: 3px solid #008344;
}
