/* ============================================
   section.css — 板块列表页统一样式（Google 风格）
   移动优先：默认单列手机布局，≥640px 两列，≥960px 三列
   配色与主页一致：#4285F4 蓝 / #0F9D58 绿 / #dadce0 边框
   ============================================ */

/* ---- 页面容器 ---- */
.sec-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 14px 40px;
}

/* ---- 标题行 ---- */
.sec-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 6px 0 14px;
}
.sec-title {
  font-size: 1.45rem;
  font-weight: bold;
  color: #202124;
  margin: 0;
}
.sec-count {
  font-size: 0.8rem;
  color: #5f6368;
}

/* ---- 搜索框（Google 圆角胶囊） ---- */
.sec-search { margin-bottom: 12px; }
.sec-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sec-search-input {
  flex: 1;
  min-width: 0;
  border: 1px solid #dadce0;
  border-radius: 24px;
  padding: 11px 48px 11px 18px;
  font-size: 16px;            /* ≥16px 防止 iOS 聚焦自动放大 */
  outline: none;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.sec-search-input:focus {
  border-color: #4285F4;
  box-shadow: 0 1px 6px rgba(66, 133, 244, 0.28);
}
.sec-search-btn {
  flex: none;
  width: 44px;
  height: 44px;
  margin-left: -48px;         /* 内嵌到输入框右侧（与主页一致） */
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #9aa0a6;
  font-size: 17px;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: color 0.15s;
}
.sec-search-btn:hover { color: #4285F4; }
.sec-clear-link {
  flex: none;
  color: #4285F4;
  font-size: 0.85rem;
  text-decoration: none;
  padding: 8px 4px;
}

/* ---- 排序/筛选 chips（手机横向滑动） ---- */
.sec-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 2px;
}
.sec-chips::-webkit-scrollbar { display: none; }
.sec-chip-label {
  flex: none;
  font-size: 0.8rem;
  color: #5f6368;
}
.sec-chip {
  flex: none;
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid #dadce0;
  border-radius: 18px;
  background: #fff;
  color: #3c4043;
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}
.sec-chip:hover { background: #f1f6fd; border-color: #c6dafc; }
.sec-chip.active {
  background: #e8f0fe;
  border-color: #4285F4;
  color: #1967d2;
  font-weight: 600;
}

/* ---- 发布 CTA ---- */
.sec-cta { text-align: center; margin: 0 0 18px; }
.sec-cta-btn {
  display: inline-block;
  width: 100%;
  max-width: 420px;
  padding: 12px 20px;
  background: #0F9D58;
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 24px;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
}
.sec-cta-btn:hover {
  background: #0b8043;
  box-shadow: 0 2px 8px rgba(15, 157, 88, 0.35);
}

/* ---- 标签激活提示 ---- */
.sec-tag-active {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 10px 14px;
  background: #e8f0fe;
  border-radius: 10px;
  font-size: 0.9rem;
  color: #1967d2;
}
.sec-tag-clear {
  margin-left: auto;
  color: #1967d2;
  text-decoration: none;
  font-size: 0.85rem;
  padding: 4px 8px;
}

/* ---- 卡片网格 ---- */
.sec-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 640px) { .sec-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .sec-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---- 通用卡片 ---- */
.sec-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.sec-card:hover {
  border-color: #c6dafc;
  box-shadow: 0 3px 12px rgba(60, 64, 67, 0.16);
}
.sec-card-title {
  font-size: 1rem;
  font-weight: bold;
  color: #202124;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.sec-card-meta {
  font-size: 0.82rem;
  color: #5f6368;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sec-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  font-size: 0.8rem;
  color: #5f6368;
}
.sec-card-highlight {
  font-size: 1.05rem;
  font-weight: bold;
  color: #0F9D58;
}

/* ---- 房源卡片缩略图行 ---- */
.sec-card-thumb-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.sec-card-thumb-row .sec-card-body { flex: 1; min-width: 0; }
.sec-card-img {
  flex: none;
  width: 86px;
  height: 86px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e8eaed;
  background: #f1f3f4;
}

/* ---- 服务标签 chips ---- */
.sec-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sec-tag-mini {
  display: inline-block;
  padding: 3px 10px;
  background: #f1f3f4;
  border-radius: 12px;
  font-size: 0.72rem;
  color: #3c4043;
  text-decoration: none;
}
a.sec-tag-mini:hover { background: #e8f0fe; color: #1967d2; }
.sec-lang-badge {
  flex: none;
  padding: 2px 8px;
  background: #f1f3f4;
  border-radius: 10px;
  font-size: 0.7rem;
  color: #5f6368;
}

/* ---- 空状态 ---- */
.sec-empty {
  text-align: center;
  padding: 40px 16px;
  color: #5f6368;
  font-size: 0.95rem;
  background: #f8f9fa;
  border-radius: 14px;
}

/* ---- 分页（大触控目标） ---- */
.sec-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 24px 0 8px;
}
.sec-page-btn {
  padding: 10px 20px;
  border: 1px solid #dadce0;
  border-radius: 20px;
  background: #fff;
  color: #4285F4;
  font-size: 0.9rem;
  text-decoration: none;
}
.sec-page-btn:hover { background: #f1f6fd; }
.sec-page-info { font-size: 0.85rem; color: #5f6368; }

/* ---- 管理员操作 ---- */
.sec-admin {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #e8eaed;
}
.sec-admin-btn {
  padding: 8px 16px;
  border: 1px solid #dadce0;
  border-radius: 18px;
  background: #fff;
  color: #5f6368;
  font-size: 0.82rem;
  text-decoration: none;
}
.sec-admin-btn:hover { background: #f1f3f4; }

/* ---- 编辑信息列表（admin） ---- */
.sec-edit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
}
.sec-edit-main { min-width: 0; }
.sec-edit-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: #5f6368;
  font-size: 0.8rem;
}
.sec-edit-actions {
  display: flex;
  gap: 8px;
  flex: none;
}
.sec-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 500;
}
.sec-badge-ok     { background: #e6f4ea; color: #188038; }
.sec-badge-wait   { background: #fef7e0; color: #b06000; }
.sec-badge-hidden { background: #f1f3f4; color: #5f6368; }
@media (max-width: 560px) {
  .sec-edit-row { flex-direction: column; align-items: flex-start; }
}

/* ---- 搜索结果分组 ---- */
.sec-group { margin-bottom: 30px; }
.sec-group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
}
.sec-group-title {
  font-size: 1.08rem;
  font-weight: bold;
  color: #202124;
  text-decoration: none;
}
a.sec-group-title:hover { color: #4285F4; }
.sec-group-count {
  font-size: 0.78rem;
  color: #5f6368;
  background: #f1f3f4;
  border-radius: 10px;
  padding: 2px 9px;
}
.sec-more {
  display: inline-block;
  margin-top: 10px;
  padding: 7px 16px;
  border: 1px solid #dadce0;
  border-radius: 18px;
  background: #fff;
  color: #4285F4;
  font-size: 0.85rem;
  text-decoration: none;
}
.sec-more:hover { background: #f1f6fd; border-color: #c6dafc; }
.sec-group .sec-grid { margin-bottom: 0; }
