/* =============================================
   House.ropean.org — 统一样式模板
   ============================================= */

:root {
  --primary: #1a3a5c;
  --primary-light: #2a5298;
  --accent: #e8a020;
  --accent-light: #f5c55a;
  --bg: #f5f6f8;
  --card: #ffffff;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --tag-bg: #eef2ff;
  --tag-color: #3730a3;
  --success: #059669;
  --warning: #d97706;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.14);
  --font: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ── 顶部导航 ── */
.site-header {
  background: var(--primary);
  color: white;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.site-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-logo span { color: var(--accent-light); }

.site-nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.site-nav a:hover { color: var(--accent-light); }

/* ── 英雄区 ── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: 3rem 2rem 2.5rem;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.hero .address {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.hero .price-block {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
}

.hero .price {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent-light);
}

.hero .price-unit { color: rgba(255,255,255,0.7); font-size: 1rem; }

/* ── 主体内容 ── */
.content-wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* ── 快速统计栏 ── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.1rem 0.8rem;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--accent);
}

.stat-card .stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}

.stat-card .stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ── 信息卡片 ── */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.card:hover { box-shadow: var(--shadow-hover); }

.card-header {
  background: var(--primary);
  color: white;
  padding: 0.9rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-body { padding: 1.5rem; }

/* ── 属性网格 ── */
.prop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.8rem;
}

.prop-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.prop-item .prop-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.prop-item .prop-value {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 600;
}

/* ── 标签列表 ── */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: var(--tag-bg);
  color: var(--tag-color);
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 500;
}

/* ── 状态徽章 ── */
.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.badge-active { background: #d1fae5; color: var(--success); }
.badge-pending { background: #fef3c7; color: var(--warning); }
.badge-sold { background: #fee2e2; color: #dc2626; }
.badge-watching { background: #e0e7ff; color: #4338ca; }

/* ── 描述段落 ── */
.description-text {
  color: var(--text);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* ── 学区显示 ── */
.school-list { list-style: none; }
.school-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.school-list li:last-child { border-bottom: none; }
.school-level {
  background: var(--primary);
  color: white;
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
}

/* ── 外部链接按钮 ── */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary-light);
  color: white;
}
.btn-primary:hover { background: var(--primary); }

.btn-outline {
  border: 1.5px solid var(--border);
  color: var(--text);
  background: white;
}
.btn-outline:hover { border-color: var(--primary-light); color: var(--primary-light); }

/* ── 图片占位 ── */
.photo-placeholder {
  background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
  border-radius: var(--radius);
  height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.photo-placeholder .icon { font-size: 2.5rem; }

/* ── 分隔线 ── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1rem 0;
}

/* ── 页脚 ── */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.8rem;
}

/* ── 响应式 ── */
@media (max-width: 600px) {
  .hero h1 { font-size: 1.3rem; }
  .hero .price { font-size: 1.8rem; }
  .stats-bar { grid-template-columns: repeat(3, 1fr); }
  .prop-grid { grid-template-columns: 1fr 1fr; }
  .content-wrapper { padding: 1.2rem 1rem 3rem; }
}

/* ── SVG 图标 ── */
.icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.card-header .icon { margin-right: 0.4rem; }
.btn .icon { margin-right: 0.3rem; }
.site-logo .icon { margin-right: 0.3rem; }
