/* ============================================
 * 出租信息区块样式 rent.css（作用域隔离版）
 * 所有样式只在 .rent-section 内生效
 * 不会污染首页其他区块
 *
 * 使用方法：直接放在首页的 .rent-section 区块内即可
 * ============================================ */

/* === 颜色变量（局部定义，不污染全局） === */
.rent-section {
  --rent-gov-blue: #1e4a8c;
  --rent-gov-blue-dark: #143063;
  --rent-gov-blue-light: #2d6fc4;
  --rent-gov-blue-deep: #0d1f44;
  --rent-gov-gold: #d4a347;
  --rent-gov-gold-dark: #a07a2a;
  --rent-gov-gold-light: #f5d878;
  --rent-gov-cream: #f7f3ea;
  --rent-text-primary: #1a2540;
  --rent-text-secondary: #4a5568;
  --rent-text-muted: #8a94a8;
  --rent-bg-page: #fafbfc;
  --rent-border-light: #e5e9f0;
  --rent-shadow-sm: 0 2px 4px rgba(13, 31, 68, 0.05);
  --rent-shadow-md: 0 4px 12px rgba(13, 31, 68, 0.08);
  --rent-shadow-lg: 0 12px 24px -8px rgba(13, 31, 68, 0.18);
  --rent-hot: #dc2626;
  --rent-warn: #f59e0b;
  --rent-success: #16a34a;
}

/* ============================================
 * 出租信息区块
 * ============================================ */
.rent-section {
  position: relative;
  padding: 60px 0;
  background: linear-gradient(135deg, var(--rent-gov-cream) 0%, #fff 50%, var(--rent-gov-cream) 100%);
  overflow: hidden;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--rent-text-primary);
}

.rent-section a { color: inherit; text-decoration: none; transition: color 0.2s; }
.rent-section ul { list-style: none; margin: 0; padding: 0; }
.rent-section * { box-sizing: border-box; }

/* 装饰背景圆 */
.rent-section .rent-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.rent-section .rent-bg-orb-1 {
  width: 350px; height: 350px;
  top: -100px; right: -50px;
  background: radial-gradient(circle, rgba(30, 74, 140, 0.08), transparent 70%);
}
.rent-section .rent-bg-orb-2 {
  width: 300px; height: 300px;
  bottom: -80px; left: -40px;
  background: radial-gradient(circle, rgba(212, 163, 71, 0.12), transparent 70%);
}

/* === 标题区 === */
.rent-section .rent-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 2px solid rgba(212, 163, 71, 0.4);
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}
.rent-section .rent-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.rent-section .rent-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--rent-gov-blue), var(--rent-gov-blue-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(30, 74, 140, 0.3);
  border: 2px solid var(--rent-gov-gold);
  flex-shrink: 0;
}
.rent-section .rent-header-left h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--rent-gov-blue-dark);
  line-height: 1.2;
  margin: 0 0 4px 0;
}
.rent-section .rent-english {
  font-size: 11px;
  color: var(--rent-text-muted);
  letter-spacing: 2px;
  margin: 0;
}
.rent-section .rent-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.rent-section .rent-badge {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 16px;
  letter-spacing: 1px;
}
.rent-section .rent-badge-hot {
  background: linear-gradient(135deg, var(--rent-hot), #b91c1c);
  color: #fff;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
  position: relative;
}
.rent-section .rent-badge-hot::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  margin-right: 6px;
  animation: rent-pulse 1.5s ease-in-out infinite;
  vertical-align: middle;
}
@keyframes rent-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}
.rent-section .rent-more {
  font-size: 13px;
  color: var(--rent-gov-blue);
  font-weight: 500;
}
.rent-section .rent-more:hover { color: var(--rent-gov-blue-dark); }

/* === 出租信息卡片网格 === */
.rent-section .rent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* === 出租信息卡片 === */
.rent-section .rent-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--rent-shadow-md);
  border: 1px solid var(--rent-border-light);
  border-top: 3px solid var(--rent-gov-gold);
  transition: all 0.3s;
  color: inherit;
  cursor: pointer;
}
.rent-section .rent-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--rent-shadow-lg);
  border-color: var(--rent-gov-gold);
  color: inherit;
}

.rent-section .rent-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: linear-gradient(to right, var(--rent-gov-cream), #fff);
  border-bottom: 1px dashed var(--rent-border-light);
}
.rent-section .rent-card-id {
  font-size: 11px;
  color: var(--rent-text-muted);
  font-family: "Courier New", monospace;
  letter-spacing: 0.5px;
}
.rent-section .rent-status {
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 12px;
}
.rent-section .rent-status-active {
  background: rgba(22, 163, 74, 0.1);
  color: var(--rent-success);
  border: 1px solid rgba(22, 163, 74, 0.3);
}
.rent-section .rent-status-active::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rent-success);
  margin-right: 4px;
  animation: rent-pulse 1.5s ease-in-out infinite;
  vertical-align: middle;
}
.rent-section .rent-status-expired {
  background: rgba(138, 148, 168, 0.1);
  color: var(--rent-text-muted);
  border: 1px solid var(--rent-border-light);
}

.rent-section .rent-card-body {
  flex: 1;
  padding: 20px;
}
.rent-section .rent-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--rent-gov-blue-dark);
  line-height: 1.5;
  margin: 0 0 16px 0;
  min-height: 48px;
}
.rent-section .rent-card:hover .rent-title { color: var(--rent-gov-blue); }

.rent-section .rent-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.rent-section .rent-meta-item {
  padding: 8px 10px;
  background: var(--rent-bg-page);
  border-radius: 6px;
  border-left: 2px solid var(--rent-gov-blue);
}
.rent-section .rent-meta-label {
  font-size: 10px;
  color: var(--rent-text-muted);
  margin-bottom: 3px;
  letter-spacing: 0.5px;
}
.rent-section .rent-meta-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--rent-text-primary);
}
.rent-section .rent-meta-area {
  color: var(--rent-gov-blue);
  font-family: "Georgia", serif;
  font-size: 14px;
}

.rent-section .rent-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px dashed var(--rent-border-light);
}
.rent-section .rent-tag {
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 600;
  border-radius: 2px;
  letter-spacing: 0.5px;
}
.rent-section .rent-tag-blue { background: var(--rent-gov-blue); color: #fff; }
.rent-section .rent-tag-gold { background: var(--rent-gov-gold); color: var(--rent-gov-blue-dark); }
.rent-section .rent-tag-light { background: var(--rent-gov-blue-light); color: #fff; }
.rent-section .rent-tag-amber { background: #b45309; color: #fff; }
.rent-section .rent-tag-dark { background: var(--rent-gov-blue-dark); color: #fff; }

.rent-section .rent-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: var(--rent-bg-page);
  border-top: 1px solid var(--rent-border-light);
  font-size: 11px;
}
.rent-section .rent-org {
  color: var(--rent-text-muted);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: 8px;
}
.rent-section .rent-cta {
  color: var(--rent-gov-blue);
  font-weight: 600;
  white-space: nowrap;
}
.rent-section .rent-card:hover .rent-cta { color: var(--rent-gov-gold-dark); }

/* === 招商引导卡 === */
.rent-section .rent-guide-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px;
  background: linear-gradient(135deg, var(--rent-gov-blue), var(--rent-gov-blue-dark));
  border-radius: 12px;
  box-shadow: var(--rent-shadow-lg);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.rent-section .rent-guide-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}
.rent-section .rent-guide-icon {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--rent-gov-gold);
  color: var(--rent-gov-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 0 0 4px rgba(212, 163, 71, 0.15);
}
.rent-section .rent-guide-card h4 {
  position: relative;
  z-index: 1;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: #fff;
}
.rent-section .rent-guide-card p {
  position: relative;
  z-index: 1;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin: 0 0 20px 0;
}
.rent-section .rent-guide-contact {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.08);
  padding: 12px 24px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid rgba(212, 163, 71, 0.3);
}
.rent-section .rent-contact-label {
  display: block;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 4px;
  letter-spacing: 1px;
}
.rent-section .rent-contact-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--rent-gov-gold);
  font-family: "Georgia", serif;
  letter-spacing: 1px;
}
.rent-section .rent-guide-btn {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 10px 24px;
  background: var(--rent-gov-gold);
  color: var(--rent-gov-blue-dark);
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  letter-spacing: 1px;
  transition: 0.2s;
}
.rent-section .rent-guide-btn:hover {
  background: var(--rent-gov-gold-light);
  transform: scale(1.05);
  color: var(--rent-gov-blue-dark);
}

/* ============================================
 * 响应式
 * ============================================ */
@media (max-width: 1024px) {
  .rent-section .rent-grid { grid-template-columns: 1fr 1fr; }
  .rent-section .rent-guide-card { grid-column: span 2; }
}
@media (max-width: 768px) {
  .rent-section { padding: 40px 0; }
  .rent-section .rent-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .rent-section .rent-header-left h2 { font-size: 20px; }
  .rent-section .rent-icon { width: 44px; height: 44px; }
  .rent-section .rent-grid { grid-template-columns: 1fr; }
  .rent-section .rent-guide-card { grid-column: span 1; }
  .rent-section .rent-meta-grid { grid-template-columns: 1fr 1fr; }
  .rent-section .rent-title { font-size: 15px; min-height: auto; }
}
@media (max-width: 480px) {
  .rent-section .rent-card-top { padding: 10px 14px; }
  .rent-section .rent-card-body { padding: 14px; }
  .rent-section .rent-card-footer { padding: 10px 14px; flex-direction: column; gap: 6px; align-items: flex-start; }
  .rent-section .rent-org { white-space: normal; }
  .rent-section .rent-contact-value { font-size: 18px; }
}
