/* ============================================================
   租一亩土地流转网 - 统一设计系统 v2
   CSS 变量驱动，覆盖网页端全部页面
   设计基准：PRD 完整页面级 v1.0 | 冷灰中性 + 森林绿
   ============================================================ */

/* ---- CSS 变量 ---- */
:root {
  /* 暖灰中性色板 */
  --page-bg:        #f5f6f8;
  --surface:         #ffffff;
  --surface-hover:   #fafaf9;
  --surface-raised:  #fcfcfc;
  --border:          #e5e5e5;
  --border-light:    #f0f0f0;

  /* 文字层级 */
  --text:            #333333;
  --text-secondary:  #666666;
  --text-muted:      #999999;
  --text-inverse:    #ffffff;

  /* 品牌强调色 — 原版绿色 */
  --accent:          #27ae60;
  --accent-hover:    #1e8449;
  --accent-light:    #a9dfbf;
  --accent-bg:       #e8f5e9;

  /* 功能色 */
  --danger:          #e85d3a;
  --danger-bg:       #fef2f2;
  --warning:         #d97706;
  --warning-bg:      #fffbeb;
  --success:         #27ae60;
  --success-bg:      #e8f5e9;
  --info:            #2980b9;
  --info-bg:         #eaf2f8;
  --orange:          #e67e22;

  /* 形状 */
  --radius-sm:       4px;
  --radius:          6px;
  --radius-lg:       8px;
  --radius-xl:       12px;
  --radius-pill:     999px;

  /* 阴影 */
  --shadow-xs:       0 1px 2px rgba(0,0,0,0.03);
  --shadow-sm:       0 1px 3px rgba(0,0,0,0.06);
  --shadow:          0 2px 8px rgba(0,0,0,0.06);
  --shadow-lg:       0 8px 30px rgba(0,0,0,0.10);

  /* 间距 */
  --space-xs:        4px;
  --space-sm:        8px;
  --space-md:        16px;
  --space-lg:        24px;
  --space-xl:        32px;
  --space-2xl:       48px;

  /* 字体 */
  --font-sans:       "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-mono:       "SF Mono", "Cascadia Code", "Fira Code", "Consolas", monospace;
}

/* ============================================
   基础重置
   ============================================ */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text);
  background: var(--page-bg);
  line-height: 1.6;
}

a { color: var(--text); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent); }
ul, li { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: normal; }
input, select, textarea, button { font-family: inherit; }

.wrap {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ============================================
   顶部工具栏
   ============================================ */
.top-bar {
  background: #2c3e50;
  color: #bbb;
  font-size: 12px;
  line-height: 36px;
}
.top-bar .wrap {
  display: flex;
  justify-content: space-between;
}
.top-links a {
  color: #d6d3d1;
  margin-left: 18px;
}
.top-links a:hover { color: #fff; }

/* ============================================
   主导航栏
   ============================================ */
.nav-wrap {
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  z-index: 999;
  position: relative;
  border-bottom: 1px solid var(--border-light);
}
.nav-wrap.nav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  animation: navSlideDown 0.25s ease;
}
@keyframes navSlideDown {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}
.nav-inner {
  display: flex;
  align-items: center;
  height: 64px;
}
.logo h1 {
  font-size: 20px;
  color: var(--accent);
  font-weight: 700;
  margin-right: 40px;
  letter-spacing: 0.5px;
}
.nav-menu {
  display: flex;
  gap: 0;
}
.nav-menu li a {
  display: block;
  padding: 0 20px;
  line-height: 64px;
  font-size: 15px;
  color: var(--text-secondary);
  transition: color 0.15s;
  position: relative;
}
.nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.15s;
}
.nav-menu li a:hover,
.nav-menu li.active a {
  color: var(--accent);
}
.nav-menu li a:hover::after,
.nav-menu li.active a::after {
  transform: scaleX(1);
}

/* ============================================
   横幅区（Hero）
   ============================================ */
/* 横幅：卖点主导型排版
   渐变整体压深一档，保证白色文案在深绿侧达到 WCAG AA（原浅绿端白字仅 2.8:1，不达标） */
.hero-banner {
  background: linear-gradient(115deg, #14532d 0%, #1a6b3c 42%, #27ae60 100%);
  min-height: 370px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 60%, rgba(255,255,255,0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(255,255,255,0.03) 0%, transparent 40%);
  pointer-events: none;
}
.hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 48px 0;
  text-align: center;
  color: #fff;
}
.hero-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 1px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.hero-desc {
  font-size: 16px;
  opacity: 0.9;
  margin: 0 auto 26px;
  max-width: 640px;
}
/* 卖点条：精细分区卡片（商业化、正规），左侧品牌图标块 + 主卖点，右侧 0 中介费 */
.hero-highlight {
  display: inline-flex;
  align-items: stretch;
  background: rgba(255,255,255,0.97);
  border: 1px solid rgba(255,255,255,0.65);
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(6,32,18,0.26);
  overflow: hidden;
  text-align: left;
  backdrop-filter: blur(6px);
}
.hero-hl-main {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  white-space: nowrap;
}
.hero-hl-main .hl-ico {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #27ae60 0%, #14532d 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(20,83,45,0.25);
}
.hero-hl-main .hl-txt {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.35;
}
.hero-hl-main .hl-sub {
  display: inline;
  font-size: 11.5px;
  font-weight: 400;
  color: #6b7280;
  margin-left: 8px;
}
.hero-hl-free {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 30px;
  border-left: 1px solid #e5e7eb;
  background: #f7faf8;
  white-space: nowrap;
}
.hero-hl-free .free-num {
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
  color: #14532d;
  font-variant-numeric: tabular-nums;
}
.hero-hl-free .free-lbl {
  font-size: 12.5px;
  font-weight: 600;
  color: #4b5563;
  line-height: 1.35;
  letter-spacing: 0.5px;
}


/* 搜索栏 */
.hero-search {
  max-width: 720px;
  margin: 0 auto;
}
.search-row {
  display: flex;
  gap: 0;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.search-input {
  flex: 1;
  border: none;
  padding: 0 18px;
  height: 52px;
  font-size: 15px;
  outline: none;
  color: var(--text);
}
.search-input::placeholder { color: var(--text-muted); }
.search-select {
  border: none;
  border-left: 1px solid var(--border);
  padding: 0 12px;
  height: 52px;
  font-size: 14px;
  outline: none;
  color: var(--text-secondary);
  background: var(--surface);
  cursor: pointer;
}
.search-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0 32px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.search-btn:hover { background: var(--accent-hover); }

.hot-tags {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}
.hot-tags a {
  color: rgba(255,255,255,0.85);
  margin: 0 8px;
}
.hot-tags a:hover { color: #fff; }

/* ============================================
   通用区块
   ============================================ */
.section {
  margin: var(--space-xl) 0;
}
.section-title {
  font-size: 20px;
  color: #2c3e50;
  text-align: center;
  margin-bottom: var(--space-lg);
  font-weight: 600;
  position: relative;
}
.section-title span {
  background: var(--page-bg);
  padding: 0 20px;
  position: relative;
  z-index: 1;
}
.section-title::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
  z-index: 0;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.section-header .section-title {
  margin-bottom: 18px;
}
.section-header .section-title::after { display: none; }
.section-more {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.15s;
}
.section-more:hover { color: var(--accent); }

/* ============================================
   分类入口网格
   ============================================ */
.cate-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
}
.cate-item {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px 10px;
  text-align: center;
  transition: all 0.2s;
  border: 1px solid var(--border-light);
}
.cate-item:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(45,106,79,0.10);
  transform: translateY(-2px);
}
.cate-icon {
  display: block;
  font-size: 30px;
  color: var(--accent);
  margin-bottom: 8px;
}
.cate-item span {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ============================================
   两栏布局
   ============================================ */
.main-layout {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-md);
}
.main-content {
  flex: 1;
  min-width: 0;
}

/* ============================================
   土地卡片列表
   ============================================ */
.land-item {
  display: flex;
  gap: 18px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
  transition: box-shadow 0.2s;
  border: 1px solid var(--border-light);
}
.land-item:hover {
  box-shadow: var(--shadow);
  border-color: var(--border);
}
.land-img {
  position: relative; /* 诚信角标的定位参照 */
  width: 200px;
  height: 140px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--accent-bg);
}
/* 1000 元诚信保障档角标（package_type=2），压缩略图左上角 */
.land-badge-trust {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  background: #27ae60;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .5px;
  padding: 5px 9px;
  border-radius: var(--radius-sm) 0 8px 0;
}
.land-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.land-img-placeholder {
  width: 100%;
  height: 100%;
  background: #e8f5e9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 36px;
}
.land-info {
  flex: 1;
  min-width: 0;
}
.land-info h4 a {
  font-size: 16px;
  color: var(--text);
  font-weight: 600;
}
.land-info h4 a:hover { color: var(--accent); }
.land-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.land-title-row h4 { flex: 1; min-width: 0; }
.land-title-row h4 a { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.land-title-row .land-price { flex-shrink: 0; }
.land-meta {
  margin: 8px 0;
  color: var(--text-secondary);
  font-size: 13px;
}
.land-meta span { margin-right: 16px; }
.land-price {
  color: #e85d3a;
  font-weight: 600;
  font-size: 15px;
}
.land-addr {
  color: var(--text-muted);
  max-width: 200px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  display: inline-block;
  vertical-align: middle;
}
.land-desc {
  color: var(--text-secondary);
  font-size: 13px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* 保证金标签 */
.land-guarantee {
  display: inline-block;
  background: #fbbf24;
  color: #78350f;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  margin-left: 6px;
  vertical-align: middle;
}

/* ============================================
   流转方式/类型标签
   ============================================ */
.land-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: var(--radius-sm);
  margin-right: 6px;
}
.land-tag.rent    { background: #eff6ff; color: #1e40af; }
.land-tag.transfer { background: #fef3c7; color: #92400e; }

/* ============================================
   资讯列表
   ============================================ */
.news-list {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 4px 18px;
  border: 1px solid var(--border-light);
}
.news-list li {
  border-bottom: 1px solid var(--border-light);
}
.news-list li:last-child { border-bottom: none; }
.news-list li a {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  color: var(--text-secondary);
  font-size: 14px;
}
.news-list li a:hover { color: var(--accent); }
.news-title {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding-right: 12px;
}
.news-date {
  color: var(--text-muted);
  font-size: 12px;
  flex-shrink: 0;
}

/* ============================================
   侧边栏
   ============================================ */
.sidebar {
  width: 320px;
  flex-shrink: 0;
}
.side-box {
  background: var(--surface);
  border-radius: var(--radius);
  margin-bottom: 18px;
  border: 1px solid var(--border-light);
}
.side-box h3 {
  font-size: 16px;
  color: #2c3e50;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  font-weight: 600;
}
.side-box h3 i { color: var(--accent); margin-right: 6px; }

/* 发布按钮 */
.btn-publish {
  display: block;
  text-align: center;
  background: #e67e22;
  color: #fff;
  font-size: 16px;
  padding: 14px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background 0.15s;
  letter-spacing: 0.5px;
}
.btn-publish:hover { background: #d35400; color: #fff; }

.side-hot ul { padding: 8px 18px 14px; }
.side-hot li {
  padding: 7px 0;
  border-bottom: 1px solid var(--border-light);
}
.side-hot li:last-child { border-bottom: none; }
.side-hot li a {
  font-size: 13px;
  color: var(--text-secondary);
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.side-hot li a:hover { color: var(--accent); }

.contact-info { padding: 12px 18px 16px; font-size: 13px; color: var(--text-secondary); }
.contact-info p { margin: 4px 0; }

/* ============================================
   友情链接
   ============================================ */
.links-list {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--border-light);
}
.links-list a {
  color: var(--text-secondary);
  font-size: 13px;
  margin-right: 18px;
  line-height: 2;
}
.links-list a:hover { color: var(--accent); }

/* ============================================
   页脚
   ============================================ */
.footer {
  background: #2c3e50;
  color: #bbb;
  margin-top: 48px;
  padding: 40px 0 24px;
}
.footer a { color: #a8a29e; }
.footer a:hover { color: #fff; }
.footer-grid {
  display: flex;
  gap: 60px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-grid dt {
  font-size: 15px;
  color: #e7e5e4;
  margin-bottom: 10px;
  font-weight: 600;
}
.footer-grid dd {
  font-size: 13px;
  line-height: 2;
}
.footer-bottom {
  text-align: center;
  padding-top: 18px;
  font-size: 12px;
  color: #78716c;
}
.footer-bottom p { margin: 2px 0; }

/* ============================================
   空态 / 加载
   ============================================ */
.empty-tip {
  color: var(--text-muted);
  text-align: center;
  padding: 48px 20px;
  font-size: 14px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}
.empty-tip a { color: var(--accent); font-weight: 500; }

/* 骨架屏 */
.skeleton {
  background: linear-gradient(90deg, var(--border-light) 25%, #f5f5f4 50%, var(--border-light) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================
   全局按钮系统
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  gap: 6px;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-secondary:hover { background: var(--accent-light); }
.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger:hover { background: #b91c1c; color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover { color: var(--accent); background: var(--surface-hover); }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 14px 32px; font-size: 16px; font-weight: 600; }
.btn-block { width: 100%; }
.btn:disabled {
  background: #d6d3d1;
  color: #a8a29e;
  cursor: not-allowed;
  border-color: transparent;
}

/* ============================================
   表单系统
   ============================================ */
.form-group {
  margin-bottom: var(--space-md);
}
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}
.form-label .required {
  color: var(--danger);
  margin-left: 2px;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.form-input::placeholder { color: var(--text-muted); }
.form-input[readonly] { background: #fafaf9; color: var(--text-secondary); }
.form-textarea { min-height: 100px; resize: vertical; }
.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}
.form-error {
  font-size: 12px;
  color: var(--danger);
  margin-top: 4px;
}

/* ============================================
   状态标签
   ============================================ */
.status-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.status-pending   { background: #fffbeb; color: #92400e; }
.status-paid      { background: #eff6ff; color: #1e40af; }
.status-progress  { background: #eff6ff; color: #1e40af; }
.status-approved  { background: #f0fdf4; color: #166534; }
.status-rejected  { background: #fef2f2; color: #991b1b; }
.status-off       { background: #fafaf9; color: #78716c; }
.status-refunded  { background: #fafaf9; color: #78716c; }
.status-completed { background: #ecfdf5; color: #065f46; }

/* ============================================
   卡片
   ============================================ */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border-light);
}
.card-header {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

/* ============================================
   弹窗
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-box {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 480px;
  max-width: 90vw;
  max-height: 85vh;
  overflow-y: auto;
}
.modal-header {
  padding: 20px 24px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.modal-body { padding: 20px 24px; }
.modal-footer {
  padding: 0 24px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ============================================
   Toast 提示
   ============================================ */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 3000;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 12px 20px;
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toast-in 0.3s ease;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.toast-success { border-left: 3px solid var(--success); }
.toast-error   { border-left: 3px solid var(--danger); }
.toast-info    { border-left: 3px solid var(--info); }

/* ============================================
   步骤条（流转发布页）
   ============================================ */
.steps-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}
.steps-bar .step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.2s;
}
.steps-bar .step-dot.active {
  background: var(--accent);
  color: #fff;
}
.steps-bar .step-line {
  width: 60px;
  height: 2px;
  background: var(--border);
  margin: 0 8px;
  transition: background 0.2s;
}
.steps-bar .step-line.done {
  background: var(--accent);
}
.steps-bar .step-label {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 4px;
}
.steps-bar .step-label.active {
  color: var(--accent);
  font-weight: 600;
}
.steps-bar .step-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ============================================
   页面 body 容器修正
   ============================================ */
#body-main { min-height: 100%; }
#body-body {
  min-width: auto;
  max-width: none;
  text-align: left;
}
#footer-fush, #body-footer {
  clear: both;
  height: auto;
}

/* ============================================
   响应式
   ============================================ */
@media (max-width: 1240px) {
  .wrap { width: auto; padding: 0 16px; }
  .hero-search { max-width: 100%; }
  .cate-grid { grid-template-columns: repeat(4, 1fr); }
  .main-layout { flex-direction: column; }
  .sidebar { width: auto; }
}

@media (max-width: 768px) {
  /* 农事供应搜索 / 劳务大厅筛选：手机端隐藏，PC 端保留 */
  .filter-bar { display: none; }

  /* 位置行规范化（手机端）：白卡容器 + 按钮 pill */
  .loc-row {
    background: #fff;
    border: 1px solid #e8dfd2;
    border-radius: 10px;
    padding: 12px 14px;
  }
  .loc-row #locateLine {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .loc-row .loc-btn {
    flex-shrink: 0;
    border: 1px solid #2d6a4f;
    border-radius: 999px;
    padding: 5px 16px;
    background: #fff;
  }

  .nav-inner { flex-direction: column; height: auto; padding: 10px 0; }
  .logo h1 { margin-right: 0; font-size: 18px; }
  .nav-menu { flex-wrap: wrap; justify-content: center; }
  .nav-menu li a { line-height: 44px; padding: 0 12px; font-size: 14px; }
  /* 窄屏改纵向渐变：浅绿端落到底部，文案区始终在深绿上 */
  .hero-banner {
    min-height: auto;
    background: linear-gradient(160deg, #14532d 0%, #1a6b3c 55%, #27ae60 100%);
  }
  .hero-overlay { padding: 30px 0; }
  .hero-title { font-size: 24px; letter-spacing: 0.5px; }
  .hero-desc { font-size: 13px; margin-bottom: 18px; }
  /* 窄屏竖排：分隔线由竖改横，"0 中介费" 独占一行反而更抢眼 */
  .hero-highlight {
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    border-radius: 16px;
    text-align: left;
  }
  .hero-hl-main { padding: 13px 16px; gap: 10px; }
  .hero-hl-main .hl-ico { width: 38px; height: 38px; font-size: 16px; }
  .hero-hl-main .hl-txt { font-size: 12.5px; }
  .hero-hl-main .hl-sub { display: block; font-size: 10.5px; margin-left: 0; margin-top: 2px; }
  .hero-hl-free {
    width: auto;
    padding: 13px 18px;
    border-left: 1px solid #e5e7eb;
    border-top: none;
    gap: 9px;
  }
  .hero-hl-free .free-num { font-size: 28px; }
  .hero-hl-free .free-lbl { font-size: 11.5px; }
  .search-row { flex-wrap: wrap; }
  .search-input { min-width: 100%; }
  .search-select { min-width: 50%; border-top: 1px solid var(--border); }
  .search-btn { min-width: 100%; }
  /* 移动端隐藏首页「土地分类」入口区，PC 端保持不变。
     只针对首页那一处：lands_list.php 也用 .cate-grid/.cate-item，
     按这两个类名隐藏会连带把土地列表页的分类筛选也干掉。
     下面 .cate-* 的窄屏样式因此必须保留，它们仍服务于列表页。 */
  .home-cate-section { display: none; }
  /* 分类隐藏后，「农业雇工 · 农事服务」紧贴 banner，留出间距（仅移动端） */
  .agri-entry { margin-top: 22px; margin-bottom: 22px !important; }
  .main-layout { margin-top: 0; }
  .main-layout .section:first-child { margin-top: 0; }
  .cate-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .cate-item { padding: 14px 6px; }
  .cate-icon { font-size: 22px; }
  .land-item { flex-direction: column; }
  .land-img { width: 100%; height: 180px; }
  .footer-grid { flex-wrap: wrap; gap: 24px; }
}

@media (max-width: 480px) {
  .cate-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .hero-title { font-size: 21px; }
}

/* 仅在极窄屏才缩小卖点条，保证 320px 上主张句仍是单行 */
@media (max-width: 360px) {
  .hero-highlight { padding: 12px 16px; }
  .hero-hl-main { font-size: 16px; }
  .hero-hl-main .fa { font-size: 17px; margin-right: 5px; }
  .hero-hl-free { font-size: 25px; }
}
