/* ===== Shanghai Jiliu Agricultural Development Co., Ltd. 店铺静态站样式 ===== */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Helvetica Neue", Helvetica, Arial, "Microsoft YaHei", sans-serif;
  color: #333;
  background: #f5f6f8;
  line-height: 1.5;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

.container { width: 1200px; margin: 0 auto; }
.clearfix::after { content: ""; display: block; clear: both; }

/* ===== 顶部公告条 ===== */
.topbar {
  background: #ff6a00;
  color: #fff;
  font-size: 13px;
  height: 36px;
  line-height: 36px;
}
.topbar .container { display: flex; justify-content: space-between; }
.topbar a { color: #fff; margin-left: 16px; }
.topbar .right a:hover { text-decoration: underline; }

/* ===== 顶部导航 ===== */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e6e6e6;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-main { display: flex; align-items: center; padding: 12px 0; }
.logo-block { flex: 0 0 auto; margin-right: 30px; }
.logo-block .company-name {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  line-height: 1.2;
}
.logo-block .company-sub { font-size: 12px; color: #888; margin-top: 2px; }
.search-box {
  flex: 1;
  display: flex;
  max-width: 560px;
  height: 40px;
  border: 2px solid #ff6a00;
  border-radius: 3px;
  overflow: hidden;
}
.search-box input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 12px;
  font-size: 14px;
}
.search-box button {
  width: 90px;
  border: none;
  background: #ff6a00;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}
.header-right { display: flex; align-items: center; margin-left: auto; gap: 18px; }
.header-right .save-link { font-size: 13px; color: #555; cursor: pointer; }
.header-right .save-link:hover { color: #ff6a00; }

.nav-bar {
  background: #fff;
  border-top: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 0 0 12px;
}
.nav-bar a { font-size: 15px; color: #333; padding: 6px 0; position: relative; }
.nav-bar a:hover, .nav-bar a.active { color: #ff6a00; }
.nav-bar a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px; background: #ff6a00;
}

/* ===== 主横幅 ===== */
.hero-banner {
  background: linear-gradient(135deg, #1b6e38 0%, #2d9f4d 40%, #ff8c00 100%);
  color: #fff;
  padding: 60px 0;
  background-size: cover;
  background-position: center;
}
.hero-inner { display: flex; justify-content: space-between; align-items: center; }
.hero-text h1 { font-size: 34px; font-weight: 700; margin-bottom: 14px; }
.hero-text p { font-size: 16px; max-width: 560px; opacity: .95; margin-bottom: 22px; }
.hero-text .badge {
  display: inline-block;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.5);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  margin-right: 8px;
}
.hero-img { flex: 0 0 360px; }

/* ===== 产品分类导航 ===== */
.category-section {
  background: #fff;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}
.category-list { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.category-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid #e6e6e6;
  border-radius: 4px;
  font-size: 15px;
  color: #333;
  transition: all .2s;
  flex: 1 1 220px;
}
.category-list a:hover { border-color: #ff6a00; color: #ff6a00; box-shadow: 0 2px 8px rgba(255,106,0,.15); }
.category-list .cat-emoji { font-size: 26px; }
.category-list .cat-name { font-weight: 600; }
.category-list .cat-count { color: #999; font-size: 12px; margin-left: auto; }

/* ===== 区块标题 ===== */
.section { padding: 30px 0; }
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-title h2 { font-size: 22px; position: relative; padding-left: 12px; }
.section-title h2::before { content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: 4px; background: #ff6a00; }
.section-title .more { color: #ff6a00; font-size: 14px; }

/* ===== 产品网格 ===== */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.product-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  display: block;
}
.product-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.12); transform: translateY(-2px); }
.product-card .thumb { height: 260px; background: #fafafa; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-card .thumb img { max-height: 100%; transition: transform .3s; }
.product-card:hover .thumb img { transform: scale(1.05); }
.product-card .info { padding: 12px 14px; }
.product-card .title {
  font-size: 14px;
  color: #333;
  line-height: 1.4;
  height: 55px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.product-card .title:hover { color: #ff6a00; }
.product-card .price { color: #ff3f00; font-weight: 700; font-size: 18px; margin: 8px 0 4px; }
.product-card .moq { color: #999; font-size: 12px; }
.product-card .more-tag { color: #999; font-size: 12px; }

/* ===== 公司简介栏 ===== */
.about-strip {
  background: linear-gradient(135deg, #0f4c2e, #1b6e38);
  color: #fff;
  padding: 40px 0;
}
.about-strip .container { display: flex; justify-content: space-between; align-items: center; }
.about-strip h2 { font-size: 26px; margin-bottom: 12px; }
.about-strip p { max-width: 640px; opacity: .9; font-size: 14px; }
.stat-row { display: flex; gap: 34px; }
.stat-row .num { font-size: 30px; font-weight: 700; }
.stat-row .label { font-size: 12px; opacity: .85; }

/* ===== 页脚 ===== */
.site-footer {
  background: #252525;
  color: #999;
  padding: 36px 0 20px;
  font-size: 13px;
}
.footer-cols { display: flex; justify-content: space-between; padding-bottom: 24px; border-bottom: 1px solid #3a3a3a; margin-bottom: 16px; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.footer-col a { display: block; color: #999; margin-bottom: 8px; }
.footer-col a:hover { color: #ff6a00; }
.footer-bottom { text-align: center; font-size: 12px; color: #777; }
.footer-bottom a { color: #ff6a00; }

/* ===== 页面内页标题 ===== */
.page-banner {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 16px 0;
}
.page-banner .container { display: flex; align-items: center; justify-content: space-between; }
.breadcrumb { font-size: 13px; color: #888; }
.breadcrumb a { color: #ff6a00; }
.page-banner h1 { font-size: 22px; }

/* ===== 筛选栏 ===== */
.filter-bar { background: #fff; padding: 14px 0; border-bottom: 1px solid #eee; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-tabs a { padding: 8px 18px; border: 1px solid #e0e0e0; border-radius: 20px; font-size: 14px; color: #555; }
.filter-tabs a.active, .filter-tabs a:hover { background: #ff6a00; border-color: #ff6a00; color: #fff; }

/* ===== 产品详情页 ===== */
.product-detail { background: #fff; padding: 24px 0 40px; }
.detail-main { display: flex; gap: 30px; margin-bottom: 30px; }
.detail-gallery { flex: 0 0 480px; }
.detail-gallery .main-img {
  height: 480px;
  background: #fafafa;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #eee;
  overflow: hidden;
}
.detail-gallery .main-img img { max-height: 100%; }
.detail-info { flex: 1; }
.detail-info h1 { font-size: 22px; color: #111; line-height: 1.4; margin-bottom: 12px; }
.detail-price-box {
  background: #fff7e8;
  border: 1px solid #ffd9a8;
  padding: 16px;
  border-radius: 4px;
  margin-bottom: 16px;
}
.detail-price-box .price-line { display: flex; align-items: baseline; gap: 10px; }
.detail-price-box .cur { color: #ff3f00; font-size: 16px; }
.detail-price-box .val { color: #ff3f00; font-size: 34px; font-weight: 700; }
.detail-price-box .moq { font-size: 13px; color: #666; }
.detail-meta { font-size: 14px; color: #555; }
.detail-meta li { padding: 8px 0; border-bottom: 1px dashed #eee; display: flex; }
.detail-meta li .k { color: #999; width: 110px; flex: 0 0 110px; }
.btn-group { margin: 18px 0; display: flex; gap: 12px; }
.btn {
  display: inline-block;
  padding: 11px 28px;
  border-radius: 3px;
  font-size: 15px;
  cursor: pointer;
  border: none;
}
.btn-chat { background: #ff6a00; color: #fff; }
.btn-chat:hover { background: #ff7f1f; }
.btn-contact { background: #fff; color: #ff6a00; border: 1px solid #ff6a00; }
.btn-contact:hover { background: #fff7e8; }

.detail-section { margin-top: 26px; border-top: 1px solid #eee; padding-top: 20px; }
.detail-section h3 { font-size: 18px; border-left: 4px solid #ff6a00; padding-left: 10px; margin-bottom: 14px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table td { padding: 9px 12px; border: 1px solid #eee; }
.spec-table td:first-child { background: #fafafa; color: #555; width: 130px; }

/* ===== 公司介绍 ===== */
.cp-section { background: #fff; padding: 26px 0; }
.cp-wrap { display: flex; gap: 30px; }
.cp-side { flex: 0 0 240px; border-right: 1px solid #eee; padding-right: 24px; }
.cp-side .comp-tag { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.cp-side .comp-info { font-size: 13px; color: #888; line-height: 1.8; }
.cp-main { flex: 1; }
.cp-main h2 { font-size: 22px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid #ff6a00; }
.cp-main h3 { font-size: 17px; margin: 22px 0 10px; color: #1b6e38; }
.cp-main p { font-size: 14px; color: #444; margin-bottom: 12px; }
.cp-main ul { margin-left: 20px; margin-bottom: 14px; }
.cp-main ul li { font-size: 14px; color: #444; list-style: disc; margin-bottom: 6px; }
.info-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 10px 0; }
.info-table td { padding: 9px 12px; border: 1px solid #eee; }
.info-table td:first-child { background: #fafafa; color: #555; width: 170px; font-weight: 600; }

/* ===== 入驻页广告条 ===== */
.cta-banner {
  background: linear-gradient(135deg, #ff8c00, #ff6a00);
  color: #fff;
  text-align: center;
  padding: 30px 0;
}
.cta-banner h2 { font-size: 24px; margin-bottom: 8px; }
.cta-banner a { display: inline-block; background: #fff; color: #ff6a00; padding: 10px 30px; border-radius: 24px; margin-top: 10px; font-size: 15px; }

/* ===== 空状态 ===== */
.empty { text-align: center; padding: 60px; color: #999; }

/* 响应式简单处理 */
@media (max-width: 1220px) {
  .container { width: 98%; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
